aboutsummaryrefslogtreecommitdiffstats
path: root/src/homescreen.cpp
diff options
context:
space:
mode:
authorzheng_wenlong <wenlong_zheng@nexty-ele.com>2018-09-11 11:30:01 +0900
committerzheng_wenlong <wenlong_zheng@nexty-ele.com>2018-09-11 11:30:49 +0900
commit2aa2fc0f925fb529b0a4db038d91398bb627fd1a (patch)
tree77a14426f6a98d93c4a3d4584f1e1172168bd9e4 /src/homescreen.cpp
parentbb38a76d1b00e93187967aa2880e79e671f02eba (diff)
Add some comments for hs-helperguppy_6.90.0guppy/6.90.06.90.0
Add some comments. Change-Id: I08e4f2050f5107d538a4622dc5462d11bbd5078d Signed-off-by: zheng_wenlong <wenlong_zheng@nexty-ele.com>
Diffstat (limited to 'src/homescreen.cpp')
-rw-r--r--src/homescreen.cpp47
1 files changed, 37 insertions, 10 deletions
diff --git a/src/homescreen.cpp b/src/homescreen.cpp
index 85ea99f..5de15b8 100644
--- a/src/homescreen.cpp
+++ b/src/homescreen.cpp
@@ -57,13 +57,13 @@ static void pingSample(struct afb_req request)
/**
* tap_shortcut notify for homescreen
* When Shortcut area is tapped, notify these applciations
- *
+ *
* #### Parameters
* Request key
* - application_name : application name
*
* #### Return
- * Nothing
+ * None
*
*/
static void tap_shortcut (struct afb_req request)
@@ -100,7 +100,7 @@ static void tap_shortcut (struct afb_req request)
* - display_message : message for display
*
* #### Return
- * Nothing
+ * None
*
*/
static void on_screen_message (struct afb_req request)
@@ -137,7 +137,7 @@ static void on_screen_message (struct afb_req request)
* - reply_message : message for reply
*
* #### Return
- * Nothing
+ * None
*
*/
static void on_screen_reply (struct afb_req request)
@@ -173,9 +173,7 @@ static void on_screen_reply (struct afb_req request)
* - event : Event name. Event list is written in libhomescreen.cpp
*
* #### Return
- * Nothing
- *
- * #### Note
+ * None
*
*/
static void subscribe(struct afb_req request)
@@ -213,9 +211,7 @@ static void subscribe(struct afb_req request)
* - event : Event name. Event list is written in libhomescreen.cpp
*
* #### Return
- * Nothing
- *
- * #### Note
+ * None
*
*/
static void unsubscribe(struct afb_req request)
@@ -260,12 +256,32 @@ static const struct afb_verb_v2 verbs[]= {
{NULL } /* marker for end of the array */
};
+/**
+ * homescreen binding preinit function
+ *
+ * #### Parameters
+ * - null
+ *
+ * #### Return
+ * None
+ *
+ */
static int preinit()
{
HMI_NOTICE("homescreen-service","binding preinit (was register)");
return 0;
}
+/**
+ * homescreen binding init function
+ *
+ * #### Parameters
+ * - null
+ *
+ * #### Return
+ * None
+ *
+ */
static int init()
{
HMI_NOTICE("homescreen-service","binding init");
@@ -290,6 +306,17 @@ static int init()
return 0;
}
+/**
+ * homescreen binding event function
+ *
+ * #### Parameters
+ * - event : event name
+ * - object : event json object
+ *
+ * #### Return
+ * None
+ *
+ */
static void onevent(const char *event, struct json_object *object)
{
HMI_NOTICE("homescreen-service","on_event %s", event);