blob: 5e2880f6894a88df3ae31de429339aec3a4366eb (
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
35
36
37
38
39
40
41
|
#ifndef JSKITMANAGER_H
#define JSKITMANAGER_H
#include <QJSEngine>
#include "appmanager.h"
#include "appmsgmanager.h"
class JSKitPebble;
class JSKitManager : public QObject
{
Q_OBJECT
LOG4QT_DECLARE_QCLASS_LOGGER
public:
explicit JSKitManager(AppManager *apps, AppMsgManager *appmsg, QObject *parent = 0);
~JSKitManager();
signals:
public slots:
private slots:
void handleAppStarted(const QUuid &uuid);
void handleAppStopped(const QUuid &uuid);
private:
void startJsApp();
void stopJsApp();
private:
friend class JSKitPebble;
AppManager *_apps;
AppMsgManager *_appmsg;
AppManager::AppInfo _curApp;
QJSEngine *_engine;
QPointer<JSKitPebble> _jspebble;
};
#endif // JSKITMANAGER_H
|