aboutsummaryrefslogtreecommitdiff
path: root/singleapplication_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'singleapplication_p.h')
-rw-r--r--singleapplication_p.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/singleapplication_p.h b/singleapplication_p.h
index a990a53..2969173 100644
--- a/singleapplication_p.h
+++ b/singleapplication_p.h
@@ -41,6 +41,7 @@ struct InstancesInfo {
bool primary;
quint32 secondary;
qint64 primaryPid;
+ quint16 checksum;
};
class SingleApplicationPrivate : public QObject {
@@ -57,19 +58,21 @@ public:
SingleApplicationPrivate( SingleApplication *q_ptr );
~SingleApplicationPrivate();
- void genBlockServerName( int msecs );
- void startPrimary( bool resetMemory );
+ void genBlockServerName();
+ void initializeMemoryBlock();
+ void startPrimary();
void startSecondary();
void connectToPrimary(int msecs, ConnectionType connectionType );
+ quint16 blockChecksum();
qint64 primaryPid();
#ifdef Q_OS_UNIX
void crashHandler();
- static void terminate( int signum );
+ [[noreturn]] static void terminate( int signum );
#endif
- QSharedMemory *memory;
SingleApplication *q_ptr;
+ QSharedMemory *memory;
QLocalSocket *socket;
QLocalServer *server;
quint32 instanceNumber;