Use appid between homescreen-service and apps
[src/libqthomescreen.git] / src / qlibhomescreen.cpp
index b2f6751..cfeb9c1 100644 (file)
@@ -24,7 +24,7 @@ using namespace std;
 #define _REQ_POPUP_MESSAGE "on_screen_message"
 #define _TAPSHORTCUT "tap_shortcut"
 #define _KEY_DATA "data"
-#define _KEY_APPLICATION_DATA "application_name"
+#define _KEY_APPLICATION_DATA "application_id"
 #define _KEY_REPLY_MESSAGE "reply_message"
 #define _KEY_REQUEST_MESSAGE "display_message"
 
@@ -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_id)
+{
+    HMI_DEBUG("qlibhomescreen","tapShortcut %s", application_id.toStdString().c_str());
+    this->mp_hs->tapShortcut(application_id.toStdString().c_str());
+}
\ No newline at end of file