diff options
author | Javier <dev.git@javispedro.com> | 2016-01-01 22:05:42 +0100 |
---|---|---|
committer | Javier <dev.git@javispedro.com> | 2016-01-01 22:05:42 +0100 |
commit | a45977185a485624095bff1a15024e9199eee676 (patch) | |
tree | 6cc57d085bdd01e493477c870dbe0548137998e1 /hostmanagerconn.h | |
parent | a24034bdfea259cdc09c74217be75d4f9de0dce5 (diff) | |
download | sapd-a45977185a485624095bff1a15024e9199eee676.tar.gz sapd-a45977185a485624095bff1a15024e9199eee676.zip |
reorganize source files into SAP and agents
Diffstat (limited to 'hostmanagerconn.h')
-rw-r--r-- | hostmanagerconn.h | 68 |
1 files changed, 0 insertions, 68 deletions
diff --git a/hostmanagerconn.h b/hostmanagerconn.h deleted file mode 100644 index 3543a6c..0000000 --- a/hostmanagerconn.h +++ /dev/null @@ -1,68 +0,0 @@ -#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); - -protected: - struct AppInfo { - QString name; - QString packageName; - QString version; - bool preloaded; - bool isAppWidget; - - QStringList requiredPackages; - QStringList requiringPackages; - bool installed; - }; - - struct DeviceInfo { - QString deviceId; - QString deviceName; - QString devicePlatform; - QString devicePlatformVersion; - QString deviceType; - QString modelNumber; - QString swVersion; - - QList<AppInfo> apps; - - bool telephony; - bool messaging; - bool tablet; - bool autolock; - bool smartrelay; - bool safetyassistence; - QString vendor; - }; - - static DeviceInfo parseDeviceInfo(const QString &xmlData); - -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 |