add test for telemetryhandler class

This commit is contained in:
2016-09-17 23:19:06 +03:00
parent 3403d1de50
commit 6449465be2
5 changed files with 139 additions and 7 deletions

View File

@ -22,9 +22,6 @@
#include <QObject>
#include <QtCore/QVariant>
#define REMOTE_TELEMETRY_URL "http://arcanis.me/telemetry"
#define REMOTE_TELEMETRY_PORT 8080
class QAbstractButton;
class QNetworkReply;
@ -34,6 +31,9 @@ class AWTelemetryHandler : public QObject
Q_OBJECT
public:
const char *REMOTE_TELEMETRY_URL = "http://arcanis.me/telemetry";
const int REMOTE_TELEMETRY_PORT = 8080;
explicit AWTelemetryHandler(QObject *parent = nullptr,
const QString clientId = QString());
virtual ~AWTelemetryHandler();
@ -42,6 +42,9 @@ public:
Q_INVOKABLE bool put(const QString group, const QString value) const;
Q_INVOKABLE void uploadTelemetry(const QString group, const QString value);
signals:
void replyReceived(QString message);
private slots:
void telemetryReplyRecieved(QNetworkReply *reply);