Add tapShortcut event to qlibhomescreen,
Launcher application will use this library.
Change-Id: I26882ad17938c498110295a2fac072176a40da07
Signed-off-by: zheng_wenlong <wenlong_zheng@nexty-ele.com>
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
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: