summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzheng_wenlong <wenlong_zheng@nexty-ele.com>2018-08-06 12:16:42 +0900
committerzheng_wenlong <wenlong_zheng@nexty-ele.com>2018-08-06 12:17:06 +0900
commit59f49ec2538f22fbf752330f78413e445a3dc504 (patch)
tree4859a53a62b5c41b2810e4541842146da4f889db
parent48dabd70e638a5b95024e53a11deac851a1afcde (diff)
Use appid between homescreen-service and appsflounder_5.99.3flounder/5.99.35.99.3
Use appid between hss and apps, and check event destination in libhomescreen. So these is no need compare code when recived Event_TapShortcut Event. BUG-AGL: SPEC-1645 Change-Id: I875cc87a46b0c0d1f417e2dd979decc18fb40eb7 Signed-off-by: zheng_wenlong <wenlong_zheng@nexty-ele.com>
-rw-r--r--src/qlibhomescreen.cpp8
-rw-r--r--src/qlibhomescreen.h2
2 files changed, 5 insertions, 5 deletions
diff --git a/src/qlibhomescreen.cpp b/src/qlibhomescreen.cpp
index 13093c3..cfeb9c1 100644
--- a/src/qlibhomescreen.cpp
+++ b/src/qlibhomescreen.cpp
@@ -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"
@@ -175,8 +175,8 @@ void QLibHomeScreen::set_event_handler(enum QEventType et, handler_fun f)
* - None.
*
*/
-void QLibHomeScreen::tapShortcut(QString application_name)
+void QLibHomeScreen::tapShortcut(QString application_id)
{
- HMI_DEBUG("qlibhomescreen","tapShortcut %s", application_name.toStdString().c_str());
- this->mp_hs->tapShortcut(application_name.toStdString().c_str());
+ 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
diff --git a/src/qlibhomescreen.h b/src/qlibhomescreen.h
index cc0f12a..bf43963 100644
--- a/src/qlibhomescreen.h
+++ b/src/qlibhomescreen.h
@@ -43,7 +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);
+ Q_INVOKABLE void tapShortcut(QString application_id);
signals: