blob: 2134ab5db6489c65c6afb6f20e166ab3ce5d2d9d (
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 APPFETCHMANAGER_H
#define APPFETCHMANAGER_H
#include <QTimer>
#include <QUuid>
#include <QVector>
#include <QLoggingCategory>
#include "watchconnector.h"
class UploadManager;
class AppManager;
class AppFetchManager : public QObject
{
Q_OBJECT
QLoggingCategory l;
public:
explicit AppFetchManager(WatchConnector *watch, UploadManager *upload, AppManager *apps, QObject *parent = 0);
private:
void handleAppFetchRequest(const QByteArray &msg);
void sendAppFetchResponse(WatchConnector::AppFetchMessage command, WatchConnector::AppFetchStatus status);
void uploadApp(const QUuid &uuid, quint32 app_id);
private:
WatchConnector *watch;
UploadManager *upload;
AppManager *apps;
};
#endif // APPFETCHMANAGER_H
|