blob: 6a8abafc62e1b42ed20b53453a4ae1c0219a667e (
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
|
#ifndef APPLICATIONHANDLER_H
#define APPLICATIONHANDLER_H
#include <QObject>
#include <QDebug>
#include <string>
#include "launcher.h"
using namespace std;
class ApplicationHandler : public QObject
{
Q_OBJECT
public:
explicit ApplicationHandler(QObject *parent = 0, Launcher *launcher = 0);
~ApplicationHandler();
//void init(int port, const char* token, QLibWindowmanager *qwm, QString myname);
//Q_INVOKABLE void tapShortcut(QString application_id);
Q_INVOKABLE size_t getRunnables(void);
Q_INVOKABLE int launch(const QString &app_id);
//void onRep(struct json_object* reply_contents);
//static void* myThis;
//static void onRep_static(struct json_object* reply_contents);
signals:
void initAppList(QString data);
void appListUpdate(QStringList info);
private:
QString m_myname;
Launcher *m_launcher;
};
#endif // APPLICATIONHANDLER_H
|