From b218476402bceda7eb42d41064552a7261ff3205 Mon Sep 17 00:00:00 2001 From: wang_zhiqiang Date: Mon, 3 Dec 2018 14:48:50 +0800 Subject: fix issue and modify function parameter name 1.it's wrong to use json_tokener_parse to convert char* to area json_object in showWindow,remake area json_object. 2.modify function parameter name and comments to make it easy to understand Change-Id: I24b1425d429cb63f47f82e679076171cd1d2c011 Signed-off-by: wang_zhiqiang --- src/qlibhomescreen.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/qlibhomescreen.h') diff --git a/src/qlibhomescreen.h b/src/qlibhomescreen.h index e613de3..5dd1ae5 100644 --- a/src/qlibhomescreen.h +++ b/src/qlibhomescreen.h @@ -46,8 +46,8 @@ public: void init(int port, const QString &token); void set_event_handler(enum QEventType et, handler_fun f); - void showWindow(QString application_id, json_object* json); - void replyShowWindow(QString application_id, json_object* json); + void showWindow(QString application_id, json_object* area); + void replyShowWindow(QString application_id, json_object* reply); Q_INVOKABLE void showInformation(QString info); Q_INVOKABLE void showNotification(QString icon, QString text); @@ -55,9 +55,9 @@ public: Q_INVOKABLE int subscribe(const QString &eventName); Q_INVOKABLE int unsubscribe(const QString &eventName); Q_INVOKABLE void tapShortcut(QString application_id); - Q_INVOKABLE void showWindow(QString application_id, QString json); + Q_INVOKABLE void showWindow(QString application_id, QString area); Q_INVOKABLE void hideWindow(QString application_id); - Q_INVOKABLE void replyShowWindow(QString application_id, QString json); + Q_INVOKABLE void replyShowWindow(QString application_id, QString reply); signals: -- cgit 1.2.3-korg