From 7d3c31cb0c123d861d05516f013aedd60337735a Mon Sep 17 00:00:00 2001 From: jongmyeongko Date: Mon, 15 Feb 2016 16:02:02 +0900 Subject: [PATCH] add new system-event for network status Change-Id: I70a598a5d493ac303c7632f050198137a92bd0fd Signed-off-by: jongmyeongko --- doc/appfw_event_doc.h | 5 +++++ include/app_event.h | 56 +++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 61 insertions(+) diff --git a/doc/appfw_event_doc.h b/doc/appfw_event_doc.h index b9d18d6..eebf48f 100755 --- a/doc/appfw_event_doc.h +++ b/doc/appfw_event_doc.h @@ -269,6 +269,11 @@ * EVENT_KEY_FONT_SET * The value of this key is font name of string type by font-config. * + * + * SYSTEM_EVENT_NETWORK_STATUS + * EVENT_KEY_NETWORK_STATUS + * EVENT_VAL_NETWORK_DISCONNECTED
EVENT_VAL_NETWORK_WIFI
EVENT_VAL_NETWORK_CELLULAR
EVENT_VAL_NETWORK_ETHERNET
EVENT_VAL_NETWORK_BT
EVENT_VAL_NETWORK_NET_PROXY + * * * */ diff --git a/include/app_event.h b/include/app_event.h index 1ef7462..a0a8cbc 100644 --- a/include/app_event.h +++ b/include/app_event.h @@ -775,6 +775,62 @@ typedef enum { #define EVENT_KEY_FONT_SET "font_set" /** + * @brief Definition for system-event of network : status of network. + * @since_tizen 3.0 + * @see EVENT_KEY_NETWORK_STATUS + */ +#define SYSTEM_EVENT_NETWORK_STATUS "tizen.system.event.network_status" + +/** + * @brief Definition for key of SYSTEM_EVENT_NETWORK_STATUS. + * @since_tizen 3.0 + * @remarks The values of this event indicate the type of the current profile for data connection. + * @see EVENT_VAL_NETWORK_DISCONNECTED + * @see EVENT_VAL_NETWORK_WIFI + * @see EVENT_VAL_NETWORK_CELLULAR + * @see EVENT_VAL_NETWORK_ETHERNET + * @see EVENT_VAL_NETWORK_BT + * @see EVENT_VAL_NETWORK_NET_PROXY + */ +#define EVENT_KEY_NETWORK_STATUS "network_status" + +/** + * @brief Definition for value of EVENT_KEY_NETWORK_STATUS. + * @since_tizen 3.0 + */ +#define EVENT_VAL_NETWORK_DISCONNECTED "disconnected" + +/** + * @brief Definition for value of EVENT_KEY_NETWORK_STATUS. + * @since_tizen 3.0 + */ +#define EVENT_VAL_NETWORK_WIFI "wifi" + +/** + * @brief Definition for value of EVENT_KEY_NETWORK_STATUS. + * @since_tizen 3.0 + */ +#define EVENT_VAL_NETWORK_CELLULAR "cellular" + +/** + * @brief Definition for value of EVENT_KEY_NETWORK_STATUS. + * @since_tizen 3.0 + */ +#define EVENT_VAL_NETWORK_ETHERNET "ethernet" + +/** + * @brief Definition for value of EVENT_KEY_NETWORK_STATUS. + * @since_tizen 3.0 + */ +#define EVENT_VAL_NETWORK_BT "bt" + +/** + * @brief Definition for value of EVENT_KEY_NETWORK_STATUS. + * @since_tizen 3.0 + */ +#define EVENT_VAL_NETWORK_NET_PROXY "net_proxy" + +/** * @brief Adds the event handler for receiving event-data of interested events. * * @since_tizen 2.4 -- 2.7.4