aboutsummaryrefslogtreecommitdiff
path: root/singleapplication.h
diff options
context:
space:
mode:
authorItay Grudev <itay-grudev@users.noreply.github.com>2016-05-04 20:52:25 +0100
committerItay Grudev <itay-grudev@users.noreply.github.com>2016-05-04 20:52:25 +0100
commitfd8004c706b1f63f8f6f114c054bb044028c2b1d (patch)
tree455ed73cf7eabf01703830e9f36bb3d577248782 /singleapplication.h
parentBug fix possible situation in which memory is detached (diff)
parentBugfix no showUp notification. Some minor improvements (diff)
downloadsingleapplication-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.h5
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();