From b3c8bdcc0d1e4b2ab298847a7902b6d60410a5bc Mon Sep 17 00:00:00 2001 From: Thomas Preud'homme Date: Fri, 24 Nov 2017 23:24:09 +0000 Subject: New upstream version 1.2.3.6 --- LocalListener.h | 69 +++++++++++++++++++++++++++------------------------------ 1 file changed, 33 insertions(+), 36 deletions(-) (limited to 'LocalListener.h') diff --git a/LocalListener.h b/LocalListener.h index a0fbee1..cc23dde 100644 --- a/LocalListener.h +++ b/LocalListener.h @@ -1,8 +1,6 @@ /** \file LocalListener.h \brief The have local server, to have unique instance, and send arguments to the current running instance \author alpha_one_x86 -\version 0.3 -\date 2010 \licence GPL3, see the file COPYING */ #ifndef LOCALLISTENER_H @@ -14,55 +12,54 @@ #include #include #include -#include #include #include #include +#include #include "Environment.h" #include "ExtraSocket.h" -#include "GlobalClass.h" /** \brief To have unique instance, and pass arguments to the existing instance if needed */ -class LocalListener : public QObject, public GlobalClass +class LocalListener : public QObject { Q_OBJECT public: - explicit LocalListener(QObject *parent = 0); - ~LocalListener(); + explicit LocalListener(QObject *parent = 0); + ~LocalListener(); public slots: - /// try connect to existing server - bool tryConnect(); - /// the listen server - void listenServer(); + /// try connect to existing server + bool tryConnect(); + /// the listen server + void listenServer(); private: - QLocalServer localServer; - QTimer TimeOutQLocalSocket; - typedef struct { - QLocalSocket * socket; - QByteArray data; - int size; - bool haveData; - } composedData; - QList clientList; + QLocalServer localServer; + QTimer TimeOutQLocalSocket;/// \todo by client + typedef struct { + QLocalSocket * socket; + QByteArray data; + int size; + bool haveData; + } ComposedData; + QList clientList; private slots: - //the time is done - void timeoutDectected(); - /// \brief Data is incomming - void dataIncomming(); - /// \brief Deconnexion client - void deconnectClient(); - /// LocalListener New connexion - void newConnexion(); - #ifdef ULTRACOPIER_DEBUG - /** \brief If error occured at socket - \param theErrorDefine The error define */ - void error(QLocalSocket::LocalSocketError theErrorDefine); - #endif - /// \can now parse the cli - void allPluginIsloaded(); + //the time is done + void timeoutDectected(); + /// \brief Data is incomming + void dataIncomming(); + /// \brief Deconnexion client + void deconnectClient(); + /// LocalListener New connexion + void newConnexion(); + #ifdef ULTRACOPIER_DEBUG + /** \brief If error occured at socket + \param theErrorDefine The error define */ + void error(const QLocalSocket::LocalSocketError &theErrorDefine); + #endif + /// \can now parse the cli + void allPluginIsloaded(); signals: - void cli(const QStringList &ultracopierArguments,const bool &external,const bool &onlyCheck); + void cli(const QStringList &ultracopierArguments,const bool &external,const bool &onlyCheck) const; }; #endif // LOCALLISTENER_H -- cgit v1.2.3