Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Mark getters as const | Shatur95 | 2021-01-25 | 1 | -13/+13 |
| | |||||
* | Pass usedData by const reference | Shatur95 | 2020-12-21 | 1 | -1/+1 |
| | |||||
* | Allow adding unique userdata to instances | Loren Burkholder | 2020-12-16 | 1 | -1/+11 |
| | |||||
* | Remove extra Q_D | Shatur95 | 2020-10-15 | 1 | -1/+0 |
| | | | | No longer needed as getUsername() is now static. | ||||
* | Fix Clang Tidy warnings | Shatur95 | 2020-10-15 | 1 | -3/+3 |
| | | | | | | | readability-convert-member-functions-to-static readability-static-accessed-through-instance readability-make-member-function-const readability-inconsistent-declaration-parameter-name | ||||
* | Mitigated QSharedMemory initialization failures | Itay Grudev | 2020-09-09 | 1 | -0/+4 |
| | | | Mitigated QSharedMemory initialization failures due to large amount of processes attempting to get hold of the shared memory block at the same time | ||||
* | Improved the connectToPrimary() method and fixed issue with ↵ | Itay Grudev | 2020-09-09 | 1 | -3/+4 |
| | | | | instanceStarted() not getting emitted | ||||
* | Moved the random sleep functionality to SingleApplicationPrivate | Itay Grudev | 2020-09-09 | 1 | -12/+1 |
| | |||||
* | Removed extra qDebug statements | Itay Grudev | 2020-09-09 | 1 | -6/+0 |
| | |||||
* | Mitigated possible race condition during app startup | Itay Grudev | 2020-09-09 | 1 | -16/+56 |
| | |||||
* | Bug Fix: Fixed situation in which the memory block is left unlocked | Itay Grudev | 2020-09-08 | 1 | -16/+19 |
| | |||||
* | Updated code style and added inline documentation to public methods | Itay Grudev | 2020-09-08 | 1 | -23/+56 |
| | |||||
* | Fix Clang Tidy warnings | Shatur95 | 2020-05-17 | 1 | -2/+2 |
| | |||||
* | Update singleapplication.cpp | Itay Grudev | 2020-04-22 | 1 | -1/+1 |
| | |||||
* | Add SingleApplication::currentUser() | Leander Schulten | 2020-03-27 | 1 | -0/+6 |
| | |||||
* | v3.1.0a Added primaryUser() | Itay Grudev | 2020-03-03 | 1 | -0/+6 |
| | | | | Closes #95 | ||||
* | Fix obsolete code warnings | Shatur95 | 2020-01-05 | 1 | -3/+11 |
| | |||||
* | Fallback for iOS as well | Itay Grudev | 2019-10-13 | 1 | -4/+4 |
| | |||||
* | Disables SingleApplication support on Android. Fixes #52 | Itay Grudev | 2019-10-11 | 1 | -0/+7 |
| | |||||
* | Fix return value of sendMessage() (#68) | Jonas Kvinge | 2019-08-23 | 1 | -2/+2 |
| | |||||
* | fixed a typo (#55)3.0.13 | Patrizio Bekerle | 2018-11-30 | 1 | -1/+1 |
| | |||||
* | Proposed SA changes still containing a race condition (#48)3.0.11a | Itay Grudev | 2018-07-27 | 1 | -370/+59 |
| | |||||
* | Fix sendmessage (#46) | Francis Giraldeau | 2018-07-27 | 1 | -25/+42 |
| | | | | | | | | | | | | | | | | | | | | * Fix send message example If a secondary instance sends a message immediately after connecting, the message follows the init message. This causes the slotConnectionEstablished to read and consume the tail of the message and interpret it as the checksum. The checksum fails and the connection becomes invalid. To avoid this race, we prefix the init message with its length. This way, we consume only the data relevant to the init message. This patch fixes the sending_arguments example. Signed-off-by: Francis Giraldeau <francis.giraldeau@gmail.com> * Fix include file case Signed-off-by: Francis Giraldeau <francis.giraldeau@nrc-cnrc.gc.ca> | ||||
* | removed c style casts and eliminated all clang warnings, ... (#38) | Jedidiah Buck McCready | 2017-12-03 | 1 | -50/+44 |
| | | | | | | * removed c style casts and eliminated all clang warnings, fixed instanceId reading from only one byte in deserialization of message, cleaned up serialization code using QDataStream, changed connection type to use quint8 enum rather than char * renamed SingleAppConnectionType to ConnectionType, added initialization values to all ConnectionType enum cases | ||||
* | Primary PID support (#36)v3.0.9 | Itay Grudev | 2017-10-02 | 1 | -4/+28 |
| | | | | | | | | | | | * Added the ability to bring the primary application window to the foreground on Windows systems by adding an option flag. THis option can only be used in Windows development and in applications derived from QApplication with a QMainWindow object. Because the primary application needs to be instructed to go to the foreground, the option SecondaryNotification must also be set to use this functionality * Changed the ability to bring the primary application window to the front as discussed in itay-grudev/SingleApplication#31. Now the process ID of the primary application get stored and is accessible for other instances of the application. It is to the developer to bring the applications windows to the front. For convenience the accompanying readme now contains a paragraph with example of how to do this on Windows systems. * v3.0.9 Added SingleApplicationPrivate::primaryPid() | ||||
* | bugfix - change QApplication to macro QAPPLICATION_CLASS (#34) | BG4444 | 2017-08-20 | 1 | -1/+1 |
| | | | | Bug fix - changed QApplication to macro QCoreApplication when invoking QApplication::instance() | ||||
* | Removed QMutex for thread safe behaviour and support for multiple ↵ | Itay Grudev | 2017-04-23 | 1 | -16/+1 |
| | | | | | SingleApplication instances Problem raised by @retmas in #24 | ||||
* | Fixed compilation error: cannot convert wchar_t* to LPSTR {aka char*} (#29) | Vitaly Tonkacheyev | 2017-02-23 | 1 | -1/+1 |
| | |||||
* | Remove magic chars from code - use more readable code style (#28) | Evgeny | 2017-02-22 | 1 | -13/+17 |
| | |||||
* | Reverted GetUserName API usage on Windows (#25) | Itay Grudev | 2017-02-02 | 1 | -1/+14 |
| | | | | | | | | | | * Added back support for getting username on Windows * Fixed typo in singleapplication.pri * Compiler specific Advapi32.lib links * Removed username debug statement | ||||
* | Refactored SingleApplicationPrivate destructor. | Itay Grudev | 2017-01-30 | 1 | -17/+13 |
| | | | | | Deleted the separate cleanUp method as it’s not used from anywhere but the destructor. | ||||
* | Fix memory leak on SingleApplicationPrivate destruction (#23) | retmas | 2017-01-30 | 1 | -0/+1 |
| | | | The issue is non critical as if the library is used properly this destructor is not called until the end of the program anyway. | ||||
* | Fixed shadow variable warning (#21) | pjwhams | 2017-01-24 | 1 | -23/+23 |
| | |||||
* | Removed Windows specific code for getting usernamev3.0.3a | Itay Grudev | 2017-01-24 | 1 | -16/+7 |
| | | | | On the absolute path to the home directory is now explicitly used. | ||||
* | Refactored slotConnectionEstablished() | Itay Grudev | 2017-01-24 | 1 | -16/+14 |
| | | | | | The code is now shorter and easier to understand. Fixed an uninitialised variable warning as reported in #20. | ||||
* | Fix crash when username contains Unicode characters on Windows (#17) | Le Liu | 2016-11-27 | 1 | -3/+1 |
| | | | | | * Fixed bug on Windows with username containing wide characters causing the library to crash. _Le Liu_ | ||||
* | Allow data exclusion for the server name hash and Windows fixes (#16) | Le Liu | 2016-11-26 | 1 | -2/+21 |
| | | | | | | | | | * Allows the application path and version to be excluded from the server name hash. The following flags were added for this purpose: * `SingleApplication::Mode::ExcludeAppVersion` * `SingleApplication::Mode::ExcludeAppPath` * Allow a non elevated process to connect to a local server created by an elevated process run by the same user on Windows * Fixes a problem with upper case letters in paths on Windows | ||||
* | fix Windows warning about unused parameter | Svintsov Dmitry | 2016-08-24 | 1 | -0/+1 |
| | |||||
* | Added missing "QMutex" dependencies | Svintsov Dmitry | 2016-08-22 | 1 | -1/+0 |
| | |||||
* | Fix bug (and compiler error) on Windows - wchar username support | Itay Grudev | 2016-08-18 | 1 | -4/+5 |
| | |||||
* | SingleApplication v3.0a | Itay Grudev | 2016-08-10 | 1 | -126/+278 |
| | |||||
* | Fixed signal formatting | Itay Grudev | 2016-07-10 | 1 | -14/+14 |
| | |||||
* | Updated license dates. Explicit license statement in the header and source files | Itay Grudev | 2016-07-04 | 1 | -0/+22 |
| | |||||
* | SIGBUSS should be signal 10. Fixed comment | Itay Grudev | 2016-05-14 | 1 | -1/+1 |
| | |||||
* | Code style improvementsv2.4 | Itay Grudev | 2016-05-04 | 1 | -6/+6 |
| | |||||
* | Bugfix no showUp notification. Some minor improvements | Itay Grudev | 2016-05-04 | 1 | -4/+10 |
| | |||||
* | Improved restoring QSharedMemory after crash | Itay Grudev | 2016-05-04 | 1 | -3/+8 |
| | |||||
* | Secondary instance implementation | Itay Grudev | 2016-05-04 | 1 | -54/+159 |
| | |||||
* | Bug fix possible situation in which memory is detached | Itay Grudev | 2016-05-04 | 1 | -8/+5 |
| | |||||
* | Now handling all relevant signals | Itay Grudev | 2016-05-04 | 1 | -6/+14 |
| | | | | | | New handled signals are: SIGHUP, SIGQUIT, SIGBUS, SIGSYS, SIGPIPE, SIGALRM, SIGXCPU, SIGXFSZ |