aboutsummaryrefslogtreecommitdiff
path: root/singleapplication.h
diff options
context:
space:
mode:
authorItay Grudev <itay@mail.bg>2012-12-23 00:12:38 +0200
committerItay Grudev <itay@mail.bg>2012-12-23 00:12:38 +0200
commit230b4ebe94400ac7af47731e5c2b965b0c5fb2da (patch)
treead0b511cdff2023e0cabe0268986707efcc7b6ff /singleapplication.h
downloadsingleapplication-230b4ebe94400ac7af47731e5c2b965b0c5fb2da.tar.xz
Add base files
Diffstat (limited to 'singleapplication.h')
-rw-r--r--singleapplication.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/singleapplication.h b/singleapplication.h
new file mode 100644
index 0000000..03ac69c
--- /dev/null
+++ b/singleapplication.h
@@ -0,0 +1,33 @@
+#ifndef APPLICATION_H
+#define APPLICATION_H
+
+#include "localserver.h"
+
+#include <QGuiApplication>
+#include <QLocalSocket>
+
+/**
+ * @brief The Application class handles trivial application initialization procedures
+ */
+class SingleApplication : public QGuiApplication
+{
+ Q_OBJECT
+public:
+ explicit SingleApplication(int, char *[]);
+ ~SingleApplication();
+ bool shouldContinue();
+
+signals:
+ void showUp();
+
+private slots:
+ void slotShowUp();
+
+private:
+ QLocalSocket* socket;
+ LocalServer* server;
+ bool _shouldContinue;
+
+};
+
+#endif // APPLICATION_H