From 378f5a337dada870d34027fab18d171adc88c780 Mon Sep 17 00:00:00 2001 From: Somin Kim Date: Mon, 22 May 2017 10:34:58 +0900 Subject: [PATCH] [Trigger] Align contents for better readability Change-Id: I49c4e725bf8e08a6f235afe0d41e26224d5091b7 Signed-off-by: Somin Kim --- include/context_trigger.h | 107 ++++++++++++++++++++------------------ 1 file changed, 56 insertions(+), 51 deletions(-) diff --git a/include/context_trigger.h b/include/context_trigger.h index f92d9bf..1d36680 100644 --- a/include/context_trigger.h +++ b/include/context_trigger.h @@ -160,9 +160,9 @@ extern "C" { /** * @deprecated Deprecated since 4.0. - * @brief Definition for the attribute key denoting "BSSID". - * @details This can be used as left operands of context_trigger_rule_entry_add_comparison_string().@n - * See the programming guide to find available right operands. + * @brief Definition for the attribute key denoting "BSSID". + * @details This can be used as left operands of context_trigger_rule_entry_add_comparison_string().@n + * See the programming guide to find available right operands. * @since_tizen 2.4 */ #define CONTEXT_TRIGGER_BSSID "BSSID" @@ -193,9 +193,9 @@ extern "C" { /** * @deprecated Deprecated since 4.0. - * @brief Definition for the attribute key denoting "medium". - * @details This can be used as left operands of context_trigger_rule_entry_add_comparison_string().@n - * See the programming guide to find available right operands. + * @brief Definition for the attribute key denoting "medium". + * @details This can be used as left operands of context_trigger_rule_entry_add_comparison_string().@n + * See the programming guide to find available right operands. * @since_tizen 2.4 */ #define CONTEXT_TRIGGER_MEDIUM "Medium" @@ -210,37 +210,37 @@ extern "C" { /** * @deprecated Deprecated since 4.0. - * @brief Definition for the attribute key denoting "application id". - * @details This can be used as a key of context_trigger_rule_entry_add_option_string().@n - * See the programming guide to find the corresponding trigger events. + * @brief Definition for the attribute key denoting "application id". + * @details This can be used as a key of context_trigger_rule_entry_add_option_string().@n + * See the programming guide to find the corresponding trigger events. * @since_tizen 2.4 */ #define CONTEXT_TRIGGER_APP_ID "AppId" /** * @deprecated Deprecated since 4.0. - * @brief Definition for the attribute key denoting "address". - * @details This can be used as a key of context_trigger_rule_entry_add_option_string(), - * or context_trigger_rule_entry_add_comparison_string().@n - * See the programming guide and CAPI_CONTEXT_TRIGGER_MODULE_OPTION_FORMAT to find the corresponding items. + * @brief Definition for the attribute key denoting "address". + * @details This can be used as a key of context_trigger_rule_entry_add_option_string(), + * or context_trigger_rule_entry_add_comparison_string().@n + * See the programming guide and CAPI_CONTEXT_TRIGGER_MODULE_OPTION_FORMAT to find the corresponding items. * @since_tizen 2.4 */ #define CONTEXT_TRIGGER_ADDRESS "Address" /** * @deprecated Deprecated since 4.0. - * @brief Definition for the attribute key denoting "rank". - * @details This can be used as left operands of context_trigger_rule_entry_add_comparison_int().@n - * See the programming guide to find available right operands. + * @brief Definition for the attribute key denoting "rank". + * @details This can be used as left operands of context_trigger_rule_entry_add_comparison_int().@n + * See the programming guide to find available right operands. * @since_tizen 2.4 */ #define CONTEXT_TRIGGER_RANK "Rank" /** * @deprecated Deprecated since 4.0. - * @brief Definition for the attribute key denoting "total count". - * @details This can be used as left operands of context_trigger_rule_entry_add_comparison_int().@n - * See the programming guide to find available right operands. + * @brief Definition for the attribute key denoting "total count". + * @details This can be used as left operands of context_trigger_rule_entry_add_comparison_int().@n + * See the programming guide to find available right operands. * @since_tizen 2.4 */ #define CONTEXT_TRIGGER_TOTAL_COUNT "TotalCount" @@ -390,9 +390,9 @@ extern "C" { /** * @deprecated Deprecated since 4.0. - * @brief Definition for the attribute value denoting the "connecting" state. - * @details This can be used as right operands of context_trigger_rule_entry_add_comparison_string().@n - * See the programming guide to find the corresponding left operand attribute keys. + * @brief Definition for the attribute value denoting the "connecting" state. + * @details This can be used as right operands of context_trigger_rule_entry_add_comparison_string().@n + * See the programming guide to find the corresponding left operand attribute keys. * @since_tizen 2.4 */ #define CONTEXT_TRIGGER_CONNECTING "Connecting" @@ -415,27 +415,27 @@ extern "C" { /** * @deprecated Deprecated since 4.0. - * @brief Definition for the attribute value denoting the "idle" state. - * @details This can be used as right operands of context_trigger_rule_entry_add_comparison_string().@n - * See the programming guide to find the corresponding left operand attribute keys. + * @brief Definition for the attribute value denoting the "idle" state. + * @details This can be used as right operands of context_trigger_rule_entry_add_comparison_string().@n + * See the programming guide to find the corresponding left operand attribute keys. * @since_tizen 2.4 */ #define CONTEXT_TRIGGER_IDLE "Idle" /** * @deprecated Deprecated since 4.0. - * @brief Definition for the attribute value denoting the "voice" type. - * @details This can be used as right operands of context_trigger_rule_entry_add_comparison_string().@n - * See the programming guide to find the corresponding left operand attribute keys. + * @brief Definition for the attribute value denoting the "voice" type. + * @details This can be used as right operands of context_trigger_rule_entry_add_comparison_string().@n + * See the programming guide to find the corresponding left operand attribute keys. * @since_tizen 2.4 */ #define CONTEXT_TRIGGER_VOICE "Voice" /** * @deprecated Deprecated since 4.0. - * @brief Definition for the attribute value denoting the "video" type. - * @details This can be used as right operands of context_trigger_rule_entry_add_comparison_string().@n - * See the programming guide to find the corresponding left operand attribute keys. + * @brief Definition for the attribute value denoting the "video" type. + * @details This can be used as right operands of context_trigger_rule_entry_add_comparison_string().@n + * See the programming guide to find the corresponding left operand attribute keys. * @since_tizen 2.4 */ #define CONTEXT_TRIGGER_VIDEO "Video" @@ -458,36 +458,36 @@ extern "C" { /** * @deprecated Deprecated since 4.0. - * @brief Definition for the attribute value denoting the "received" event. - * @details This can be used as right operands of context_trigger_rule_entry_add_comparison_string().@n - * See the programming guide to find the corresponding left operand attribute keys. + * @brief Definition for the attribute value denoting the "received" event. + * @details This can be used as right operands of context_trigger_rule_entry_add_comparison_string().@n + * See the programming guide to find the corresponding left operand attribute keys. * @since_tizen 2.4 */ #define CONTEXT_TRIGGER_RECEIVED "Received" /** * @deprecated Deprecated since 4.0. - * @brief Definition for the attribute value denoting the "sent" event. - * @details This can be used as right operands of context_trigger_rule_entry_add_comparison_string().@n - * See the programming guide to find the corresponding left operand attribute keys. + * @brief Definition for the attribute value denoting the "sent" event. + * @details This can be used as right operands of context_trigger_rule_entry_add_comparison_string().@n + * See the programming guide to find the corresponding left operand attribute keys. * @since_tizen 2.4 */ #define CONTEXT_TRIGGER_SENT "Sent" /** * @deprecated Deprecated since 4.0. - * @brief Definition for the attribute value denoting the "SMS" type. - * @details This can be used as right operands of context_trigger_rule_entry_add_comparison_string().@n - * See the programming guide to find the corresponding left operand attribute keys. + * @brief Definition for the attribute value denoting the "SMS" type. + * @details This can be used as right operands of context_trigger_rule_entry_add_comparison_string().@n + * See the programming guide to find the corresponding left operand attribute keys. * @since_tizen 2.4 */ #define CONTEXT_TRIGGER_SMS "SMS" /** * @deprecated Deprecated since 4.0. - * @brief Definition for the attribute value denoting the "MMS" type. - * @details This can be used as right operands of context_trigger_rule_entry_add_comparison_string().@n - * See the programming guide to find the corresponding left operand attribute keys. + * @brief Definition for the attribute value denoting the "MMS" type. + * @details This can be used as right operands of context_trigger_rule_entry_add_comparison_string().@n + * See the programming guide to find the corresponding left operand attribute keys. * @since_tizen 2.4 */ #define CONTEXT_TRIGGER_MMS "MMS" @@ -565,7 +565,8 @@ typedef enum { * @since_tizen 2.4 */ typedef enum { - CONTEXT_TRIGGER_EVENT_TIME = 0x10001, /**< At certain times of day and days of week @n Privilege: http://tizen.org/privilege/alarm.set (Deprecated since 4.0) */ + CONTEXT_TRIGGER_EVENT_TIME = 0x10001, /**< At certain times of day and days of week (Deprecated since 4.0) + @n Privilege: http://tizen.org/privilege/alarm.set */ CONTEXT_TRIGGER_EVENT_BATTERY = 0x10100, /**< Battery level changed */ CONTEXT_TRIGGER_EVENT_CHARGER, /**< Charger connected/disconnected */ CONTEXT_TRIGGER_EVENT_GPS, /**< GPS state changed */ @@ -573,9 +574,9 @@ typedef enum { CONTEXT_TRIGGER_EVENT_USB, /**< USB connected/disconnected */ CONTEXT_TRIGGER_EVENT_WIFI, /**< WiFi state changed @n Privilege: http://tizen.org/privilege/network.get */ CONTEXT_TRIGGER_EVENT_POWER_SAVING_MODE = 0x10200, /**< Power saving mode enabled/disabled (Deprecated since 4.0) */ - CONTEXT_TRIGGER_EVENT_CALL = 0x10300, /**< Call state changed @n Privilege: http://tizen.org/privilege/telephony (Deprecated since 4.0) */ + CONTEXT_TRIGGER_EVENT_CALL = 0x10300, /**< Call state changed (Deprecated since 4.0) @n Privilege: http://tizen.org/privilege/telephony */ CONTEXT_TRIGGER_EVENT_EMAIL, /**< Email sent/received (Deprecated since 4.0) */ - CONTEXT_TRIGGER_EVENT_MESSAGE, /**< Message sent/received @n Privilege: http://tizen.org/privilege/message.read (Deprecated since 4.0) */ + CONTEXT_TRIGGER_EVENT_MESSAGE, /**< Message sent/received (Deprecated since 4.0) @n Privilege: http://tizen.org/privilege/message.read */ CONTEXT_TRIGGER_EVENT_CONTACTS, /**< Contacts changed (Since 3.0) @n Privilege: http://tizen.org/privilege/contact.read */ CONTEXT_TRIGGER_EVENT_ACTIVITY_STATIONARY = 0x10400, /**< 'Stationary' activity detected */ CONTEXT_TRIGGER_EVENT_ACTIVITY_WALKING, /**< 'Walking' activity detected */ @@ -597,11 +598,15 @@ typedef enum { CONTEXT_TRIGGER_CONDITION_USB, /**< USB connection */ CONTEXT_TRIGGER_CONDITION_WIFI, /**< WiFi state @n Privilege: http://tizen.org/privilege/network.get */ CONTEXT_TRIGGER_CONDITION_POWER_SAVING_MODE = 0x20200, /**< Power saving mode setting (Deprecated since 4.0) */ - CONTEXT_TRIGGER_CONDITION_CALL = 0x20300, /**< Call state @n Privilege: http://tizen.org/privilege/telephony (Deprecated since 4.0) */ - CONTEXT_TRIGGER_CONDITION_APP_USE_FREQUENCY = 0x20600, /**< Frequency of app use @n Privilege: http://tizen.org/privilege/apphistory.read (Deprecated since 4.0) */ - CONTEXT_TRIGGER_CONDITION_COMMUNICATION_FREQUENCY, /**< Frequency of communication via call or message @n Privilege: http://tizen.org/privilege/callhistory.read (Deprecated since 4.0) */ - CONTEXT_TRIGGER_CONDITION_MUSIC_PLAYBACK_FREQUENCY, /**< Frequency of music playback @n Privilege: http://tizen.org/privilege/mediahistory.read (Deprecated since 4.0) */ - CONTEXT_TRIGGER_CONDITION_VIDEO_PLAYBACK_FREQUENCY, /**< Frequency of video playback @n Privilege: http://tizen.org/privilege/mediahistory.read (Deprecated since 4.0) */ + CONTEXT_TRIGGER_CONDITION_CALL = 0x20300, /**< Call state (Deprecated since 4.0) @n Privilege: http://tizen.org/privilege/telephony */ + CONTEXT_TRIGGER_CONDITION_APP_USE_FREQUENCY = 0x20600, /**< Frequency of app use (Deprecated since 4.0) + @n Privilege: http://tizen.org/privilege/apphistory.read */ + CONTEXT_TRIGGER_CONDITION_COMMUNICATION_FREQUENCY, /**< Frequency of communication via call or message (Deprecated since 4.0) + @n Privilege: http://tizen.org/privilege/callhistory.read */ + CONTEXT_TRIGGER_CONDITION_MUSIC_PLAYBACK_FREQUENCY, /**< Frequency of music playback (Deprecated since 4.0) + @n Privilege: http://tizen.org/privilege/mediahistory.read */ + CONTEXT_TRIGGER_CONDITION_VIDEO_PLAYBACK_FREQUENCY, /**< Frequency of video playback (Deprecated since 4.0) + @n Privilege: http://tizen.org/privilege/mediahistory.read */ } context_trigger_condition_e; /** -- 2.34.1