diff options
author | zheng_wenlong <wenlong_zheng@nexty-ele.com> | 2018-10-30 14:30:15 +0900 |
---|---|---|
committer | zheng_wenlong <wenlong_zheng@nexty-ele.com> | 2018-10-30 14:30:15 +0900 |
commit | 6aba1789714a7557484d83ee64e5dfb217430390 (patch) | |
tree | 0386b0367c779fd3169cc02e3b856a22c75c4ae0 /src/qlibhomescreen.h | |
parent | 0d7f000588954006d4687c97c19b424769189f9f (diff) |
add source for ces2019sandbox/zheng_wenlong/ces2019
Diffstat (limited to 'src/qlibhomescreen.h')
-rw-r--r-- | src/qlibhomescreen.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/qlibhomescreen.h b/src/qlibhomescreen.h index cc0f12a..6d96bb2 100644 --- a/src/qlibhomescreen.h +++ b/src/qlibhomescreen.h @@ -34,7 +34,10 @@ public: enum QEventType { Event_TapShortcut = LibHomeScreen::Event_TapShortcut, - Event_OnScreenReply = LibHomeScreen::Event_OnScreenReply + Event_ShowWindow = LibHomeScreen::Event_ShowWindow, + Event_OnScreenReply = LibHomeScreen::Event_OnScreenReply, + Event_AllocateRestriction, + Event_ReleaseRestriction }; using handler_fun = std::function<void(json_object *object)>; @@ -44,6 +47,10 @@ public: Q_INVOKABLE int subscribe(const QString &eventName); Q_INVOKABLE int unsubscribe(const QString &eventName); Q_INVOKABLE void tapShortcut(QString application_name); + Q_INVOKABLE void showWindow(QString application_name, json_object* json); + Q_INVOKABLE void showWindow(QString application_name, QString json); + Q_INVOKABLE void allocateRestriction(QString area); + Q_INVOKABLE void releaseRestriction(QString area); signals: |