X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=sample%2Fapp%2Feventhandler.h;h=96e44aedccad99af1a6da0584a51ce2c15e12711;hb=bd47464dafd7110586163bbd6dc89a30fccd6a26;hp=af66644b7b642dcd31466fc0925e00b6ee5fff9e;hpb=aee1b69e8e207081a3d8b2670980671a9fbc78b8;p=apps%2Fonscreenapp.git diff --git a/sample/app/eventhandler.h b/sample/app/eventhandler.h index af66644..96e44ae 100644 --- a/sample/app/eventhandler.h +++ b/sample/app/eventhandler.h @@ -21,8 +21,19 @@ #include #include +#if 0 #include #include +#endif + +#include +#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" @@ -46,14 +57,21 @@ 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); + Q_INVOKABLE void set_window_popup(const QString &app_id, int x, int y); signals: void signalOnReplyShowWindow(QVariant val); private: +#if 0 QLibHomeScreen *mp_hs; QLibWindowmanager* mp_wm; - QQuickWindow *mp_qw; +#endif + struct agl_shell_desktop *shell_desktop = nullptr; + Launcher *m_launcher = nullptr; + QQuickWindow *mp_qw; }; #endif // EVENTHANDLER_H