1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00
Commit Graph

68 Commits

Author SHA1 Message Date
sudden6
5d6ae9ae37
fix(video): don't use pointers to temporary objects
fixes #4764
2017-11-12 13:10:35 +01:00
Vincas Dargis
729dc7740b fix(platform): use result to remove -Wunused-result warning
Check for write() and read() results and abort in case of unexpected
failure.
2017-10-04 19:11:52 +03:00
Diadlo
f790747f2a
fix: ATOMIC_FLAG_INIT can't be used inside braces initializer 2017-09-26 21:00:49 +03:00
Vincas Dargis
32b97cb927 fix(platform): handle terminating POSIX signals
Add PosixSignalNotifier utility class to covert POSIX signals to
Qt signals and allow qTox to quit appropriately on Linux, FreeBSD
and macOS.

Might protect from data corruption bugs when application is being
terminated during I/O.

Fixes: #4470
2017-09-09 17:19:51 +03:00
Yuri
ae5cb4bcc2 fix: Keep open and share X11 connection
This prevents opening and closing of X11 connection and associated files every 1 second.
X11 connection is used for userAutoAway feature and to read CapsLock status.
2017-07-23 14:41:04 -07:00
DX37
0fc3911318 fix: Fix incorrect headers order
Because of incorrect order, qTox on Windows can't be compiled properly.

Fixes #4220
2017-03-18 19:36:50 +06:00
Zetok Zalbavar
80f5de31b3
style: reformat current C++ codebase using clang-format 2017-02-26 11:52:45 +00:00
Zetok Zalbavar
d4ac13dbf4
revert: "refactor: Added to include path and exclude it from all includes"
Revert needed, since otherwise there is no way to do automatic sorting
of includes.
Also reverted change to the docs, as leaving it would make incorrect
docs.

In case of conflicts, includes were sorted according to the coding
standards from #3839.

This reverts commit b4a9f04f92.
This reverts commit 5921122960.
2016-12-29 16:10:53 +00:00
sudden6
8d320ca3be
chore: Make building for FreeBSD easier
Add some patches from https://svnweb.freebsd.org/ports/head/net-im/qTox/
and make some things more platform independent.
2016-12-28 22:15:16 +01:00
Zetok Zalbavar
7b60a5dd36
chore: explicitly mention that copyright belongs to qTox contributors 2016-11-29 11:12:06 +00:00
Diadlo
b4a9f04f92
refactor: Added to include path and exclude it from all includes 2016-11-28 23:28:42 +03:00
Zetok Zalbavar
64bbc6cfbb
style: change postfix increment to prefix increment 2016-11-03 07:57:14 +00:00
bitok
2c03257700
refactor: fixes of static analyze warnings
There is many static analyze warnings for qTox. Fixed most dangerous and several simple.
2016-09-23 14:47:53 +01:00
iphydf
e20dffab07
chore: Make the windows code compatible with TCHAR.
This adds support for multi-byte builds. Users building qTox in
multi-byte instead of unicode mode would otherwise get compiler errors.
This is one step in the direction of making qTox a library with the UI
being just one application of it: it gives library users a choice of how
they build it.
2016-09-05 20:07:17 +01:00
Diadlo
72780e6c7a
docs(todo): Changed todo format 2016-08-19 00:20:24 +03:00
Diadlo
31d8e7eef0
docs: Replaced simple on doxygen tag 2016-08-19 00:20:23 +03:00
iphydf
e4d41acdc6
chore: Return a well-defined value from setAutorun.
There is no documentation about what this function is supposed to do or what it
should return, so I'm just guessing it's a success boolean, so it should be
returning true.
2016-08-11 12:36:03 +01:00
Diadlo
9471065feb
style(platform): Style fixes 2016-07-13 01:54:37 +03:00
Diadlo
504ad534e0
fix(directshow): Fixed problem with crosses initialization 2016-06-25 14:20:13 +03:00
Colomban Wendling
f9190734d7 fix(capslock_x11): properly release the X display handle
This fixes caps lock detection after a while, and removes the "Maximum
number of clients reached" message on stdout.
2016-06-15 18:44:12 +02:00
Diadlo
35a0e1fb6f
fix(platform): Added checkCapsLock OSX implementation 2016-06-07 11:27:58 +03:00
Diadlo
97f95e7e91
feat(capslock): Added caps lock checker 2016-06-07 11:27:58 +03:00
initramfs
556a8750a1
fix(video): usage of invalid file descriptors on error
Fixes code for getDeviceModes() under vfl2 namespace where error
numbers were being treated as valid file descriptors
2016-04-03 14:16:45 -04:00
Sean
f595f4f817 camera res option reduction 2016-03-21 21:17:21 -05:00
Sean Laguna
de4dcb5bd7 whoops, forgot an else in an else if 2016-01-26 13:27:32 -06:00
Sean
ded8d87ba8 generic pixel format selection 2016-01-26 13:14:58 -06:00
Rowen Stipe
df584531c8 Enable OS X Auto-run at login 2016-01-20 05:17:03 -05:00
Rowen Stipe
a05310e155 Added case for /Application Support/Tox already existing
I tried to get it done without bash… But this was the simplest method
that works for this special case scenerio.
2016-01-20 01:22:25 -05:00
Rowen Stipe
27fda2e579 Added basic migration compatibility code.
This code works if the ~/Library/Application Support/Tox directory does
not already exist.
2016-01-19 06:36:15 -05:00
tux3
c576a1485a
Scan-build cleanup 2016-01-16 02:24:13 +01:00
Andrew Novikov
985def25ff Implemented screen capturing support for Mac OS X 2015-12-23 15:31:28 +03:00
Andrew Novikov
bd8a2c84ef Optimized working with strings 2015-12-23 11:03:56 +03:00
Andrew Novikov
cc64db3f27
Implemented listing and setting video modes on Mac OS X 2015-12-21 01:27:38 +01:00
Andrew Novikov
cf6623cfc8
Implemented enumeration of video devices. 2015-12-21 01:26:18 +01:00
tux3
71e26fb15b
List video devices using v4l2 directly, not ffmpeg
Turns out, FFmpeg is annoyingly unreliable when it comes to this. It ignores uvcvideo devices for example
2015-11-07 01:34:07 +01:00
tux3
1f61534841 Merge branch 'pr2343' 2015-10-23 15:20:58 +02:00
Matthieu Baerts
aaf9b95d97 Autorun:xdg: create autostart dir if needed
After a fresh installation of Ubuntu, 'autostart' dir is not available.
Simply create it with QDir::mkpath() (= mkdir -p).
2015-10-17 16:00:17 +02:00
Dmytro Shynkevych
05e84f3838 statusnotifier: fixed pointer type 2015-10-04 15:41:56 -04:00
Dmytro Shynkevych
fc41cded7f statusnotifier: fixed a memory leak in get_prop()
Replaced get_builder_for_icon_pixmap() with get_icon_pixmap()
returning a plain GVariant. Refactored all usages.
2015-09-29 23:17:47 -04:00
Yuri
00a40f10b5 Added missing include <errno.h> 2015-06-14 20:35:17 -07:00
Zetok Zalbavar
67e9aeec63
Fix incorrect copyright headers
The qTox Project is not associated with the Tox Project in any way, with the
exception of "qTox" using the Tox Projet's "toxcore" collection of libraries.
In particular, the Tox Projet does not own copyright over the qTox Project's
"qTox" collection of software, source code, and assets.
The qTox Project's assets are under the sole copyright of the qTox
contributors, and no partiular rights are granted to the Tox Project.
2015-06-06 14:51:28 +01:00
tux3
20f254651d
Reorganize files 2015-06-06 01:44:47 +02:00
tux3
f1d7c59a2f
Fix #1809 build error 2015-06-06 00:06:50 +02:00
tux3
192d9a5e29
Cleanup main() a bit 2015-06-05 12:44:22 +02:00
tux3
3cf10f02a6 Don't use tagged init 2015-06-03 02:10:53 +02:00
tux3
fe4838bb83 Video modesetting for v4l2 2015-06-03 02:10:53 +02:00
Tux3 / Mlkj / !Lev.uXFMLA
e5522ba087 Case-sensitive includes in windows files
To make the cross-compilers happy.
2015-06-03 02:10:52 +02:00
Tux3 / Mlkj / !Lev.uXFMLA
27bb71f195 Implement video modesetting for dshow 2015-06-03 02:10:52 +02:00
Tux3 / Mlkj / !Lev.uXFMLA
b20ecf056d Namespaces, not ctor-deleted classes
Stupid.
2015-06-03 02:10:52 +02:00
Tux3 / Mlkj / !Lev.uXFMLA
f0f069114c Implement DirectShow video dev listing
We can now get the list of video devices with the dshow ffmpeg device
(so, on Windows). Most of this patch is adapted from libavdevice's dshow
private internal interface, which retrieves useful info but is only
designed to log it to stdout. We reimplement that to get an actual list
of devices names/descriptions, that we can then open with ffmpeg the
refular way.
2015-06-03 02:10:52 +02:00