diff options
author | zheng_wenlong <wenlong_zheng@nexty-ele.com> | 2018-06-19 13:44:06 +0900 |
---|---|---|
committer | zheng_wenlong <wenlong_zheng@nexty-ele.com> | 2018-06-19 13:44:06 +0900 |
commit | 313cd53946a456163108c4f6f1582e442ebc4022 (patch) | |
tree | 0a6a46125154cb6ee3e8b5d22f3487a708f7c34b | |
parent | 4d78f90d7fa97f5c4981053bb8b412bbcd6b54fe (diff) |
Add tapShortcut event for launcher applicationflounder_5.99.2flounder_5.99.1flounder/5.99.2flounder/5.99.15.99.25.99.1
Add tapShortcut event to qlibhomescreen,
Launcher application will use this library.
Change-Id: I26882ad17938c498110295a2fac072176a40da07
Signed-off-by: zheng_wenlong <wenlong_zheng@nexty-ele.com>
-rw-r--r-- | src/qlibhomescreen.cpp | 16 | ||||
-rw-r--r-- | src/qlibhomescreen.h | 1 |
2 files changed, 17 insertions, 0 deletions
diff --git a/src/qlibhomescreen.cpp b/src/qlibhomescreen.cpp index b2f6751..13093c3 100644 --- a/src/qlibhomescreen.cpp +++ b/src/qlibhomescreen.cpp @@ -164,3 +164,19 @@ void QLibHomeScreen::set_event_handler(enum QEventType et, handler_fun f) LibHomeScreen::EventType hs_et = (LibHomeScreen::EventType)et; return this->mp_hs->set_event_handler(hs_et, std::move(f)); } + +/** + * tapShortcut function + * + * #### Parameters + * - application_name : tapped application name + * + * #### Return + * - None. + * + */ +void QLibHomeScreen::tapShortcut(QString application_name) +{ + HMI_DEBUG("qlibhomescreen","tapShortcut %s", application_name.toStdString().c_str()); + this->mp_hs->tapShortcut(application_name.toStdString().c_str()); +}
\ No newline at end of file diff --git a/src/qlibhomescreen.h b/src/qlibhomescreen.h index c744c29..cc0f12a 100644 --- a/src/qlibhomescreen.h +++ b/src/qlibhomescreen.h @@ -43,6 +43,7 @@ public: Q_INVOKABLE int onScreenMessage(const QString &message); Q_INVOKABLE int subscribe(const QString &eventName); Q_INVOKABLE int unsubscribe(const QString &eventName); + Q_INVOKABLE void tapShortcut(QString application_name); signals: |