diff options
Diffstat (limited to 'singleapplication_p.h')
-rw-r--r-- | singleapplication_p.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/singleapplication_p.h b/singleapplication_p.h index 856b33d..a990a53 100644 --- a/singleapplication_p.h +++ b/singleapplication_p.h @@ -46,6 +46,12 @@ struct InstancesInfo { class SingleApplicationPrivate : public QObject { Q_OBJECT public: + enum ConnectionType : quint8 { + InvalidConnection = 0, + NewInstance = 1, + SecondaryInstance = 2, + Reconnect = 3 + }; Q_DECLARE_PUBLIC(SingleApplication) SingleApplicationPrivate( SingleApplication *q_ptr ); @@ -54,7 +60,7 @@ public: void genBlockServerName( int msecs ); void startPrimary( bool resetMemory ); void startSecondary(); - void connectToPrimary( int msecs, char connectionType ); + void connectToPrimary(int msecs, ConnectionType connectionType ); qint64 primaryPid(); #ifdef Q_OS_UNIX |