summaryrefslogtreecommitdiff
path: root/hostmanagerconn.h
blob: 1361d217660de5d9e0e23ee1e8f90a796376aba6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef HOSTMANAGERPEER_H
#define HOSTMANAGERPEER_H

#include <QtCore/QVariant>
#include <QtCore/QJsonObject>
#include "sapconnection.h"
#include "sapsocket.h"

class HostManagerConn : public QObject
{
	Q_OBJECT

public:
	HostManagerConn(SAPConnection *conn, QObject *parent = 0);

private:
	void sendMessage(const QJsonObject &obj);

	void handleMessage(const QJsonObject &obj);

	void performTimeSync();

	QString generateHostXml();

private slots:
	void handleConnected();
	void handleMessageReceived();

private:
	SAPConnection *_conn;
	SAPSocket *_socket;
};

#endif // HOSTMANAGERPEER_H