summaryrefslogtreecommitdiffstats
path: root/src/qlibhomescreen.h
diff options
context:
space:
mode:
authorwang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com>2018-12-03 14:48:50 +0800
committerwang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com>2018-12-03 16:27:51 +0800
commitb218476402bceda7eb42d41064552a7261ff3205 (patch)
tree5adf90b7d10f60a208d0bc9886e5908cf50cd4f7 /src/qlibhomescreen.h
parentfdeea80c0f5b22fb50e176c98c85dace9b99edd5 (diff)
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 <wang_zhiqiang@dl.cn.nexty-ele.com>
Diffstat (limited to 'src/qlibhomescreen.h')
-rw-r--r--src/qlibhomescreen.h8
1 files changed, 4 insertions, 4 deletions
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: