aboutsummaryrefslogtreecommitdiffstats
path: root/launcher/src/applicationhandler.h
diff options
context:
space:
mode:
authorMarius Vlad <marius.vlad@collabora.com>2020-01-22 21:42:06 +0200
committerMarius Vlad <marius.vlad@collabora.com>2020-01-23 16:33:56 +0200
commit50d87b3696390d30f8801bcdff908e33ed7e61aa (patch)
treedda169c89c5d9db8d69535a7a8ed3cb29db79be6 /launcher/src/applicationhandler.h
parent830921faab68c1d4b00b9a93a99a1584c59baf34 (diff)
launcher/: Convert launcher to agl-compositor
- adds pws/ directory just like homescreen to be able to get list of runnables apps and be able to spawn them with the help of libafbwsc - removes libhomescreen libwindowmanger call from main and qmake files Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Change-Id: I2f6aebfe05a23389796e801300cb616000bdef2b
Diffstat (limited to 'launcher/src/applicationhandler.h')
-rw-r--r--launcher/src/applicationhandler.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/launcher/src/applicationhandler.h b/launcher/src/applicationhandler.h
new file mode 100644
index 0000000..5a5508e
--- /dev/null
+++ b/launcher/src/applicationhandler.h
@@ -0,0 +1,36 @@
+#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);
+
+ //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