diff options
author | wang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com> | 2019-05-20 11:12:28 +0800 |
---|---|---|
committer | wang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com> | 2019-05-20 11:12:28 +0800 |
commit | 33c89065c315edd838873116bec8723326f43488 (patch) | |
tree | b6cefa0f80833ff43e079670651488d28219a4c2 /homescreen/src/homescreenhandler.h | |
parent | 29287cb4b61917983eac27fe5c8bc9ccac31eaa5 (diff) |
change seq
Change-Id: I4555953ca6d2ff9bddcb1dc981fa6b8db8525aad
Diffstat (limited to 'homescreen/src/homescreenhandler.h')
-rw-r--r-- | homescreen/src/homescreenhandler.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/homescreen/src/homescreenhandler.h b/homescreen/src/homescreenhandler.h index 5dfe041..d617737 100644 --- a/homescreen/src/homescreenhandler.h +++ b/homescreen/src/homescreenhandler.h @@ -18,7 +18,9 @@ #define HOMESCREENHANDLER_H #include <QObject> -#include <libhomescreen.hpp> +#include <QQuickWindow> +#include <qlibhomescreen.h> +#include <qlibwindowmanager.h> #include <string> using namespace std; @@ -30,7 +32,7 @@ public: explicit HomescreenHandler(QObject *parent = 0); ~HomescreenHandler(); - void init(int port, const char* token); + void init(int port, const char* token, QLibWindowmanager *qwm, QString myname); Q_INVOKABLE void tapShortcut(QString application_id); @@ -40,12 +42,15 @@ public: static void* myThis; static void onRep_static(struct json_object* reply_contents); static void onEv_static(const string& event, struct json_object* event_contents); + void setQuickWindow(QQuickWindow *qw); signals: void showNotification(QString application_id, QString icon_path, QString text); void showInformation(QString info); private: - LibHomeScreen *mp_hs; + QLibHomeScreen *mp_qhs; + QLibWindowmanager *mp_qwm; + QString m_myname; }; #endif // HOMESCREENHANDLER_H |