X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=app%2Feventhandler.h;h=e4fbb6b5a48e006dc9be817a64c9dddb1ef446ea;hb=519f9cb01b41a9f44eeeee58d213449f7a470120;hp=567c8a95cc6b6456656cdf5aeda2895bf877d2e7;hpb=aee1b69e8e207081a3d8b2670980671a9fbc78b8;p=apps%2Fonscreenapp.git diff --git a/app/eventhandler.h b/app/eventhandler.h index 567c8a9..e4fbb6b 100644 --- a/app/eventhandler.h +++ b/app/eventhandler.h @@ -21,10 +21,11 @@ #include #include #include -#include -#include #include "hmi-debug.h" +#include +#include "wayland-agl-shell-desktop-client-protocol.h" + #define APP_ID "onscreenapp" class QQmlApplicationEngine; @@ -35,17 +36,16 @@ class EventHandler : public QObject public: explicit EventHandler(QObject *parent = 0); ~EventHandler(); + EventHandler(const EventHandler&) = delete; EventHandler& operator=(const EventHandler&) = delete; void init(int port, const char* token); - void onRep(struct json_object* reply_contents); static void* myThis; - static void onRep_static(struct json_object* reply_contents); Q_INVOKABLE void deactivateWindow(); - Q_INVOKABLE void onScreenReply(const QString &btn_name); + Q_INVOKABLE void onScreenReply(const QString &ons_title, const QString &btn_name); signals: void updateModel(QVariant data); @@ -63,9 +63,8 @@ private: void setDisplayStatus(int sts) {m_dsp_sts = sts;} void activateWindow(const char *role, const char *area = "normal.full"); - LibHomeScreen *mp_hs; - QLibWindowmanager* mp_wm; QPair m_req, m_dsp; + struct agl_shell_desktop *shell_desktop = nullptr; int m_dsp_sts = HIDING; }; #endif // HOMESCREENHANDLER_H