summaryrefslogtreecommitdiff
path: root/hostmanagerconn.h
diff options
context:
space:
mode:
Diffstat (limited to 'hostmanagerconn.h')
-rw-r--r--hostmanagerconn.h33
1 files changed, 33 insertions, 0 deletions
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 <QtCore/QVariant>
+#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