summaryrefslogtreecommitdiffstats
path: root/sample/app/eventhandler.h
diff options
context:
space:
mode:
authorMarius Vlad <marius.vlad@collabora.com>2020-04-10 19:19:16 +0300
committerMarius Vlad <marius.vlad@collabora.com>2020-04-13 17:25:03 +0300
commitcd39ff2c9987904617c53685a75f5fe89513ce81 (patch)
tree31074a04020ec6c28b77c46f3419ed5b82c2cc27 /sample/app/eventhandler.h
parent85a1f5f0305fda98d7077bab78070456bcd680ac (diff)
Add pws to be able to start apps
Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Diffstat (limited to 'sample/app/eventhandler.h')
-rw-r--r--sample/app/eventhandler.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/sample/app/eventhandler.h b/sample/app/eventhandler.h
index c57c806..77e01e6 100644
--- a/sample/app/eventhandler.h
+++ b/sample/app/eventhandler.h
@@ -29,6 +29,11 @@
#include <wayland-client.h>
#include "wayland-agl-shell-desktop-client-protocol.h"
+#ifndef DEFAULT_AFM_UNIX_SOCK
+#define DEFAULT_AFM_UNIX_SOCK "unix:/run/platform/apis/ws/afm-main"
+#endif
+
+#include "launcher.h"
#include "hmi-debug.h"
#define ROLE_NAME "onstestapp"
@@ -52,6 +57,8 @@ public:
Q_INVOKABLE void showWindow(QString id, QString json);
Q_INVOKABLE void hideWindow(QString id);
+ Q_INVOKABLE int start(const QString &app_id);
+ Q_INVOKABLE bool is_running(const QString &app_id);
signals:
void signalOnReplyShowWindow(QVariant val);
@@ -62,7 +69,8 @@ private:
QLibWindowmanager* mp_wm;
#endif
struct agl_shell_desktop *shell_desktop = nullptr;
- QQuickWindow *mp_qw;
+ Launcher *m_launcher = nullptr;
+ QQuickWindow *mp_qw;
};
#endif // EVENTHANDLER_H