mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-07-14 14:25:50 +00:00
add test for telemetryhandler class
This commit is contained in:
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user