From d8d8fc7a0d139e7b864eee3b573bd208f823ad4f Mon Sep 17 00:00:00 2001 From: Javier Date: Sun, 19 Oct 2014 18:45:03 +0200 Subject: initial import, no crypto --- hostmanagerconn.h | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 hostmanagerconn.h (limited to 'hostmanagerconn.h') diff --git a/hostmanagerconn.h b/hostmanagerconn.h new file mode 100644 index 0000000..ab143a0 --- /dev/null +++ b/hostmanagerconn.h @@ -0,0 +1,33 @@ +#ifndef HOSTMANAGERPEER_H +#define HOSTMANAGERPEER_H + +#include +#include "sapconnection.h" +#include "sapsocket.h" + +class HostManagerConn : public QObject +{ + Q_OBJECT + +public: + HostManagerConn(SAPConnection *conn, QObject *parent = 0); + +private: + void sendMessage(const QString &json); + void sendMessage(const QVariantMap &msg); + void handleMessage(const QVariantMap &msg); + + void performTimeSync(); + + QString generateHostXml(); + +private slots: + void handleConnected(); + void handleMessageReceived(); + +private: + SAPConnection *_conn; + SAPSocket *_socket; +}; + +#endif // HOSTMANAGERPEER_H -- cgit v1.2.3