blob: 651d84e00155a8c506e15a4e2c12f45fe9bf3f1b (
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
|
#ifndef APPMSGMANAGER_H
#define APPMSGMANAGER_H
#include "watchconnector.h"
class AppMsgManager : public QObject
{
Q_OBJECT
LOG4QT_DECLARE_QCLASS_LOGGER
public:
explicit AppMsgManager(WatchConnector *watch, QObject *parent);
public slots:
void send(const QUuid &uuid, const QVariantMap &data);
signals:
void appStarted(const QUuid &uuid);
void appStopped(const QUuid &uuid);
void dataReceived(const QUuid &uuid, const QVariantMap &data);
private:
static QByteArray buildAckMessage(uint transaction);
static QByteArray buildNackMessage(uint transaction);
private:
WatchConnector *watch;
};
#endif // APPMSGMANAGER_H
|