diff options
Diffstat (limited to 'singleapplication.h')
-rw-r--r-- | singleapplication.h | 33 |
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 |