aboutsummaryrefslogtreecommitdiffstats
path: root/src/libhomescreen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libhomescreen.cpp')
-rw-r--r--src/libhomescreen.cpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/libhomescreen.cpp b/src/libhomescreen.cpp
index f302c3b..f0d7cfe 100644
--- a/src/libhomescreen.cpp
+++ b/src/libhomescreen.cpp
@@ -581,6 +581,28 @@ int LibHomeScreen::showNotification(json_object* json)
}
/**
+ * register shortcut to homescreen
+ *
+ * Call HomeScreen Service's registerShortcut verb to regitster shortcut.
+ *
+ * #### Parameters
+ * - json [in] : This argument should be specified to the json parameters.
+ *
+ * #### Return
+ * - Returns 0 on success or -1 in case of error.
+ *
+ */
+int LibHomeScreen::registerShortcut(json_object* json)
+{
+ if(!sp_websock)
+ {
+ return -1;
+ }
+
+ return this->call("registerShortcut", json);
+}
+
+/**
* Sending show information event
*
* Call HomeScreen Service's information verb to show notification on Information Bar.