aboutsummaryrefslogtreecommitdiff
path: root/singleapplication.h
diff options
context:
space:
mode:
authorItay Grudev <itay@grudev.com>2015-02-26 19:00:11 +0000
committerItay Grudev <itay@grudev.com>2015-02-26 19:00:11 +0000
commit5c89ab17cf5c516cb2232dffc0b5ddae6c7d2be0 (patch)
treeb6e72002f23fce5d976a85e6beefe89cbcb94999 /singleapplication.h
parentUpdate README.md (diff)
downloadsingleapplication-5c89ab17cf5c516cb2232dffc0b5ddae6c7d2be0.tar.xz
Completly rewritten and simplified source
Diffstat (limited to 'singleapplication.h')
-rw-r--r--singleapplication.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/singleapplication.h b/singleapplication.h
index 03ac69c..2fabfbd 100644
--- a/singleapplication.h
+++ b/singleapplication.h
@@ -1,33 +1,33 @@
-#ifndef APPLICATION_H
-#define APPLICATION_H
+#ifndef SINGLE_APPLICATION_H
+#define SINGLE_APPLICATION_H
-#include "localserver.h"
-
-#include <QGuiApplication>
+#include <QApplication>
#include <QLocalSocket>
+#include <QLocalServer>
/**
- * @brief The Application class handles trivial application initialization procedures
+ * @brief The SingleApplication class handles multipe instances of the
+same Application
+ * @see QApplication
*/
-class SingleApplication : public QGuiApplication
+class SingleApplication : public QApplication
{
Q_OBJECT
public:
explicit SingleApplication(int, char *[]);
~SingleApplication();
- bool shouldContinue();
signals:
void showUp();
private slots:
- void slotShowUp();
-
+ void slotConnectionEstablished();
+
private:
- QLocalSocket* socket;
- LocalServer* server;
- bool _shouldContinue;
+ QLocalSocket *socket;
+ QLocalServer *server;
};
-#endif // APPLICATION_H
+#endif // SINGLE_APPLICATION_H
+