diff options
author | 2019-05-28 11:10:40 +0800 | |
---|---|---|
committer | 2019-05-28 11:10:40 +0800 | |
commit | 503c72aa7024dbbd304bda93a0c9dde38ee9ffd9 (patch) | |
tree | a41b337a1debcf7ee0e6f9980625f97b75b5fae5 /src/qlibhomescreen.h | |
parent | c84b48ed032e85582189ccf45947379a2369cccb (diff) |
change register/update shortcut
Change-Id: Iabc9ca70bd57517333c7871c4df1092342697b69
Diffstat (limited to 'src/qlibhomescreen.h')
-rw-r--r-- | src/qlibhomescreen.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/qlibhomescreen.h b/src/qlibhomescreen.h index 11970e2..876ce38 100644 --- a/src/qlibhomescreen.h +++ b/src/qlibhomescreen.h @@ -63,8 +63,9 @@ public: Q_INVOKABLE void hideWindow(QString application_id); Q_INVOKABLE void replyShowWindow(QString application_id, QString reply); Q_INVOKABLE void getRunnables(void); - Q_INVOKABLE void registerShortcut(QString shortcut_id, QString shortcut_name, QString position); - Q_INVOKABLE void updateShortcut(QString shortcut_id, QString shortcut_name); + Q_INVOKABLE int registerShortcut(QString shortcut_id, QString shortcut_name, QString position); + Q_INVOKABLE int updateShortcut(QString application_id, QString shortcut_id, QString shortcut_name); + int updateShortcut(QString application_id, struct json_object* obj); void registerCallback( void (*event_cb)(const std::string& event, struct json_object* event_contents), void (*reply_cb)(struct json_object* reply_contents), |