From a45977185a485624095bff1a15024e9199eee676 Mon Sep 17 00:00:00 2001 From: Javier Date: Fri, 1 Jan 2016 22:05:42 +0100 Subject: reorganize source files into SAP and agents --- sap/sapconnection.h | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 sap/sapconnection.h (limited to 'sap/sapconnection.h') diff --git a/sap/sapconnection.h b/sap/sapconnection.h new file mode 100644 index 0000000..0fdd025 --- /dev/null +++ b/sap/sapconnection.h @@ -0,0 +1,40 @@ +#ifndef SAPCONNECTION_H +#define SAPCONNECTION_H + +#include +#include + +class SAPPeer; +class SAPSocket; + +class SAPConnection : public QObject +{ + Q_OBJECT + + SAPConnection(SAPPeer *peer, const QString &profile); + +public: + SAPPeer *peer(); + + QString profile() const; + + SAPSocket *getSocket(int channelId); + + QList sockets(); + +signals: + void connected(); + void error(int errorCode); + void disconnected(); + +private: + void setSocket(int channelId, SAPSocket *socket); + +private: + const QString _profile; + QMap _sockets; + + friend class SAPPeer; +}; + +#endif // SAPCONNECTION_H -- cgit v1.2.3