summaryrefslogtreecommitdiff
path: root/LocalListener.h
diff options
context:
space:
mode:
authorThomas Preud'homme <robotux@celest.fr>2017-11-24 23:24:09 +0000
committerThomas Preud'homme <robotux@celest.fr>2017-11-24 23:24:09 +0000
commitb3c8bdcc0d1e4b2ab298847a7902b6d60410a5bc (patch)
tree8fce8a51adfb245db8ab2a76831661780c0c713e /LocalListener.h
parente297dbd8052ef4e66f069e2dd1865ae7fa8af28e (diff)
New upstream version 1.2.3.6
Diffstat (limited to 'LocalListener.h')
-rw-r--r--LocalListener.h69
1 files changed, 33 insertions, 36 deletions
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 <QStringList>
#include <QString>
#include <QCoreApplication>
-#include <QFSFileEngine>
#include <QMessageBox>
#include <QTimer>
#include <QList>
+#include <QByteArray>
#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<composedData> clientList;
+ QLocalServer localServer;
+ QTimer TimeOutQLocalSocket;/// \todo by client
+ typedef struct {
+ QLocalSocket * socket;
+ QByteArray data;
+ int size;
+ bool haveData;
+ } ComposedData;
+ QList<ComposedData> 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