Add tapShortcut event for launcher application 5.99.1 5.99.2 flounder/5.99.1 flounder/5.99.2 flounder_5.99.1 flounder_5.99.2
authorzheng_wenlong <wenlong_zheng@nexty-ele.com>
Tue, 19 Jun 2018 04:44:06 +0000 (13:44 +0900)
committerzheng_wenlong <wenlong_zheng@nexty-ele.com>
Tue, 19 Jun 2018 04:44:06 +0000 (13:44 +0900)
    Add tapShortcut event to qlibhomescreen,
    Launcher application will use this library.

Change-Id: I26882ad17938c498110295a2fac072176a40da07
Signed-off-by: zheng_wenlong <wenlong_zheng@nexty-ele.com>
src/qlibhomescreen.cpp
src/qlibhomescreen.h

index b2f6751..13093c3 100644 (file)
@@ -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
index c744c29..cc0f12a 100644 (file)
@@ -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: