From 5c89ab17cf5c516cb2232dffc0b5ddae6c7d2be0 Mon Sep 17 00:00:00 2001 From: Itay Grudev Date: Thu, 26 Feb 2015 19:00:11 +0000 Subject: Completly rewritten and simplified source --- singleapplication.h | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'singleapplication.h') 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 +#include #include +#include /** - * @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 + -- cgit v1.2.1