From: Radoslaw Czerski Date: Wed, 3 Aug 2016 07:42:05 +0000 (+0200) Subject: [Doxygen] Detailed Description added. X-Git-Tag: submit/tizen/20160812.094339^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5bd37687d163febc62b1e9b83abe0ceff0fead8b;p=profile%2Fmobile%2Fapps%2Fnative%2Findicator.git [Doxygen] Detailed Description added. Change-Id: I24d38c6a1d25505fc4ab8ebbaa0f378f2796058d Signed-off-by: Radoslaw Czerski --- diff --git a/inc/main.h b/inc/main.h index 7e7f701..40181c9 100644 --- a/inc/main.h +++ b/inc/main.h @@ -31,24 +31,76 @@ /** * @mainpage Indicator documentation * - * @section overview Overview + * @section overview Detailed Description * * @image html indicator.png * - * \n\n - * Indiacator app main purpose is to give user quick preview for what is going on in the system - - * connections and battery state, time, apps notifications etc. * \n + * App ID: org.tizen.indicator\n * - * @section h_s Helpful snippets + * Indiacator app main purpose is to give user quick preview for what is going on in the system: connections, + * battery state, alarms time and apps notifications. + * \n + * On the left hand side you can find connections icons - Mobile network signal strength, mobile data, Wi-Fi, Bluetooth and call divert.\n + * In the middle you can find clock which format you can set in Settings->Time and Date\n + * On the right hand side(from right to left) there are icons related to: + * - battery - You can show percentage by enabling it in Settings->Battery.\n\n + * - System - System related icons + * \n\t- Sound profile - Vibrations only/Silent mode. You can change the mode in quickpanel or in Settings->Sound. + * \n\t- Do not disturb mode - You can trigger it in Settings app. + * \n\t- GPS - The icon will be shown when GPS module is in use. + * \n\t- External storage - Appears when SD card is inserted. + * \n\t- Alarm - Appears when at least one alarm is scheduled\n\n + * - Minicontrol - the icons are posted by apps that creates minicontroller + * \n\t- Call - icon appear during call or when call is incoming or outgoing. + * \n\t- Call Mute - Mute during call + * \n\t- Call Speaker- Shown when speaker is on during call. + * \n\t- Music - Shown when org.tizen.music-player/sound-player apps plays music + * \n\t- Video - Shown when org.tizen.video-player apps plays video + * \n\t- Voice recorder - Shown when Voice Recorder records. + * \n\t- 3rd party - Other apps that are using Minicontrol may post icon here. Snippet explaining how to do so, will be available soon.\n\n + * - Notification - Every app is allowed to post icons here. You can find code snippets below of how to post, update or delete such icon.\n\n + * + * Background You can change indicator background color using code snippet from below.\n\n + * + * Hidden mode You can trigger hidden mode in your app using: + * @code + * elm_win_indicator_mode_set(win, ELM_WIN_INDICATOR_SHOW); + * @endcode + * Where win is a pointer to main elm_win of your application \n\n\n * - * @ref post_noti \n - * @ref update_noti \n - * @ref delete_noti \n\n + *
+ * \n + * @section instant Instant message(Ticker) + * + * To Post message to be displayed on Indicator app you need to use Notification API. You can find snippet of how to display it below.\n + * The order of displayed text types is: + * - NOTIFICATION_TEXT_TYPE_TITLE + * - NOTIFICATION_TEXT_TYPE_CONTENT + * - NOTIFICATION_TEXT_TYPE_INFO_1 + * - NOTIFICATION_TEXT_TYPE_INFO_SUB_1 + * - NOTIFICATION_TEXT_TYPE_INFO_2 + * - NOTIFICATION_TEXT_TYPE_INFO_SUB_2 + *\n\n\n + * + *
+ * \n + *@section toast Toast popup + * To display Toast popup you need to call only one function as follows: + * @code + * notification_status_message_post("Message"); + * @endcode + *\n\n * - * @ref bg_change \n + *
+ * \n + * @section h_s Helpful snippets * - * \n\n + * - @ref post_noti \n + * - @ref update_noti \n + * - @ref delete_noti \n + * - @ref ticker \n + * - @ref bg_change \n\n * * * @subsection post_noti Post notification icon to Indicator app @@ -124,6 +176,31 @@ * @endcode * \n\n * + * @subsection ticker Post instant message(Ticker) + * + * @code + * #define TAG_FOR_NOTI "example_unique_tag_to_set" + * + * void example_instatnt_message_prepare_and_post(void) + * { + * notification_h noti; + * notification_type_e noti_type = NOTIFICATION_TYPE_NOTI; + * const char *img_path = "example_path_to_notification_icon_in_shared res_folder"; + * int applist = NOTIFICATION_DISPLAY_APP_INDICATOR & NOTIFICATION_DISPLAY_APP_TICKER; + * + * noti = notification_create(noti_type); + * notification_set_image(noti, NOTIFICATION_IMAGE_TYPE_ICON, img_path); + * notification_set_text(noti, NOTIFICATION_TEXT_TYPE_TITLE, "I'm Title", NULL, NOTIFICATION_VARIABLE_TYPE_NONE); + * notification_set_text(noti, NOTIFICATION_TEXT_TYPE_CONTENT, "I'm Content", NULL, NOTIFICATION_VARIABLE_TYPE_NONE); + * notification_set_display_applist(noti, applist); + * notification_set_tag(noti, TAG_FOR_NOTI); + * + * notification_post(noti); + * notification_free(noti); + * } + * @endcode + * \n\n + * * @subsection bg_change Change indicator background color * Please note that default state is (0, 0, 0, 255) * @code