diff options
author | Itay Grudev <itay-grudev@users.noreply.github.com> | 2016-05-04 20:52:25 +0100 |
---|---|---|
committer | Itay Grudev <itay-grudev@users.noreply.github.com> | 2016-05-04 20:52:25 +0100 |
commit | fd8004c706b1f63f8f6f114c054bb044028c2b1d (patch) | |
tree | 455ed73cf7eabf01703830e9f36bb3d577248782 /singleapplication.h | |
parent | Bug fix possible situation in which memory is detached (diff) | |
parent | Bugfix no showUp notification. Some minor improvements (diff) | |
download | singleapplication-fd8004c706b1f63f8f6f114c054bb044028c2b1d.tar.xz |
Merge pull request #6 from itay-grudev/secondary
Added stability improvements and support for secondary instances.
Diffstat (limited to 'singleapplication.h')
-rw-r--r-- | singleapplication.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/singleapplication.h b/singleapplication.h index 91f5b11..780bd9e 100644 --- a/singleapplication.h +++ b/singleapplication.h @@ -22,9 +22,12 @@ class SingleApplication : public QAPPLICATION_CLASS typedef QAPPLICATION_CLASS app_t; public: - explicit SingleApplication(int&, char *[]); + explicit SingleApplication(int &argc, char *argv[], uint8_t secondaryInstances = 0); ~SingleApplication(); + bool isPrimary(); + bool isSecondary(); + Q_SIGNALS: void showUp(); |