diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2020-07-22 23:27:01 -0400 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2020-11-03 11:39:02 -0500 |
| commit | 9435202034cafb05ffc11aed48ff57536bce73f7 (patch) | |
| tree | 03c6ad6d1125248dc727d7904721883ac06b616e /src/singleinstance.h | |
| parent | f97e40f127441828eb4ffe11841ebf79191ac8a3 (diff) | |
removed flags from SingleInstance because there's only one left
refactoring in main.cpp:
- moved stuff to loglist.cpp and moapplication.cpp
- split main() into a few functions
Diffstat (limited to 'src/singleinstance.h')
| -rw-r--r-- | src/singleinstance.h | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/src/singleinstance.h b/src/singleinstance.h index d500a056..5f6c3633 100644 --- a/src/singleinstance.h +++ b/src/singleinstance.h @@ -36,19 +36,9 @@ class SingleInstance : public QObject Q_OBJECT
public:
- enum Flag
- {
- NoFlags = 0x00,
-
- // if another instance is running, run this one disconnected from the
- // shared memory
- AllowMultiple = 0x01
- };
-
- using Flags = QFlags<Flag>;
-
-
- explicit SingleInstance(Flags flags, QObject *parent = 0);
+ // `allowMultiple`: if another instance is running, run this one
+ // disconnected from the shared memory
+ explicit SingleInstance(bool allowMultiple, QObject *parent = 0);
/**
* @return true if this instance's job is to forward data to the primary
@@ -97,6 +87,4 @@ private: };
-Q_DECLARE_OPERATORS_FOR_FLAGS(SingleInstance::Flags);
-
#endif // SINGLEINSTANCE_H
|
