Commit Graph

282 Commits

Author SHA1 Message Date
Itay Grudev
bed39cc40b
v3.3.4 Changelog 2022-04-03 22:24:04 +03:00
Itay Grudev
73c5b9a330
Merge pull request #150 from itay-grudev/cmake-flags
Use more stricter Qt compile definitions
2022-04-03 22:19:32 +03:00
Hennadii Chernyshchyk
cb158992f5
Add more stricter Qt compile definitions 2022-04-03 21:12:15 +03:00
Hennadii Chernyshchyk
ac7134b71b
Bump minimum CMake version to 3.12.0
Since we use target_compile_definitions that was introduced in this version.
2022-04-03 21:12:12 +03:00
Itay Grudev
50b7b905d6
Merge pull request #148 from christoph-cullmann/master
Make it compile with Qt 6.2.x and stricter compile settings
2022-04-03 20:57:38 +03:00
Christoph Cullmann
ee17b253d3 make it compile with Qt 6.2.x and stricter compile settings 2022-04-03 19:45:03 +02:00
Itay Grudev
5ea519d856
Merge pull request #149 from itay-grudev/ci-on-pr
Trigger CI on PRs
2022-04-03 20:40:43 +03:00
Hennadii Chernyshchyk
8629a1c415
Trigger CI on PRs too 2022-04-03 18:14:49 +03:00
Hennadii Chernyshchyk
3e8e85d1a4
Merge pull request #147 from itay-grudev/v3.3.3-changelog-patch
v3.3.3 changelog patch
2022-02-14 09:58:06 +02:00
Itay Grudev
150c26ad04
v3.3.3 changelog patch 2022-02-14 02:35:40 +02:00
Itay Grudev
88463b5dc8
Merge pull request #146 from moodyhunter/master
fix deprecated warnings on Qt6.3+
2022-02-14 01:20:26 +02:00
Moody
a0917f9c62
fix deprecated warnings on Qt6.3+ 2022-02-13 11:16:05 +00:00
Itay Grudev
42a78d79db
Merge pull request #145 from itay-grudev/itay-grudev-patch-1
Corrected Git URL in README
2021-12-28 19:01:56 +02:00
Itay Grudev
efc6d2e5cc
Corrected Git URL in README 2021-12-28 18:47:16 +02:00
Itay Grudev
d0c43a51ad
Merge pull request #144 from itay-grudev/changelog_update_3.3.2
Update CHANGELOG.md
2021-11-24 15:04:30 +02:00
Itay Grudev
3f68a1668f
Update CHANGELOG.md 2021-11-24 11:24:29 +02:00
Itay Grudev
3d7c1ea7bb
Merge pull request #143 from deepbluev7/fix-crash-on-ack
Fix crash when sending ack on removed connection
2021-11-24 11:18:53 +02:00
Nicolas Werner
3650975e56
Fix crash when sending ack on removed connection
The emit might interrupt our function and causes us to return to the
event loop. In that time frame the other and might close the connection,
causing our connection to be removed. In that case we call writeAck on a
dangling pointer, in the best case causing a crash. So lets finish our
business before emitting our signal.

fixes #138
2021-11-24 09:01:39 +01:00
Itay Grudev
0d7b2630bd
Merge pull request #140 from itay-grudev/itay-grudev-patch-1
Update README to clarify sendMessage return value
2021-10-04 12:59:09 +03:00
Itay Grudev
34d99d4d17
Merge pull request #141 from itay-grudev/refactor-ci
Refactor CI
2021-10-04 12:58:58 +03:00
Hennadii Chernyshchyk
abfff35086
Update install-qt action 2021-10-03 12:52:53 +03:00
Hennadii Chernyshchyk
e17a3c2db8
Specify platform-dependend make 2021-10-03 12:36:47 +03:00
Hennadii Chernyshchyk
307ffb2811
Use multiply cores
https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources
2021-10-03 12:03:46 +03:00
Hennadii Chernyshchyk
66e87472be
Rename build-cmake.yml to build.yml 2021-10-03 11:54:30 +03:00
Hennadii Chernyshchyk
e145737801
Add QMake to CI 2021-10-03 11:46:53 +03:00
Hennadii Chernyshchyk
00a571c21c
Remove pull_request
Triggers CI twice.
2021-10-03 11:27:51 +03:00
Hennadii Chernyshchyk
6cc4f481db
Ignore release drafts 2021-10-03 11:26:46 +03:00
Hennadii Chernyshchyk
7c6e91f3bc
Make CI labels more consistent 2021-10-03 11:18:23 +03:00
Hennadii Chernyshchyk
0c1d21a490
Format with prettier 2021-10-03 11:11:55 +03:00
Hennadii Chernyshchyk
eba263a8c6
Ignore changes in markdown 2021-10-03 11:11:36 +03:00
Itay Grudev
7bcdfe571e
Update README.md 2021-09-20 16:55:38 +03:00
Itay Grudev
a8590b4031
Update README.md 2021-09-20 16:53:48 +03:00
Itay Grudev
5fec2df7a3
Merge pull request #139 from mklein-de/appimage-executable-path
Added support for _AppImage_ dynamic executable paths. - _Michael Klein_
2021-09-20 16:48:18 +03:00
Itay Grudev
9856adebd4
Update singleapplication_p.cpp 2021-09-20 16:38:28 +03:00
Itay Grudev
bca0b770ee
Update singleapplication_p.cpp
Co-authored-by: Hennadii Chernyshchyk <genaloner@gmail.com>
2021-09-20 16:37:01 +03:00
Itay Grudev
cc96fea921
Update singleapplication_p.cpp 2021-09-20 16:32:42 +03:00
Itay Grudev
a8aa298aa1
v3.3.1 2021-09-20 16:25:15 +03:00
Itay Grudev
6aa2d348e5
Style and explanation improvements 2021-09-20 16:22:02 +03:00
Michael Klein
a30128bef2
Compile fix
Co-authored-by: Hennadii Chernyshchyk <genaloner@gmail.com>
2021-09-20 15:16:20 +02:00
Michael Klein
7d366c7e83
Use QByteArray instead of QString
Co-authored-by: Hennadii Chernyshchyk <genaloner@gmail.com>
2021-09-20 14:56:31 +02:00
Michael Klein
f030b378f0 Use AppImage path for hash when running as AppImage.
When an application is launched as AppImage, each instance is launched
from its own FUSE-mounted filesystem, so each instance has its own
executable path.

The AppImage runtime sets the environment variable APPIMAGE to the
absolute path to the .AppImage file, so we can use the content of this
variable instead of QApplication::applicationFilePath() when set.

Closes #77, #137
2021-09-20 14:43:15 +02:00
Hennadii Chernyshchyk
d5b3852bd0
Merge pull request #134 from itay-grudev/v3.3.0-changelog
v3.3.0 Changelog
2021-08-04 16:34:51 +03:00
Itay Grudev
266e6de20b
Update CHANGELOG.md
Co-authored-by: Hennadii Chernyshchyk <genaloner@gmail.com>
2021-06-02 20:27:50 +03:00
Itay Grudev
bdbb09b5f2
v3.3.0 2021-06-02 10:57:30 +03:00
Itay Grudev
c557da5d0c
Merge pull request #133 from njeisecke/master
Fix protocol to solve #121 and #125
2021-06-01 23:59:59 +03:00
Nils Jeisecke
25a7b60982 Ensure data sent via SingleApplication::sendMessage is received completely
Whilst the initial "connect" message is framed with a length header,
this was missing for the user data.

Thus there was no guarantee that the message frame was really received
completely on emitting the "receivedMessage" signal.

This change splits the previous "StageConnected" state into
"StageConnectedHeader" and "StageConnectedBody" and does some
refactoring to allow using the same write and read functions as the
"init" messages.
2021-06-01 04:10:53 +02:00
Nils Jeisecke
0c458ec8c9 Add simple acknowledge protocol to ensure the server has received all data
The server now acknowledges every received message by sending a \r.

By waiting for the acknowledgement, clients should no longer terminate
too early, causing bytes getting lost in Qt's internal socket handling.

Message handling in the server is simplified because we can now rely
on the readyRead signal being raised for every frame.

This should finally solve #125 and #121.

What remains is to correctly handle data sent using
SingleApplication::sendMessage.
2021-05-31 16:12:32 +02:00
Itay Grudev
fda9c4b178
Merge pull request #132 from itay-grudev/removed_incorrect_coment_in_basic_example
Removed incorrect comment in the basic example
2021-04-29 03:26:24 +03:00
Itay Grudev
7e494b5d5e
Removed incorreced comment in the basic example
Fixes #131
2021-04-28 12:06:37 +03:00
Shatur95
c2fd401540 Simplify randomSleep() for old Qt version 2021-04-12 14:17:53 +03:00