Added new quickpanel shortcut for DoNotDisturb DND 53/218453/9 submit/tizen/20191209.071952 submit/tizen/20200205.111911
authordivyanshugautam17 <divyanshu.gm@samsung.com>
Fri, 22 Nov 2019 10:15:34 +0000 (15:45 +0530)
committerAmritanshu Pandia <a.pandia1@samsung.com>
Mon, 9 Dec 2019 07:16:31 +0000 (07:16 +0000)
Change-Id: I0dc1893f451813b85533efb53da659b2242ca27d

61 files changed:
CMakeLists.txt
inc/common.h
project_def.prop
res/edje/quickpanel_images.edc
res/images_icon/quick_icon_disturb.png [new file with mode: 0755]
res/images_icon/quick_icon_location.png [deleted file]
res/po/ar.po
res/po/az.po
res/po/bg.po
res/po/ca.po
res/po/cs.po
res/po/da.po
res/po/de.po
res/po/el_GR.po
res/po/en.po
res/po/en_PH.po
res/po/en_US.po
res/po/es_ES.po
res/po/es_US.po
res/po/et.po
res/po/eu.po
res/po/fi.po
res/po/fr.po
res/po/fr_CA.po
res/po/ga.po
res/po/gl.po
res/po/hr.po
res/po/hu.po
res/po/hy.po
res/po/is.po
res/po/it_IT.po
res/po/ja_JP.po
res/po/ka.po
res/po/kk.po
res/po/ko_KR.po
res/po/lt.po
res/po/lv.po
res/po/mk.po
res/po/nb.po
res/po/nl.po
res/po/pl.po
res/po/pt_BR.po
res/po/pt_PT.po
res/po/ro.po
res/po/ru_RU.po
res/po/sk.po
res/po/sl.po
res/po/sr.po
res/po/sv.po
res/po/tr_TR.po
res/po/uk.po
res/po/uz.po
res/po/zh_CN.po
res/po/zh_HK.po
res/po/zh_TW.po
src/preference.c
src/settings/modules/dnd.c [new file with mode: 0755]
src/settings/modules/gps.c [deleted file]
src/settings/setting_module_api.c
src/settings/settings.c
src/settings/settings_icon_common.c

index debe87cdc0dcca17af2c720971ad6aa13860dacb..77f583adf10d4fba80432952549620ba374ad580 100755 (executable)
@@ -45,7 +45,7 @@ SET(SRCS
        src/device/brightness.c
        src/settings/modules/rotate-lock.c
        src/settings/modules/bluetooth.c
-       src/settings/modules/gps.c
+       src/settings/modules/dnd.c
        src/settings/modules/wifi.c
        src/settings/modules/sound-profile.c
        src/settings/settings_icon_common.c
index 80e52bc567766cc58358309be9c3477b6d5ba763..06623f3c3ea675bda2617ed74fd9725aa7808613 100755 (executable)
@@ -14,7 +14,6 @@
  * limitations under the License.
  */
 
-
 #ifndef __QP_COMMON_H_
 #define __QP_COMMON_H_
 
@@ -123,4 +122,4 @@ const char *util_get_file_path(enum app_subdir dir, const char *relative);
 
 
 
-#endif                         /* __QP_COMMON_H_ */
+#endif                         /* __QP_COMMON_H_ */
\ No newline at end of file
index f86f6edaa3f715719dcde0c6ce36a81f9198d723..2c5feb91cd7a129ffb9161b096551907a86e4b62 100755 (executable)
@@ -9,17 +9,17 @@ type = app
 profile = mobile-4.0
 
 # C/CPP Sources
-USER_SRCS = src/notifications/noti_win.c src/settings/settings_icon_common.c src/device/brightness.c src/common.c src/notifications/noti_listbox.c src/settings/modules/sound-profile.c src/notifications/animated_image.c src/notifications/noti_util.c src/vi/vi_manager.c src/notifications/noti_section.c src/service/keyboard.c src/settings/settings_gridbox.c src/settings/modules/rotate-lock.c src/voice_control.c src/datetime/datetime.c src/sim_controller.c src/service/animated_icon.c src/settings/modules/gps.c src/service/reminder.c src/preference.c src/accessibility.c src/notifications/noti_view_listype.c src/settings/setting_module_api.c src/notifications/noti_list_item.c src/notifications/noti_node.c src/common_uic.c src/datetime/util-time.c src/handler_controller.c src/settings/modules/wifi.c src/list_util.c src/notifications/noti_view.c src/settings/setting_utils.c src/quickpanel-ui.c src/service/noti_led.c src/settings/modules/bluetooth.c src/page/pager_common.c src/minictrl/minictrl.c src/service/uninstall.c src/service/emergency_mode.c src/page/page_base.c src/page/pager.c src/settings/settings.c src/modules.c src/media.c src/settings/settings_view_featured.c src/notifications/activenoti.c src/notifications/noti_view_ongoing.c src/notifications/noti.c 
+USER_SRCS = src/notifications/noti_win.c src/settings/settings_icon_common.c src/device/brightness.c src/common.c src/notifications/noti_listbox.c src/settings/modules/sound-profile.c src/notifications/animated_image.c src/notifications/noti_util.c src/vi/vi_manager.c src/notifications/noti_section.c src/service/keyboard.c src/settings/settings_gridbox.c src/settings/modules/rotate-lock.c src/voice_control.c src/datetime/datetime.c src/sim_controller.c src/service/animated_icon.c src/settings/modules/dnd.c src/service/reminder.c src/preference.c src/accessibility.c src/notifications/noti_view_listype.c src/settings/setting_module_api.c src/notifications/noti_list_item.c src/notifications/noti_node.c src/common_uic.c src/datetime/util-time.c src/handler_controller.c src/settings/modules/wifi.c src/list_util.c src/notifications/noti_view.c src/settings/setting_utils.c src/quickpanel-ui.c src/service/noti_led.c src/settings/modules/bluetooth.c src/page/pager_common.c src/minictrl/minictrl.c src/service/uninstall.c src/service/emergency_mode.c src/page/page_base.c src/page/pager.c src/settings/settings.c src/modules.c src/media.c src/settings/settings_view_featured.c src/notifications/activenoti.c src/notifications/noti_view_ongoing.c src/notifications/noti.c 
 
 # EDC Sources
-USER_EDCS =  
+USER_EDCS =
 
 # PO Sources
 USER_POS = res/po/ca.po res/po/fr.po res/po/nl.po res/po/sk.po res/po/ar.po res/po/hu.po res/po/da.po res/po/en.po res/po/ja_JP.po res/po/lt.po res/po/nb.po res/po/sv.po res/po/zh_TW.po res/po/fr_CA.po res/po/de.po res/po/fi.po res/po/zh_HK.po res/po/bg.po res/po/sr.po res/po/ga.po res/po/lv.po res/po/sl.po res/po/en_PH.po res/po/zh_CN.po res/po/uk.po res/po/ro.po res/po/eu.po res/po/it_IT.po res/po/kk.po res/po/ru_RU.po res/po/el_GR.po res/po/et.po res/po/is.po res/po/ka.po res/po/pt_BR.po res/po/cs.po res/po/pl.po res/po/gl.po res/po/hy.po res/po/en_US.po res/po/es_ES.po res/po/tr_TR.po res/po/pt_PT.po res/po/az.po res/po/ko_KR.po res/po/es_US.po res/po/mk.po res/po/uz.po res/po/hr.po 
 
 # User Defines
-USER_DEFS = TIZEN_DEPRECATION DEPRECATION_WARNING 
-USER_CPP_DEFS = 
+USER_DEFS = TIZEN_DEPRECATION DEPRECATION_WARNING
+USER_CPP_DEFS =
 
 # User Undefines
 USER_UNDEFS = 
index f5dc31c8e238dcaa302cf103ade4827945884ea3..0262d62cdcffb63d0d16eaf16078e83f99806fb0 100755 (executable)
@@ -49,7 +49,7 @@
    }
 
        RESOURCE_IMAGE("quick_icon_bluetooth.png");
-       RESOURCE_IMAGE("quick_icon_location.png");
+       RESOURCE_IMAGE("quick_icon_disturb.png");
        RESOURCE_IMAGE("quick_icon_auto_rotate.png");
        RESOURCE_IMAGE("quick_icon_sf_vf.png");
        RESOURCE_IMAGE("quick_icon_sn_vf.png");
diff --git a/res/images_icon/quick_icon_disturb.png b/res/images_icon/quick_icon_disturb.png
new file mode 100755 (executable)
index 0000000..199d616
Binary files /dev/null and b/res/images_icon/quick_icon_disturb.png differ
diff --git a/res/images_icon/quick_icon_location.png b/res/images_icon/quick_icon_location.png
deleted file mode 100755 (executable)
index ecb55de..0000000
Binary files a/res/images_icon/quick_icon_location.png and /dev/null differ
index eb557fe79db2967b49a230e8b94375401302574f..4f3855ed5025fbb43423d06275087783b89edf79 100755 (executable)
@@ -19,8 +19,8 @@ msgstr "الصوت"
 msgid "IDS_QP_BUTTON2_MUTE_ABB"
 msgstr "كتم"
 
-msgid "IDS_QP_BUTTON2_LOCATION_ABB"
-msgstr "اÙ\84Ù\85Ù\88Ù\82ع"
+msgid "IDS_QP_BUTTON2_DO_NOT_DISTURB_ABB"
+msgstr "عدÙ\85 Ø§Ù\84إزعاج"
 
 msgid "IDS_ST_POP_UNABLE_TO_INCREASE_BRIGHTNESS_FURTHER_BECAUSE_OF_PHONE_OVERHEATING"
 msgstr "لايمكن زيادة الاضاءة بسبب زيادة حرارة الهاتف."
index cdc369cb375a80bd6bccd8fe6c0be7a429c14393..f9f3dce5036c33692e1dcfc704302b37084463c4 100755 (executable)
@@ -19,8 +19,8 @@ msgstr "Səs"
 msgid "IDS_QP_BUTTON2_MUTE_ABB"
 msgstr "Səssiz"
 
-msgid "IDS_QP_BUTTON2_LOCATION_ABB"
-msgstr "Yer"
+msgid "IDS_QP_BUTTON2_DO_NOT_DISTURB_ABB"
+msgstr "Narahat etmə"
 
 msgid "IDS_ST_POP_UNABLE_TO_INCREASE_BRIGHTNESS_FURTHER_BECAUSE_OF_PHONE_OVERHEATING"
 msgstr "Telefon qızdığından parlaqlığı daha da artırmaq mümkün deyil."
index 41f71a4017762390edeafb73a218475681c05599..87611214c8b220bedb888037671e07192dc51817 100755 (executable)
@@ -19,8 +19,8 @@ msgstr "Звук"
 msgid "IDS_QP_BUTTON2_MUTE_ABB"
 msgstr "Спиране на звука"
 
-msgid "IDS_QP_BUTTON2_LOCATION_ABB"
-msgstr "Ð\9cÑ\8fÑ\81Ñ\82о"
+msgid "IDS_QP_BUTTON2_DO_NOT_DISTURB_ABB"
+msgstr "Ð\9dе Ð±ÐµÐ·Ð¿Ð¾ÐºÐ¾Ð¹Ñ\82е"
 
 msgid "IDS_ST_POP_UNABLE_TO_INCREASE_BRIGHTNESS_FURTHER_BECAUSE_OF_PHONE_OVERHEATING"
 msgstr "Яркостта не може да се увеличи повече поради прегряване на телефона."
index 213adf0e022e58a5ca1eded9a06f812932fedd08..0ea14a52b8ea3c31da401a9fd3f930e24e1c7d74 100755 (executable)
@@ -19,8 +19,8 @@ msgstr "So"
 msgid "IDS_QP_BUTTON2_MUTE_ABB"
 msgstr "Silenci"
 
-msgid "IDS_QP_BUTTON2_LOCATION_ABB"
-msgstr "Ubicació"
+msgid "IDS_QP_BUTTON2_DO_NOT_DISTURB_ABB"
+msgstr "No molestar"
 
 msgid "IDS_ST_POP_UNABLE_TO_INCREASE_BRIGHTNESS_FURTHER_BECAUSE_OF_PHONE_OVERHEATING"
 msgstr "No es pot incrementar més la brillantor a causa d'un sobreescalfament del telèfon"
index 71b2eb38254d7bfb271833bd7cd22d69b2131d64..5cb8b4a67006f7d6b645ccdc2ab7229e668e718d 100755 (executable)
@@ -19,8 +19,8 @@ msgstr "Zvuk"
 msgid "IDS_QP_BUTTON2_MUTE_ABB"
 msgstr "Ztlumit"
 
-msgid "IDS_QP_BUTTON2_LOCATION_ABB"
-msgstr "Umístění"
+msgid "IDS_QP_BUTTON2_DO_NOT_DISTURB_ABB"
+msgstr "Nerušit"
 
 msgid "IDS_ST_POP_UNABLE_TO_INCREASE_BRIGHTNESS_FURTHER_BECAUSE_OF_PHONE_OVERHEATING"
 msgstr "Nelze více zvýšit jas z důvodu přehřívání telefonu."
index b3faafec1b66b2f1862f2940fddbac09cfe1cf8d..7aee68e41098e68a5bb8a4dedb3886606e22f5cb 100755 (executable)
@@ -19,8 +19,8 @@ msgstr "Lyd"
 msgid "IDS_QP_BUTTON2_MUTE_ABB"
 msgstr "Lydløs"
 
-msgid "IDS_QP_BUTTON2_LOCATION_ABB"
-msgstr "Placer."
+msgid "IDS_QP_BUTTON2_DO_NOT_DISTURB_ABB"
+msgstr "Forstyr ikke"
 
 msgid "IDS_ST_POP_UNABLE_TO_INCREASE_BRIGHTNESS_FURTHER_BECAUSE_OF_PHONE_OVERHEATING"
 msgstr "Det er ikke muligt at øge lysstyrken yderligere, fordi telefonen kan overophedes."
index dbc9b06ce6686d573e546fbd0d1b78a62eb3d0df..b7a508e89cac2626aa565bd23e4d00f73da48ce9 100755 (executable)
@@ -19,8 +19,8 @@ msgstr "Ton"
 msgid "IDS_QP_BUTTON2_MUTE_ABB"
 msgstr "Stumm"
 
-msgid "IDS_QP_BUTTON2_LOCATION_ABB"
-msgstr "GPS"
+msgid "IDS_QP_BUTTON2_DO_NOT_DISTURB_ABB"
+msgstr "Nicht stören"
 
 msgid "IDS_ST_POP_UNABLE_TO_INCREASE_BRIGHTNESS_FURTHER_BECAUSE_OF_PHONE_OVERHEATING"
 msgstr "Helligkeit kann wegen Überhitzen des Geräts nicht weiter angehoben werden"
index e353447e6162583f9f022b3e4d6d388bb8e37021..e52ebdb2d1dfa02deb16b84dab3ab5f3720adcb2 100755 (executable)
@@ -19,8 +19,8 @@ msgstr "Ήχος"
 msgid "IDS_QP_BUTTON2_MUTE_ABB"
 msgstr "Σίγαση"
 
-msgid "IDS_QP_BUTTON2_LOCATION_ABB"
-msgstr "ΤοÏ\80οθεÏ\83ία"
+msgid "IDS_QP_BUTTON2_DO_NOT_DISTURB_ABB"
+msgstr "Î\9cην ÎµÎ½Î¿Ï\87λείÏ\84ε"
 
 msgid "IDS_ST_POP_UNABLE_TO_INCREASE_BRIGHTNESS_FURTHER_BECAUSE_OF_PHONE_OVERHEATING"
 msgstr "Αδυναμία περαιτέρω αύξησης της φωτεινότητας λόγω υπερθέρμανσης της συσκευής."
index 54598b9c066debba70a89383e1e7fa910b010f0b..9dfacd858919ce4fe4cc0f055c98a18fedfa4c20 100755 (executable)
@@ -19,8 +19,8 @@ msgstr "Sound"
 msgid "IDS_QP_BUTTON2_MUTE_ABB"
 msgstr "Mute"
 
-msgid "IDS_QP_BUTTON2_LOCATION_ABB"
-msgstr "Location"
+msgid "IDS_QP_BUTTON2_DO_NOT_DISTURB_ABB"
+msgstr "Do not disturb"
 
 msgid "IDS_ST_POP_UNABLE_TO_INCREASE_BRIGHTNESS_FURTHER_BECAUSE_OF_PHONE_OVERHEATING"
 msgstr "Unable to increase brightness further because of phone overheating."
index 51fcd5a4f833d16ec98461b174b5ffdfdfde5c2e..5893e16f366675c040bc65ac0e5381985109c0ea 100755 (executable)
@@ -19,8 +19,8 @@ msgstr "Sound"
 msgid "IDS_QP_BUTTON2_MUTE_ABB"
 msgstr "Mute"
 
-msgid "IDS_QP_BUTTON2_LOCATION_ABB"
-msgstr "Location"
+msgid "IDS_QP_BUTTON2_DO_NOT_DISTURB_ABB"
+msgstr "Do not disturb"
 
 msgid "IDS_ST_POP_UNABLE_TO_INCREASE_BRIGHTNESS_FURTHER_BECAUSE_OF_PHONE_OVERHEATING"
 msgstr "Unable to increase brightness further because of phone overheating."
index 51fcd5a4f833d16ec98461b174b5ffdfdfde5c2e..5893e16f366675c040bc65ac0e5381985109c0ea 100755 (executable)
@@ -19,8 +19,8 @@ msgstr "Sound"
 msgid "IDS_QP_BUTTON2_MUTE_ABB"
 msgstr "Mute"
 
-msgid "IDS_QP_BUTTON2_LOCATION_ABB"
-msgstr "Location"
+msgid "IDS_QP_BUTTON2_DO_NOT_DISTURB_ABB"
+msgstr "Do not disturb"
 
 msgid "IDS_ST_POP_UNABLE_TO_INCREASE_BRIGHTNESS_FURTHER_BECAUSE_OF_PHONE_OVERHEATING"
 msgstr "Unable to increase brightness further because of phone overheating."
index 8ddc0cf7f4e872a1a9a50921237c146c540f87ea..c05817ad4b123e35e97a386c3271bd348b9d3271 100755 (executable)
@@ -19,8 +19,8 @@ msgstr "Sonido"
 msgid "IDS_QP_BUTTON2_MUTE_ABB"
 msgstr "Silencio"
 
-msgid "IDS_QP_BUTTON2_LOCATION_ABB"
-msgstr "Ubicación"
+msgid "IDS_QP_BUTTON2_DO_NOT_DISTURB_ABB"
+msgstr "No molestar"
 
 msgid "IDS_ST_POP_UNABLE_TO_INCREASE_BRIGHTNESS_FURTHER_BECAUSE_OF_PHONE_OVERHEATING"
 msgstr "No se puede incrementar más el brillo debido a un sobrecalentamiento del teléfono"
index 34de05f32ac24d4ba3431d082bad072be01204ab..882f0cc70eed7dbb4f684e71d806b70aa0abfc2e 100755 (executable)
@@ -19,8 +19,8 @@ msgstr "Sonido"
 msgid "IDS_QP_BUTTON2_MUTE_ABB"
 msgstr "Silencio"
 
-msgid "IDS_QP_BUTTON2_LOCATION_ABB"
-msgstr "Ubica-\nción"
+msgid "IDS_QP_BUTTON2_DO_NOT_DISTURB_ABB"
+msgstr "No molestar"
 
 msgid "IDS_ST_POP_UNABLE_TO_INCREASE_BRIGHTNESS_FURTHER_BECAUSE_OF_PHONE_OVERHEATING"
 msgstr "No se puede aumentar más el brillo para evitar sobrecalentamiento del dispositivo."
index 082d27e8f002eb877b46286dbce6a3587f0fb155..bc37b230e4aea1bbea235319d1aff5b9d3468f09 100755 (executable)
@@ -19,8 +19,8 @@ msgstr "Heli"
 msgid "IDS_QP_BUTTON2_MUTE_ABB"
 msgstr "Vaigista"
 
-msgid "IDS_QP_BUTTON2_LOCATION_ABB"
-msgstr "Asukoht"
+msgid "IDS_QP_BUTTON2_DO_NOT_DISTURB_ABB"
+msgstr "Mitte segada"
 
 msgid "IDS_ST_POP_UNABLE_TO_INCREASE_BRIGHTNESS_FURTHER_BECAUSE_OF_PHONE_OVERHEATING"
 msgstr "Ei ole võimalik heledust suurendada telefoni ülekuumenemise tõttu."
index e8d952c3d925221396c538ea2d6b4523bc8a27d6..e7b8fccca6f9cc346424aae79cff0923077d84bf 100755 (executable)
@@ -19,8 +19,8 @@ msgstr "Soinua"
 msgid "IDS_QP_BUTTON2_MUTE_ABB"
 msgstr "Mututu"
 
-msgid "IDS_QP_BUTTON2_LOCATION_ABB"
-msgstr "Kokapena"
+msgid "IDS_QP_BUTTON2_DO_NOT_DISTURB_ABB"
+msgstr "Ez molestatu"
 
 msgid "IDS_ST_POP_UNABLE_TO_INCREASE_BRIGHTNESS_FURTHER_BECAUSE_OF_PHONE_OVERHEATING"
 msgstr "Ezin da argitasuna areagotu, telefonoa gehiegi berotuko baita"
index 0aa4e04a39d3bfe00c70dc5732e0bd7b482ee8f4..74dfa85bccb91b076bab16fd1f81b4ae498b60b7 100755 (executable)
@@ -19,8 +19,8 @@ msgstr "Ääni"
 msgid "IDS_QP_BUTTON2_MUTE_ABB"
 msgstr "Mykistä"
 
-msgid "IDS_QP_BUTTON2_LOCATION_ABB"
-msgstr "Sijainti"
+msgid "IDS_QP_BUTTON2_DO_NOT_DISTURB_ABB"
+msgstr "Älä häiritse"
 
 msgid "IDS_ST_POP_UNABLE_TO_INCREASE_BRIGHTNESS_FURTHER_BECAUSE_OF_PHONE_OVERHEATING"
 msgstr "Kirkkautta ei voi lisätä puhelimen ylikuumenemisen vuoksi."
index 42d2d72f4cf57f59a520c127901897ef0ed2bf26..8aed3d40503399d395ebbaea8187b3c43ea9e18d 100755 (executable)
@@ -19,8 +19,8 @@ msgstr "Son"
 msgid "IDS_QP_BUTTON2_MUTE_ABB"
 msgstr "Muet"
 
-msgid "IDS_QP_BUTTON2_LOCATION_ABB"
-msgstr "Position"
+msgid "IDS_QP_BUTTON2_DO_NOT_DISTURB_ABB"
+msgstr "Ne pas déranger"
 
 msgid "IDS_ST_POP_UNABLE_TO_INCREASE_BRIGHTNESS_FURTHER_BECAUSE_OF_PHONE_OVERHEATING"
 msgstr "Impossible d'augmenter la luminosité en raison d'une surchauffe de l'appareil."
index 283b5fa4f41f6f6cc9281f255a706137d8a7ac46..5ba270d54379e282fcbe3148e70647f2d36ad20d 100755 (executable)
@@ -19,8 +19,8 @@ msgstr "Son"
 msgid "IDS_QP_BUTTON2_MUTE_ABB"
 msgstr "Muet"
 
-msgid "IDS_QP_BUTTON2_LOCATION_ABB"
-msgstr "Position"
+msgid "IDS_QP_BUTTON2_DO_NOT_DISTURB_ABB"
+msgstr "Ne pas déranger"
 
 msgid "IDS_ST_POP_UNABLE_TO_INCREASE_BRIGHTNESS_FURTHER_BECAUSE_OF_PHONE_OVERHEATING"
 msgstr "Impossible d'augmenter la luminosité en raison d'une surchauffe de l'appareil."
index 554492c71fdfee493abf5944eb0b29a92b4ddf6d..06b607201f6177068d4e3b630225358868947b7b 100755 (executable)
@@ -19,8 +19,8 @@ msgstr "Fuaim"
 msgid "IDS_QP_BUTTON2_MUTE_ABB"
 msgstr "Balbhaigh"
 
-msgid "IDS_QP_BUTTON2_LOCATION_ABB"
-msgstr "Suíomh"
+msgid "IDS_QP_BUTTON2_DO_NOT_DISTURB_ABB"
+msgstr "Ná cuir isteach"
 
 msgid "IDS_ST_POP_UNABLE_TO_INCREASE_BRIGHTNESS_FURTHER_BECAUSE_OF_PHONE_OVERHEATING"
 msgstr "Ní féidir gile a mhéadú tuilleadh de bharr róthéimh."
index 774838e048f9ad332abffba8c40d56dc94723c23..a2dd480aa33753bff7dd9826eefb93eec1c44a45 100755 (executable)
@@ -19,8 +19,8 @@ msgstr "Son"
 msgid "IDS_QP_BUTTON2_MUTE_ABB"
 msgstr "Silen-\nciar"
 
-msgid "IDS_QP_BUTTON2_LOCATION_ABB"
-msgstr "Localiz."
+msgid "IDS_QP_BUTTON2_DO_NOT_DISTURB_ABB"
+msgstr "Non molestar"
 
 msgid "IDS_ST_POP_UNABLE_TO_INCREASE_BRIGHTNESS_FURTHER_BECAUSE_OF_PHONE_OVERHEATING"
 msgstr "Non se pode aumentar máis o brillo debido ao sobrequecemento do teléfono"
index 8ee4d06449f430b8a12af2c8ef56bd30fc86152f..fd2c6be5910dbc79d0be3486c22630a88eaad4f0 100755 (executable)
@@ -19,8 +19,8 @@ msgstr "Zvuk"
 msgid "IDS_QP_BUTTON2_MUTE_ABB"
 msgstr "Bešumno"
 
-msgid "IDS_QP_BUTTON2_LOCATION_ABB"
-msgstr "Lokacija"
+msgid "IDS_QP_BUTTON2_DO_NOT_DISTURB_ABB"
+msgstr "Ne ometajte"
 
 msgid "IDS_ST_POP_UNABLE_TO_INCREASE_BRIGHTNESS_FURTHER_BECAUSE_OF_PHONE_OVERHEATING"
 msgstr "Nemoguće daljnje pojačavanje svjetline jer bi se telefon mogao pregrijati."
index d5f68e128eec61223afbc8ad7d20aa1abaf02230..4bdf41a77624f5005343ab8e45070f923f56b06d 100755 (executable)
@@ -19,8 +19,8 @@ msgstr "Hang"
 msgid "IDS_QP_BUTTON2_MUTE_ABB"
 msgstr "Némítás"
 
-msgid "IDS_QP_BUTTON2_LOCATION_ABB"
-msgstr "Hely"
+msgid "IDS_QP_BUTTON2_DO_NOT_DISTURB_ABB"
+msgstr "Ne zavarjanak"
 
 msgid "IDS_ST_POP_UNABLE_TO_INCREASE_BRIGHTNESS_FURTHER_BECAUSE_OF_PHONE_OVERHEATING"
 msgstr "A fényerő nem növelhető tovább, a készülék túlmelegedésének elkerülése miatt."
index e8953ba994e2560ffddb839000ad9412cd85c028..108da8cf48ee5037b2e4bdfd5fc52b94afbbbf88 100755 (executable)
@@ -19,8 +19,8 @@ msgstr "Հնչյուն"
 msgid "IDS_QP_BUTTON2_MUTE_ABB"
 msgstr "Խլացնել"
 
-msgid "IDS_QP_BUTTON2_LOCATION_ABB"
-msgstr "Õ\8fÕ¥Õ²Õ¨"
+msgid "IDS_QP_BUTTON2_DO_NOT_DISTURB_ABB"
+msgstr "Õ\89Õ¡Õ¶Õ°Õ¡Õ¶Õ£Õ½Õ¿Õ¡Ö\81Õ¶Õ¥Õ¬"
 
 msgid "IDS_ST_POP_UNABLE_TO_INCREASE_BRIGHTNESS_FURTHER_BECAUSE_OF_PHONE_OVERHEATING"
 msgstr "Հնարավոր չէ ավելցնել հեռախոսի էկրանի պայծառությունը հեռախոսի գեր տաքանալու պատճառով:"
index a24dff15c0043a4f17973672bb1073b43a2a8292..48cadde4bfce13cdeb3c7bb2b4c880580dd81359 100755 (executable)
@@ -19,8 +19,8 @@ msgstr "Hljóð"
 msgid "IDS_QP_BUTTON2_MUTE_ABB"
 msgstr "Hljóð-\nlaust"
 
-msgid "IDS_QP_BUTTON2_LOCATION_ABB"
-msgstr "Staður"
+msgid "IDS_QP_BUTTON2_DO_NOT_DISTURB_ABB"
+msgstr "Ónáðið ekki"
 
 msgid "IDS_ST_POP_UNABLE_TO_INCREASE_BRIGHTNESS_FURTHER_BECAUSE_OF_PHONE_OVERHEATING"
 msgstr "Ekki hægt að auka birtastigið meir vegna ofhitnunar í síma."
index d39f4293dc09bda5fff754fd6e2a845c16617968..19a38c1acd3eaccf3c6afcb6bf02d93af7e235cb 100755 (executable)
@@ -19,8 +19,8 @@ msgstr "Suono"
 msgid "IDS_QP_BUTTON2_MUTE_ABB"
 msgstr "Silenz."
 
-msgid "IDS_QP_BUTTON2_LOCATION_ABB"
-msgstr "Posizione"
+msgid "IDS_QP_BUTTON2_DO_NOT_DISTURB_ABB"
+msgstr "Non disturbare"
 
 msgid "IDS_ST_POP_UNABLE_TO_INCREASE_BRIGHTNESS_FURTHER_BECAUSE_OF_PHONE_OVERHEATING"
 msgstr "Impossibile aumentare la luminosità a causa del surriscaldamento del dispositivo."
index bde50d061c6c5b5bf4768a65994ce48f09399a6e..897c02d2c7166a83a300e623533b073778dc9fdd 100755 (executable)
@@ -19,8 +19,8 @@ msgstr "サウンド"
 msgid "IDS_QP_BUTTON2_MUTE_ABB"
 msgstr "消音"
 
-msgid "IDS_QP_BUTTON2_LOCATION_ABB"
-msgstr "位置情報"
+msgid "IDS_QP_BUTTON2_DO_NOT_DISTURB_ABB"
+msgstr "通知をミュート"
 
 msgid "IDS_ST_POP_UNABLE_TO_INCREASE_BRIGHTNESS_FURTHER_BECAUSE_OF_PHONE_OVERHEATING"
 msgstr "端末が過熱しているため、これ以上明るさを上げることができません。"
index ed4abc7a49f077aae7b30a6be6f484400d8074e6..d22ad4a0aa06ac3525d28c6d04dee64ae187cb37 100755 (executable)
@@ -19,8 +19,8 @@ msgstr "ხმა"
 msgid "IDS_QP_BUTTON2_MUTE_ABB"
 msgstr "უხმო"
 
-msgid "IDS_QP_BUTTON2_LOCATION_ABB"
-msgstr "á\83\9aá\83\9dá\83\99á\83\90á\83ªá\83\98á\83\90"
+msgid "IDS_QP_BUTTON2_DO_NOT_DISTURB_ABB"
+msgstr "á\83\90á\83  á\83¨á\83\94á\83\9bá\83\90á\83¬á\83£á\83®á\83\9dá\83\97"
 
 msgid "IDS_ST_POP_UNABLE_TO_INCREASE_BRIGHTNESS_FURTHER_BECAUSE_OF_PHONE_OVERHEATING"
 msgstr "განათებულობას ვეღარ გაზრდით, ტელეფონის გადახურების საშიშროების გამო."
index 6210fb9ad5abc0940ec837b3c202afafd58ed7e8..80a805c2ccaa057bfc808531a43bfa4340287509 100755 (executable)
@@ -19,8 +19,8 @@ msgstr "Дыбыс"
 msgid "IDS_QP_BUTTON2_MUTE_ABB"
 msgstr "Дыбысты\nөшіру"
 
-msgid "IDS_QP_BUTTON2_LOCATION_ABB"
-msgstr "Ð\9eÑ\80нÑ\8b"
+msgid "IDS_QP_BUTTON2_DO_NOT_DISTURB_ABB"
+msgstr "Ð\9cазаламаңÑ\8bз"
 
 msgid "IDS_ST_POP_UNABLE_TO_INCREASE_BRIGHTNESS_FURTHER_BECAUSE_OF_PHONE_OVERHEATING"
 msgstr "Жарықтықты одан ары көбейту мүмкін емес, себебі телефон қызып кетті."
index 35e6ee3a150aa8109d2cedecc73b5aa24a3d2f95..4b58a198b19f01ecf8e5184d0cf0a04e108799b1 100755 (executable)
@@ -19,8 +19,8 @@ msgstr "소리"
 msgid "IDS_QP_BUTTON2_MUTE_ABB"
 msgstr "무음"
 
-msgid "IDS_QP_BUTTON2_LOCATION_ABB"
-msgstr "위치"
+msgid "IDS_QP_BUTTON2_DO_NOT_DISTURB_ABB"
+msgstr "방해 금지"
 
 msgid "IDS_ST_POP_UNABLE_TO_INCREASE_BRIGHTNESS_FURTHER_BECAUSE_OF_PHONE_OVERHEATING"
 msgstr "디바이스 온도가 높아져 밝기를 더 높일 수 없습니다."
index 803094ae0e8808f4550b83d77da9adfc5b88eb24..4bb5b199c64ccc2c2435c03ce067319ac3ccd23d 100755 (executable)
@@ -19,8 +19,8 @@ msgstr "Garsas"
 msgid "IDS_QP_BUTTON2_MUTE_ABB"
 msgstr "Tildyti"
 
-msgid "IDS_QP_BUTTON2_LOCATION_ABB"
-msgstr "Vieta"
+msgid "IDS_QP_BUTTON2_DO_NOT_DISTURB_ABB"
+msgstr "Netrukdyti"
 
 msgid "IDS_ST_POP_UNABLE_TO_INCREASE_BRIGHTNESS_FURTHER_BECAUSE_OF_PHONE_OVERHEATING"
 msgstr "Neįmanoma padidinti šviesumo dėl telefono perkaitimo."
index df755d392f70b1bd7bc8264f4cf35e051824ed39..66a85b76ae65064ecf15d44fcb5d93d7b33f2339 100755 (executable)
@@ -19,8 +19,8 @@ msgstr "Skaņa"
 msgid "IDS_QP_BUTTON2_MUTE_ABB"
 msgstr "Izslēgt skaņu"
 
-msgid "IDS_QP_BUTTON2_LOCATION_ABB"
-msgstr "Lokācija"
+msgid "IDS_QP_BUTTON2_DO_NOT_DISTURB_ABB"
+msgstr "Netraucēt"
 
 msgid "IDS_ST_POP_UNABLE_TO_INCREASE_BRIGHTNESS_FURTHER_BECAUSE_OF_PHONE_OVERHEATING"
 msgstr "Nav iespējams vairāk palielināt spilgtumu dēļ tālruņa pārkaršanas."
index 1f50097a64137cca5a31c015eb1e1abf225e85a2..4a4cf0490674747e648e6d6bc8b50f0fc955fcc6 100755 (executable)
@@ -19,8 +19,8 @@ msgstr "Звук"
 msgid "IDS_QP_BUTTON2_MUTE_ABB"
 msgstr "Исклучи звук"
 
-msgid "IDS_QP_BUTTON2_LOCATION_ABB"
-msgstr "Ð\9bокаÑ\86иÑ\98а"
+msgid "IDS_QP_BUTTON2_DO_NOT_DISTURB_ABB"
+msgstr "Ð\9dе Ð²Ð¾Ð·Ð½ÐµÐ¼Ð¸Ñ\80Ñ\83ваÑ\98"
 
 msgid "IDS_ST_POP_UNABLE_TO_INCREASE_BRIGHTNESS_FURTHER_BECAUSE_OF_PHONE_OVERHEATING"
 msgstr "Не може да се зголеми осветленоста повеќе поради прегревање на телефонот."
index a6e84f365d38efd0f2f701f4d373f8687f37c8ac..1f3e95e41320b9f11b6dde1e00aae4cbdb6cae73 100755 (executable)
@@ -19,8 +19,8 @@ msgstr "Lyd"
 msgid "IDS_QP_BUTTON2_MUTE_ABB"
 msgstr "Demp"
 
-msgid "IDS_QP_BUTTON2_LOCATION_ABB"
-msgstr "Posisjon"
+msgid "IDS_QP_BUTTON2_DO_NOT_DISTURB_ABB"
+msgstr "Ikke forstyrr"
 
 msgid "IDS_ST_POP_UNABLE_TO_INCREASE_BRIGHTNESS_FURTHER_BECAUSE_OF_PHONE_OVERHEATING"
 msgstr "Kan ikke øke lysstyrken mer på grunn av at telefonen kan overopphetes."
index 540162add40eb1caa43fb1fb9548cbad09d40646..c6eaaccd9fb7052030854d22317ff52841f487e4 100755 (executable)
@@ -19,8 +19,8 @@ msgstr "Geluid"
 msgid "IDS_QP_BUTTON2_MUTE_ABB"
 msgstr "Dempen"
 
-msgid "IDS_QP_BUTTON2_LOCATION_ABB"
-msgstr "Locatie"
+msgid "IDS_QP_BUTTON2_DO_NOT_DISTURB_ABB"
+msgstr "Niet storen"
 
 msgid "IDS_ST_POP_UNABLE_TO_INCREASE_BRIGHTNESS_FURTHER_BECAUSE_OF_PHONE_OVERHEATING"
 msgstr "Kan de helderheid niet verder verhogen, omdat de telefoon dan te warm wordt."
index 57216b0badb55f45c5f86e6826081bb0a2202f6e..78396f87f0270942966f0bae70cb7d948e11714f 100755 (executable)
@@ -19,8 +19,8 @@ msgstr "Dźwięk"
 msgid "IDS_QP_BUTTON2_MUTE_ABB"
 msgstr "Wycisz"
 
-msgid "IDS_QP_BUTTON2_LOCATION_ABB"
-msgstr "Lokalizacja"
+msgid "IDS_QP_BUTTON2_DO_NOT_DISTURB_ABB"
+msgstr "Nie przeszkadzać"
 
 msgid "IDS_ST_POP_UNABLE_TO_INCREASE_BRIGHTNESS_FURTHER_BECAUSE_OF_PHONE_OVERHEATING"
 msgstr "Nie można zwiększyć jasności z uwagi na możliwość przegrzania urządzenia."
index 4c67eca11be1f67927e2e3787a2fbfc2a6641802..b5bcba906b559921e6faf6e1887e706ccf8a4fb5 100755 (executable)
@@ -19,8 +19,8 @@ msgstr "Som"
 msgid "IDS_QP_BUTTON2_MUTE_ABB"
 msgstr "Silêncio"
 
-msgid "IDS_QP_BUTTON2_LOCATION_ABB"
-msgstr "Local"
+msgid "IDS_QP_BUTTON2_DO_NOT_DISTURB_ABB"
+msgstr "Não perturbar"
 
 msgid "IDS_ST_POP_UNABLE_TO_INCREASE_BRIGHTNESS_FURTHER_BECAUSE_OF_PHONE_OVERHEATING"
 msgstr "Impossível aumentar mais o nível do brilho devido ao superaquecimento do telefone."
index 0167a36d6fbe0203f14298e455b15d358af35ae1..0ecab9895f00276a1bf0317ac3650363738fd3e1 100755 (executable)
@@ -19,8 +19,8 @@ msgstr "Som"
 msgid "IDS_QP_BUTTON2_MUTE_ABB"
 msgstr "Silen\nciar"
 
-msgid "IDS_QP_BUTTON2_LOCATION_ABB"
-msgstr "GPS"
+msgid "IDS_QP_BUTTON2_DO_NOT_DISTURB_ABB"
+msgstr "Não incomodar"
 
 msgid "IDS_ST_POP_UNABLE_TO_INCREASE_BRIGHTNESS_FURTHER_BECAUSE_OF_PHONE_OVERHEATING"
 msgstr "Impossível aumentar mais o brilho devido ao sobreaquecimento do telefone."
index 742c69989d0745a967cb224d15c7f48e85ac46ab..01d6cb25d2086401a4c86fc20a824edbf408bff3 100755 (executable)
@@ -19,8 +19,8 @@ msgstr "Sunet"
 msgid "IDS_QP_BUTTON2_MUTE_ABB"
 msgstr "Silenț."
 
-msgid "IDS_QP_BUTTON2_LOCATION_ABB"
-msgstr "Locație"
+msgid "IDS_QP_BUTTON2_DO_NOT_DISTURB_ABB"
+msgstr "Nu deranjați"
 
 msgid "IDS_ST_POP_UNABLE_TO_INCREASE_BRIGHTNESS_FURTHER_BECAUSE_OF_PHONE_OVERHEATING"
 msgstr "Imposibil de mărit luminozitatea deoarece telefonul este supraîncălzit"
index 0c4aa6deefcc58c97b842f81cc849a9708804803..3212f006f8d7fc44dc804db08b282625ec710fac 100755 (executable)
@@ -19,8 +19,8 @@ msgstr "Звук"
 msgid "IDS_QP_BUTTON2_MUTE_ABB"
 msgstr "Откл.\nзвук"
 
-msgid "IDS_QP_BUTTON2_LOCATION_ABB"
-msgstr "Ð\93ео-\nданнÑ\8bе"
+msgid "IDS_QP_BUTTON2_DO_NOT_DISTURB_ABB"
+msgstr "Ð\9dе Ð±ÐµÑ\81покоиÑ\82Ñ\8c"
 
 msgid "IDS_ST_POP_UNABLE_TO_INCREASE_BRIGHTNESS_FURTHER_BECAUSE_OF_PHONE_OVERHEATING"
 msgstr "Невозможно увеличить яркость из-за перегрева устройства."
index a46186979ba9c1a4c42b5e9f16fb68775a6e12b8..826b6ee65acece20086b56e3c15ec015f2cf1312 100755 (executable)
@@ -19,8 +19,8 @@ msgstr "Zvuk"
 msgid "IDS_QP_BUTTON2_MUTE_ABB"
 msgstr "Stíšiť"
 
-msgid "IDS_QP_BUTTON2_LOCATION_ABB"
-msgstr "GPS"
+msgid "IDS_QP_BUTTON2_DO_NOT_DISTURB_ABB"
+msgstr "Nerušiť"
 
 msgid "IDS_ST_POP_UNABLE_TO_INCREASE_BRIGHTNESS_FURTHER_BECAUSE_OF_PHONE_OVERHEATING"
 msgstr "Kvôli prehrievaniu zariadenia nemožno teraz ďalej zvyšovať jas displeja."
index 8492cfcb89009b6cfb3ac6b242794d4b30afb3ec..42440401fa6b9f4cebbeb1fec0b823a3840c486c 100755 (executable)
@@ -19,8 +19,8 @@ msgstr "Zvok"
 msgid "IDS_QP_BUTTON2_MUTE_ABB"
 msgstr "Izklop zvoka"
 
-msgid "IDS_QP_BUTTON2_LOCATION_ABB"
-msgstr "Lokacija"
+msgid "IDS_QP_BUTTON2_DO_NOT_DISTURB_ABB"
+msgstr "Ne moti"
 
 msgid "IDS_ST_POP_UNABLE_TO_INCREASE_BRIGHTNESS_FURTHER_BECAUSE_OF_PHONE_OVERHEATING"
 msgstr "Svetlosti ni mogoče povečati zaradi morebitnega pregrevanja telefona."
index 14abc63c41050fe1549f98d37e6ac8977e984367..c08d809625f9e29745debb68a85da6947e0ab0f6 100755 (executable)
@@ -19,8 +19,8 @@ msgstr "Zvuk"
 msgid "IDS_QP_BUTTON2_MUTE_ABB"
 msgstr "Isklju-\nčen ton"
 
-msgid "IDS_QP_BUTTON2_LOCATION_ABB"
-msgstr "Lokacija"
+msgid "IDS_QP_BUTTON2_DO_NOT_DISTURB_ABB"
+msgstr "Ne uznemiravaj"
 
 msgid "IDS_ST_POP_UNABLE_TO_INCREASE_BRIGHTNESS_FURTHER_BECAUSE_OF_PHONE_OVERHEATING"
 msgstr "Nije moguće povećati osvetljenje, telefon se pregreva."
index a715a786687d6833ba35a47d9290ca3b6fc06e94..9feb0c5d34ba9a562d51126fefa2762b85e8cf24 100755 (executable)
@@ -19,8 +19,8 @@ msgstr "Ljud"
 msgid "IDS_QP_BUTTON2_MUTE_ABB"
 msgstr "Tyst"
 
-msgid "IDS_QP_BUTTON2_LOCATION_ABB"
-msgstr "Plats"
+msgid "IDS_QP_BUTTON2_DO_NOT_DISTURB_ABB"
+msgstr "Stör ej"
 
 msgid "IDS_ST_POP_UNABLE_TO_INCREASE_BRIGHTNESS_FURTHER_BECAUSE_OF_PHONE_OVERHEATING"
 msgstr "Det går inte att öka ljusstyrkan mer på grund av risk för överhettning."
index 17056feae5283b129db5fcb3ae4e08235284e28f..879a5b88dec8efcf2bdb3aede0563eb73940d2ae 100755 (executable)
@@ -19,8 +19,8 @@ msgstr "Ses"
 msgid "IDS_QP_BUTTON2_MUTE_ABB"
 msgstr "Sessiz"
 
-msgid "IDS_QP_BUTTON2_LOCATION_ABB"
-msgstr "Konum"
+msgid "IDS_QP_BUTTON2_DO_NOT_DISTURB_ABB"
+msgstr "Rahatsız etmeyin"
 
 msgid "IDS_ST_POP_UNABLE_TO_INCREASE_BRIGHTNESS_FURTHER_BECAUSE_OF_PHONE_OVERHEATING"
 msgstr "Aşırı ısınmadan dolayı ekran parlaklığı arttırılamaz."
index 4e040cb3967f1188b3738d67cd64522dfc8215b2..73daba1fc25f5aee5487e2d12f72a44ae3fab82b 100755 (executable)
@@ -19,8 +19,8 @@ msgstr "Звук"
 msgid "IDS_QP_BUTTON2_MUTE_ABB"
 msgstr "Вимкнути\nзвук"
 
-msgid "IDS_QP_BUTTON2_LOCATION_ABB"
-msgstr "Ð\93еоданÑ\96"
+msgid "IDS_QP_BUTTON2_DO_NOT_DISTURB_ABB"
+msgstr "Ð\9dе Ñ\82Ñ\83Ñ\80бÑ\83ваÑ\82и"
 
 msgid "IDS_ST_POP_UNABLE_TO_INCREASE_BRIGHTNESS_FURTHER_BECAUSE_OF_PHONE_OVERHEATING"
 msgstr "Неможливо збільшувати яскравість далі через перегрів телефону."
index 0f9a6b0baf3d7f31afdadb47e4d44b5e3605e8ae..87d98b027149250f3c3f6eca3631870c50aa584a 100755 (executable)
@@ -19,8 +19,8 @@ msgstr "Ovoz"
 msgid "IDS_QP_BUTTON2_MUTE_ABB"
 msgstr "Ovozni\no‘chir"
 
-msgid "IDS_QP_BUTTON2_LOCATION_ABB"
-msgstr "Joylashuv"
+msgid "IDS_QP_BUTTON2_DO_NOT_DISTURB_ABB"
+msgstr "Bezovta qilmang"
 
 msgid "IDS_ST_POP_UNABLE_TO_INCREASE_BRIGHTNESS_FURTHER_BECAUSE_OF_PHONE_OVERHEATING"
 msgstr "Telefon qizib ketgani sababli yorqinlikni ko‘paytirib bo‘lmaydi."
index 889fb1bdea7f6da8de4bbc8917610d1030384fd2..28e6cdc161d69175f55b1f46a924a06edbe6c328 100755 (executable)
@@ -19,8 +19,8 @@ msgstr "声音"
 msgid "IDS_QP_BUTTON2_MUTE_ABB"
 msgstr "静音"
 
-msgid "IDS_QP_BUTTON2_LOCATION_ABB"
-msgstr "位置"
+msgid "IDS_QP_BUTTON2_DO_NOT_DISTURB_ABB"
+msgstr "免打扰"
 
 msgid "IDS_ST_POP_UNABLE_TO_INCREASE_BRIGHTNESS_FURTHER_BECAUSE_OF_PHONE_OVERHEATING"
 msgstr "由于电话过热,无法再增加亮度。"
index 8ccc82d4e7d2c53fa09d49152d88f58cd5c1ff7e..c00ffbc3ae3e6521b5f5b9d80e76f57cee3458b3 100755 (executable)
@@ -19,8 +19,8 @@ msgstr "聲音"
 msgid "IDS_QP_BUTTON2_MUTE_ABB"
 msgstr "靜音"
 
-msgid "IDS_QP_BUTTON2_LOCATION_ABB"
-msgstr "位置"
+msgid "IDS_QP_BUTTON2_DO_NOT_DISTURB_ABB"
+msgstr "請勿打擾"
 
 msgid "IDS_ST_POP_UNABLE_TO_INCREASE_BRIGHTNESS_FURTHER_BECAUSE_OF_PHONE_OVERHEATING"
 msgstr "無法進一步提高亮度,因為手機過熱。"
index 3766a99ac262bf381771cdd7b57e16a1ae8da7e2..e6f9dd0c45662f26c7147c2d0c70861f45284e90 100755 (executable)
@@ -19,8 +19,8 @@ msgstr "音效"
 msgid "IDS_QP_BUTTON2_MUTE_ABB"
 msgstr "靜音"
 
-msgid "IDS_QP_BUTTON2_LOCATION_ABB"
-msgstr "位置"
+msgid "IDS_QP_BUTTON2_DO_NOT_DISTURB_ABB"
+msgstr "請勿打擾"
 
 msgid "IDS_ST_POP_UNABLE_TO_INCREASE_BRIGHTNESS_FURTHER_BECAUSE_OF_PHONE_OVERHEATING"
 msgstr "無法增加螢幕亮度,因為手機過熱。"
index 7d51eb819c270bffcfa74e596201332e2668af72..fcf02ae5885c00e38c96fde48fd859d5687d42fe 100755 (executable)
@@ -32,7 +32,7 @@ static const char *_default_preference_get(const char *key)
        if (strcmp(key, PREF_BRIGHTNESS) == 0)
                return "OFF";
        else if (strcmp(key, PREF_QUICKSETTING_ORDER) == 0)
-               return "wifi,gps,sound,rotate,bluetooth,mobile_data,assisitvelight,u_power_saving,wifi_hotspot,flightmode";
+               return "wifi,dnd,sound,rotate,bluetooth,mobile_data,assisitvelight,u_power_saving,wifi_hotspot,flightmode";
        else if (strcmp(key, PREF_QUICKSETTING_FEATURED_NUM) == 0)
                return "11";
        else if (strcmp(key, PREF_SHORTCUT_ENABLE) == 0)
@@ -101,7 +101,6 @@ HAPI int quickpanel_preference_get(const char *key, char **value)
                DBG("preference_get_string error : key(%s)", key);
                return QP_FAIL;
        }
-
        return QP_OK;
 }
 
diff --git a/src/settings/modules/dnd.c b/src/settings/modules/dnd.c
new file mode 100755 (executable)
index 0000000..5231f78
--- /dev/null
@@ -0,0 +1,407 @@
+/*
+ * Copyright (c) 2019 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include <Elementary.h>
+#include <vconf.h>
+#include <syspopup_caller.h>
+#include <app_control.h>
+#include <tzsh.h>
+#include <tzsh_quickpanel_service.h>
+
+#include "common.h"
+#include "common_uic.h"
+#include "quickpanel-ui.h"
+#include "settings.h"
+#include "setting_utils.h"
+#include "setting_module_api.h"
+#include "settings_icon_common.h"
+
+#include <notification_ipc.h>
+
+#define BUTTON_LABEL _("IDS_QP_BUTTON2_DO_NOT_DISTURB_ABB")
+#define BUTTON_ICON_NORMAL "quick_icon_disturb.png"
+#define BUTTON_ICON_HIGHLIGHT NULL
+#define BUTTON_ICON_DIM NULL
+
+static notification_system_setting_h system_setting = NULL;
+static QP_Module_Setting *module_out;
+static bool is_dnd_clicked_by_quickpanel = FALSE;
+
+void update_system_settings()
+{
+       DBG("Updating system settings.");
+       int err = NOTIFICATION_ERROR_NONE;
+       if (system_setting) {
+               err = notification_system_setting_update_system_setting(system_setting);
+               if (err != NOTIFICATION_ERROR_NONE)
+                       DBG("notification_setting_update_setting [%d]\n", err);
+
+               if (system_setting)
+                       notification_system_setting_free_system_setting(system_setting);
+
+               system_setting = NULL;
+       }
+}
+
+static void load_system_setting()
+{
+       if (!system_setting) {
+               int err = notification_system_setting_load_system_setting(&system_setting);
+               if (err != NOTIFICATION_ERROR_NONE || system_setting == NULL) {
+                       DBG("notification_system_setting_load_system_setting failed [%d]\n", err);
+                       if (system_setting)
+                               notification_system_setting_free_system_setting(system_setting);
+                       system_setting = NULL;
+               }
+       }
+}
+
+notification_system_setting_h get_system_setting()
+{
+       if (!system_setting)
+               load_system_setting();
+       if(system_setting == NULL)
+               DBG("system setting is null");
+       return system_setting;
+}
+
+bool get_do_not_disturb_state()
+{
+       bool do_not_disturb = false;
+       notification_system_setting_get_do_not_disturb(get_system_setting(), &do_not_disturb);
+       DBG("do_not_disturb [%d]\n", do_not_disturb);
+       return do_not_disturb;
+}
+
+bool get_dnd_schedule()
+{
+       bool set_schedule = FALSE;
+       notification_system_setting_dnd_schedule_get_enabled(get_system_setting(), &set_schedule);
+       DBG("get_dnd_schedule >>>>>> [%d]\n", set_schedule);
+       return set_schedule;
+}
+
+void set_do_not_disturb_state(bool state)
+{
+       notification_system_setting_set_do_not_disturb(get_system_setting(), state);
+       DBG("set do_not_disturb [%d]\n", system_setting->do_not_disturb);
+}
+
+static const char *_label_get(void)
+{
+       return BUTTON_LABEL;
+}
+
+static const char *_icon_get(qp_setting_icon_image_type type)
+{
+       if (type == QP_SETTING_ICON_NORMAL) {
+               return BUTTON_ICON_NORMAL;
+       } else if (type == QP_SETTING_ICON_HIGHLIGHT) {
+               return BUTTON_ICON_HIGHLIGHT;
+       } else if (type == QP_SETTING_ICON_DIM) {
+#ifdef BUTTON_ICON_DIM
+               return BUTTON_ICON_DIM;
+#endif
+       }
+       return NULL;
+}
+
+static void _long_press_cb(void *data)
+{
+       QP_Module_Setting *module = (QP_Module_Setting *)data;
+
+       if (quickpanel_setting_module_is_immediate_actionable(module, QP_SETTING_ICON_LONGPRESSED) == false)
+               return;
+
+       quickpanel_setting_icon_handler_longpress(module->setting_pkgname, NULL, NULL);
+}
+
+static void _view_update(Evas_Object *view, int state, int flag_extra_1, int flag_extra_2)
+{
+       Evas_Object *image = NULL;
+       const char *icon_path = NULL;
+
+       quickpanel_setting_icon_state_set(view, state);
+
+       if (state == ICON_VIEW_STATE_ON) {
+#ifdef BUTTON_ICON_HIGHLIGHT
+               icon_path = BUTTON_ICON_HIGHLIGHT;
+#endif
+       } else if (state == ICON_VIEW_STATE_DIM) {
+#ifdef BUTTON_ICON_DIM
+               icon_path = BUTTON_ICON_DIM;
+#endif
+       } else {
+               icon_path = BUTTON_ICON_NORMAL;
+       }
+
+       if (icon_path == NULL)
+               icon_path = BUTTON_ICON_NORMAL;
+
+       image = quickpanel_setting_icon_image_new(view, icon_path);
+       quickpanel_setting_icon_content_set(view, image);
+       quickpanel_setting_icon_text_set(view, BUTTON_LABEL, state);
+}
+
+static void _status_update(QP_Module_Setting *module, int flag_extra_1, int flag_extra_2)
+{
+       Eina_Bool state = get_do_not_disturb_state();
+       retif(module == NULL, , "Invalid parameter!");
+
+       quickpanel_setting_module_progress_mode_set(module, FLAG_DISABLE, FLAG_TURN_OFF);
+       quickpanel_setting_module_icon_timer_del(module);
+       if (state == TRUE) {
+               DBG(">> module state is true");
+               quickpanel_setting_module_icon_state_set(module, ICON_VIEW_STATE_ON);
+       } else {
+               DBG(">> module state is false");
+               quickpanel_setting_module_icon_state_set(module, ICON_VIEW_STATE_OFF);
+       }
+       quickpanel_setting_module_icon_view_update(module,quickpanel_setting_module_icon_state_get(module),FLAG_VALUE_VOID);
+}
+
+static void _icon_state_change(void *user_data , int dnd)
+{
+       DBG(">>>> _icon_state_changed <<<<");
+       if(is_dnd_clicked_by_quickpanel) // last call from quickpanel
+       {
+               if(quickpanel_setting_module_icon_state_get(module_out) == ICON_VIEW_STATE_ON) {
+                       DBG(">>>> in _icon_state_change, If icon view state is ON !!!! <<<<");
+                       quickpanel_setting_module_icon_state_set(module_out,ICON_VIEW_STATE_ON);
+                       quickpanel_setting_module_icon_view_update(module_out,quickpanel_setting_module_icon_state_get(module_out),FLAG_VALUE_VOID);
+               } else {
+                       DBG(">>>> in _icon_state_change, If icon view state is OFF !!!! <<<<");
+                       quickpanel_setting_module_icon_state_set(module_out,ICON_VIEW_STATE_OFF);
+                       quickpanel_setting_module_icon_view_update(module_out,quickpanel_setting_module_icon_state_get(module_out),FLAG_VALUE_VOID);
+               }
+               is_dnd_clicked_by_quickpanel= FALSE;
+       }
+       else // call from settings
+       {
+               if (quickpanel_setting_module_icon_state_get(module_out) == ICON_VIEW_STATE_ON) {
+                       DBG(">>>> in _icon_state_change, If icon view state is ON !!!! <<<<");
+                       quickpanel_setting_module_icon_state_set(module_out, ICON_VIEW_STATE_OFF);
+                       quickpanel_setting_module_icon_view_update(module_out,quickpanel_setting_module_icon_state_get(module_out),FLAG_VALUE_VOID);
+               } else {
+                       DBG(">>>> in _icon_state_change, If icon view state is OFF !!!! <<<<");
+                       quickpanel_setting_module_icon_state_set(module_out, ICON_VIEW_STATE_ON);
+                       quickpanel_setting_module_icon_view_update(module_out,quickpanel_setting_module_icon_state_get(module_out),FLAG_VALUE_VOID);
+               }
+       }
+}
+
+static void _state_change(QP_Module_Setting *module)
+{
+       DBG(">>> Entered state_change");
+       Eina_Bool state =  quickpanel_setting_module_icon_state_get(module);
+       if (state == TRUE) {
+               DBG(">>>> in _state_change, If icon view state is ON !!!! <<<<");
+               DBG("State : %s ,before status update", state == FALSE ? "FALSE" : "TRUE");
+               set_do_not_disturb_state(!state);
+               DBG("do_not_disturb check value = %s", state == false ? "FALSE" : "TRUE");
+               _status_update(module, FLAG_VALUE_VOID, FLAG_VALUE_VOID);
+               DBG(">>> END");
+       } else {
+               DBG(">>>> in _state_change, If icon view state is OFF !!!! <<<<");
+               DBG("State : %s ,before status update", state == FALSE ? "FALSE" : "TRUE");
+               set_do_not_disturb_state(!state);
+               DBG("do_not_disturb check value = %s", state == false ? "FALSE" : "TRUE");
+               if(get_do_not_disturb_state() && get_dnd_schedule()) {
+                       DBG("DO_NOT_DISTURB_WILL_AUTOMATICALLY_TURN_OFF_AT_SCHEDULED_END_TIME");
+               }
+               _status_update(module, FLAG_VALUE_VOID, FLAG_VALUE_VOID);
+               DBG(">>> END");
+       }
+       update_system_settings();
+}
+
+static void _mouse_clicked_cb(void *data, Evas_Object *obj, const char *emission, const char *source)
+{
+       QP_Module_Setting *module = (QP_Module_Setting *)data;
+
+       retif(module == NULL, , "Invalid parameter!");
+       is_dnd_clicked_by_quickpanel = TRUE;
+       _state_change(module);
+}
+static int _register_dnd_event_handler(void *data)
+{
+       int ret = QP_OK;
+       module_out = (QP_Module_Setting *)data;
+
+       ret = notification_register_system_setting_dnd_changed_cb(_icon_state_change, data);
+       return ret;
+}
+static int _unregister_dnd_event_handler(void *data)
+{
+       int ret = QP_OK;
+
+       ret = notification_unregister_system_setting_dnd_changed_cb(_icon_state_change);
+
+       return ret;
+}
+/****************************************************************************
+ *
+ * Quickpanel Item functions
+ *
+ ****************************************************************************/
+static int _init(void *data)
+{
+       int ret = QP_OK;
+       ret = _register_dnd_event_handler(data);
+       return ret;
+}
+
+static int _fini(void *data)
+{
+       int ret = QP_OK;
+       ret = _unregister_dnd_event_handler(data);
+       return ret;
+}
+
+static void _lang_changed(void *data)
+{
+       QP_Module_Setting *module = (QP_Module_Setting *)data;
+       retif(module == NULL, , "Invalid parameter!");
+
+       quickpanel_setting_module_icon_view_update_text(module);
+}
+
+static void _refresh(void *data)
+{
+       QP_Module_Setting *module = (QP_Module_Setting *)data;
+       retif(module == NULL, , "Invalid parameter!");
+
+       quickpanel_setting_module_icon_view_update_text(module);
+}
+
+static void _reset_icon(QP_Module_Setting *module)
+{
+       retif(module == NULL, , "Invalid parameter!");
+
+       quickpanel_setting_module_progress_mode_set(module, FLAG_DISABLE, FLAG_VALUE_VOID);
+       _status_update(module, FLAG_VALUE_VOID, FLAG_VALUE_VOID);
+}
+
+static void _handler_on(void *data)
+{
+       QP_Module_Setting *module = (QP_Module_Setting *)data;
+       retif(module == NULL, , "Invalid parameter!");
+
+       quickpanel_setting_module_progress_mode_set(module, FLAG_DISABLE, FLAG_TURN_OFF);
+       quickpanel_setting_module_icon_timer_del(module);
+
+       if (quickpanel_setting_module_icon_state_get(module) == ICON_VIEW_STATE_OFF) {
+               quickpanel_setting_module_progress_mode_set(module, FLAG_ENABLE, FLAG_TURN_ON);
+               quickpanel_setting_module_icon_timer_add(module);
+       } else {
+               ERR("the button is already turned on");
+               _reset_icon(module);
+       }
+}
+
+static void _handler_off(void *data)
+{
+       QP_Module_Setting *module = (QP_Module_Setting *)data;
+       retif(module == NULL, , "Invalid parameter!");
+
+       quickpanel_setting_module_progress_mode_set(module, FLAG_DISABLE, FLAG_TURN_OFF);
+       quickpanel_setting_module_icon_timer_del(module);
+
+       if (quickpanel_setting_module_icon_state_get(module) == ICON_VIEW_STATE_ON) {
+               quickpanel_setting_module_progress_mode_set(module, FLAG_ENABLE, FLAG_TURN_OFF);
+               quickpanel_setting_module_icon_timer_add(module);
+       } else {
+               ERR("the button is already turned off");
+               _reset_icon(module);
+       }
+}
+
+static void _handler_progress_on(void *data)
+{
+       QP_Module_Setting *module = (QP_Module_Setting *)data;
+       retif(module == NULL, , "Invalid parameter!");
+
+       quickpanel_setting_module_progress_mode_set(module, FLAG_ENABLE, FLAG_VALUE_VOID);
+}
+
+static void _handler_progress_off(void *data)
+{
+       QP_Module_Setting *module = (QP_Module_Setting *)data;
+       retif(module == NULL, , "Invalid parameter!");
+
+       _reset_icon(module);
+}
+
+static int _handler_ipc(const char *command, void *data)
+{
+       int i = 0;
+       retif(data == NULL, EINA_FALSE, "item data is NULL");
+       retif(command == NULL, EINA_FALSE, "command is NULL");
+
+       static Setting_Activity_Handler __table_handler[] = {
+               {
+                       .command = "on",
+                       .handler = _handler_on,
+               },
+               {
+                       .command = "off",
+                       .handler = _handler_off,
+               },
+               {
+                       .command = "progress_on",
+                       .handler = _handler_progress_on,
+               },
+               {
+                       .command = "progress_off",
+                       .handler = _handler_progress_off,
+               },
+               {
+                       .command = NULL,
+                       .handler = NULL,
+               },
+       };
+
+       for (i = 0; __table_handler[i].command; i++) {
+               if (strcasecmp(__table_handler[i].command, command))
+                       continue;
+
+
+               if (__table_handler[i].handler != NULL) {
+                       DBG("process:%s", command);
+                       __table_handler[i].handler(data);
+               }
+               break;
+       }
+
+       return EINA_TRUE;
+}
+
+QP_Module_Setting dnd = {
+       .name                           = "dnd",
+       .setting_pkgname        = "org.tizen.setting-notification",
+       .init                           = _init,
+       .fini                           = _fini,
+       .lang_changed           = _lang_changed,
+       .refresh                        = _refresh,
+       .icon_get                       = _icon_get,
+       .label_get                      = _label_get,
+       .view_update        = _view_update,
+       .status_update          = _status_update,
+       .state_change           = _state_change,
+       .handler_longpress      = _long_press_cb,
+       .handler_ipc        = _handler_ipc,
+       .handler_press          = _mouse_clicked_cb,
+};
\ No newline at end of file
diff --git a/src/settings/modules/gps.c b/src/settings/modules/gps.c
deleted file mode 100755 (executable)
index 25e8c8c..0000000
+++ /dev/null
@@ -1,387 +0,0 @@
-/*
- * Copyright (c) 2019 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include <Elementary.h>
-
-#include <vconf.h>
-#include <syspopup_caller.h>
-#include <app_control.h>
-#include <locations.h>
-
-#include <tzsh.h>
-#include <tzsh_quickpanel_service.h>
-
-#include "common.h"
-#include "common_uic.h"
-#include "quickpanel-ui.h"
-#include "settings.h"
-#include "setting_utils.h"
-#include "setting_module_api.h"
-#include "settings_icon_common.h"
-
-
-#define BUTTON_LABEL _("IDS_QP_BUTTON2_LOCATION_ABB")
-#define BUTTON_ICON_NORMAL "quick_icon_location.png"
-#define BUTTON_ICON_HIGHLIGHT NULL
-#define BUTTON_ICON_DIM NULL
-#define OPERATION_SETTING_MENU "http://tizen.org/appcontrol/operation/configure/location"
-#define PACKAGE_SYSPOPUP "gps-syspopup"
-
-static void _mouse_clicked_cb(void *data, Evas_Object *obj, const char *emission, const char *source);
-
-static const char *_label_get(void)
-{
-       return BUTTON_LABEL;
-}
-
-static const char *_icon_get(qp_setting_icon_image_type type)
-{
-       if (type == QP_SETTING_ICON_NORMAL) {
-               return BUTTON_ICON_NORMAL;
-       } else if (type == QP_SETTING_ICON_HIGHLIGHT) {
-               return BUTTON_ICON_HIGHLIGHT;
-       } else if (type == QP_SETTING_ICON_DIM) {
-#ifdef BUTTON_ICON_DIM
-               return BUTTON_ICON_DIM;
-#endif
-       }
-
-       return NULL;
-}
-
-static void _long_press_cb(void *data)
-{
-       QP_Module_Setting *module = (QP_Module_Setting *)data;
-
-       if (quickpanel_setting_module_is_immediate_actionable(module, QP_SETTING_ICON_LONGPRESSED) == false)
-               return;
-
-       quickpanel_setting_icon_handler_longpress(module->setting_pkgname, NULL, NULL);
-}
-
-static void _gps_syspopup_launch(int is_on)
-{
-       syspopup_launch(PACKAGE_SYSPOPUP, NULL);
-}
-
-static void _view_update(Evas_Object *view, int state, int flag_extra_1, int flag_extra_2)
-{
-       Evas_Object *image = NULL;
-       const char *icon_path = NULL;
-
-       quickpanel_setting_icon_state_set(view, state);
-
-       if (state == ICON_VIEW_STATE_ON) {
-#ifdef BUTTON_ICON_HIGHLIGHT
-               icon_path = BUTTON_ICON_HIGHLIGHT;
-#endif
-       } else if (state == ICON_VIEW_STATE_DIM) {
-#ifdef BUTTON_ICON_DIM
-               icon_path = BUTTON_ICON_DIM;
-#endif
-       } else {
-               icon_path = BUTTON_ICON_NORMAL;
-       }
-
-       if (icon_path == NULL)
-               icon_path = BUTTON_ICON_NORMAL;
-
-       image = quickpanel_setting_icon_image_new(view, icon_path);
-       quickpanel_setting_icon_content_set(view, image);
-       quickpanel_setting_icon_text_set(view, BUTTON_LABEL, state);
-}
-
-static void _status_update(QP_Module_Setting *module, int flag_extra_1, int flag_extra_2)
-{
-       int ret = 0;
-       bool status = 0;
-       retif(module == NULL, , "Invalid parameter!");
-
-       quickpanel_setting_module_progress_mode_set(module, FLAG_DISABLE, FLAG_TURN_OFF);
-       quickpanel_setting_module_icon_timer_del(module);
-
-       ret = location_manager_is_enabled_method(LOCATIONS_METHOD_HYBRID, &status);
-       msgif(ret != 0, "fail to get LOCATIONS_METHOD_HYBRID:%d", ret);
-
-       if (status == true)
-               quickpanel_setting_module_icon_state_set(module, ICON_VIEW_STATE_ON);
-       else
-               quickpanel_setting_module_icon_state_set(module, ICON_VIEW_STATE_OFF);
-
-       quickpanel_setting_module_icon_view_update(module,
-                       quickpanel_setting_module_icon_state_get(module),
-                       FLAG_VALUE_VOID);
-}
-
-static void _state_change(QP_Module_Setting *module)
-{
-       int ret = 0;
-       bool enable = 0;
-
-       if (quickpanel_setting_module_icon_state_get(module) == ICON_VIEW_STATE_OFF) {
-               _gps_syspopup_launch(quickpanel_setting_module_icon_state_get(module));
-       } else {
-               // Use my location off
-               ret = location_manager_is_enabled_method(LOCATIONS_METHOD_HYBRID, &enable);
-               if (ret == false) {
-                       if (enable == true) {
-                               ret = location_manager_enable_method(LOCATIONS_METHOD_HYBRID, false);
-                               if (ret != 0)
-                                       ERR("Failed to set LOCATIONS_METHOD_HYBRID[%d]", ret);
-
-                       }
-               } else {
-                       ERR("Failed to get Use my location[%d]", ret);
-               }
-               // GPS off
-               ret = location_manager_is_enabled_method(LOCATIONS_METHOD_GPS, &enable);
-               if (ret == false) {
-                       if (enable == true) {
-                               ret = location_manager_enable_method(LOCATIONS_METHOD_GPS, false);
-                               if (ret != 0)
-                                       ERR("Failed to set LOCATIONS_METHOD_GPS [%d]", ret);
-
-                       }
-               } else {
-                       ERR("Failed to get GPS[%d]", ret);
-               }
-               // Wireless networks off
-               ret = location_manager_is_enabled_method(LOCATIONS_METHOD_WPS, &enable);
-               if (ret == false) {
-                       if (enable == true) {
-                               ret = location_manager_enable_method(LOCATIONS_METHOD_WPS, false);
-                               if (ret != 0)
-                                       ERR("Failed to set LOCATIONS_METHOD_WPS [%d]", ret);
-
-                       }
-               } else {
-                       ERR("Failed to get network[%d]", ret);
-               }
-       }
-}
-
-static void _mouse_clicked_cb(void *data, Evas_Object *obj, const char *emission, const char *source)
-{
-       int dpm_state = 0;
-       QP_Module_Setting *module = (QP_Module_Setting *)data;
-
-       retif(module == NULL, , "Invalid parameter!");
-
-       if (quickpanel_setting_module_is_icon_clickable(module) == 0)
-               return;
-
-
-       if (quickpanel_setting_module_dpm_state_get(module->name, &dpm_state) == 0)
-               return;
-
-
-       if (quickpanel_setting_module_is_immediate_actionable(module, QP_SETTING_ICON_CLICKED) == 0)
-               return;
-
-
-       if (dpm_state == 0) {
-               quickpanel_setting_module_syspopup_launch(DPM_SYSPOPUP, "id", "location");
-               return;
-       }
-
-       _state_change(module);
-
-}
-
-static void _gps_vconf_cb(keynode_t *node, void *data)
-{
-       _status_update(data, FLAG_VALUE_VOID, FLAG_VALUE_VOID);
-}
-
-static int _register_module_event_handler(void *data)
-{
-       int ret = 0;
-
-       ret = vconf_notify_key_changed(VCONFKEY_LOCATION_USE_MY_LOCATION,
-                       _gps_vconf_cb, data);
-       msgif(ret != 0, "failed to notify key(VCONFKEY_LOCATION_USE_MY_LOCATION) : %d", ret);
-
-       return QP_OK;
-}
-
-static int _unregister_module_event_handler(void *data)
-{
-       int ret = 0;
-
-       ret = vconf_ignore_key_changed(VCONFKEY_LOCATION_USE_MY_LOCATION,
-                       _gps_vconf_cb);
-       msgif(ret != 0, "failed to ignore key(VCONFKEY_LOCATION_USE_MY_LOCATION) : %d", ret);
-
-       return QP_OK;
-}
-
-/****************************************************************************
- *
- * Quickpanel Item functions
- *
- ****************************************************************************/
-static int _init(void *data)
-{
-       int ret = QP_OK;
-
-       ret = _register_module_event_handler(data);
-
-       return ret;
-}
-
-static int _fini(void *data)
-{
-       int ret = QP_OK;
-
-       ret = _unregister_module_event_handler(data);
-
-       return ret;
-}
-
-static void _lang_changed(void *data)
-{
-       QP_Module_Setting *module = (QP_Module_Setting *)data;
-       retif(module == NULL, , "Invalid parameter!");
-
-       quickpanel_setting_module_icon_view_update_text(module);
-}
-
-static void _refresh(void *data)
-{
-       QP_Module_Setting *module = (QP_Module_Setting *)data;
-       retif(module == NULL, , "Invalid parameter!");
-
-       quickpanel_setting_module_icon_view_update_text(module);
-}
-
-static void _reset_icon(QP_Module_Setting *module)
-{
-       retif(module == NULL, , "Invalid parameter!");
-
-       quickpanel_setting_module_progress_mode_set(module, FLAG_DISABLE, FLAG_VALUE_VOID);
-       _status_update(module, FLAG_VALUE_VOID, FLAG_VALUE_VOID);
-}
-
-static void _handler_on(void *data)
-{
-       QP_Module_Setting *module = (QP_Module_Setting *)data;
-       retif(module == NULL, , "Invalid parameter!");
-
-       quickpanel_setting_module_progress_mode_set(module, FLAG_DISABLE, FLAG_TURN_OFF);
-       quickpanel_setting_module_icon_timer_del(module);
-
-       if (quickpanel_setting_module_icon_state_get(module) == ICON_VIEW_STATE_OFF) {
-               quickpanel_setting_module_progress_mode_set(module, FLAG_ENABLE, FLAG_TURN_ON);
-               quickpanel_setting_module_icon_timer_add(module);
-       } else {
-               ERR("the button is already turned on");
-               _reset_icon(module);
-       }
-}
-
-static void _handler_off(void *data)
-{
-       QP_Module_Setting *module = (QP_Module_Setting *)data;
-       retif(module == NULL, , "Invalid parameter!");
-
-       quickpanel_setting_module_progress_mode_set(module, FLAG_DISABLE, FLAG_TURN_OFF);
-       quickpanel_setting_module_icon_timer_del(module);
-
-       if (quickpanel_setting_module_icon_state_get(module) == ICON_VIEW_STATE_ON) {
-               quickpanel_setting_module_progress_mode_set(module, FLAG_ENABLE, FLAG_TURN_OFF);
-               quickpanel_setting_module_icon_timer_add(module);
-       } else {
-               ERR("the button is already turned off");
-               _reset_icon(module);
-       }
-}
-
-static void _handler_progress_on(void *data)
-{
-       QP_Module_Setting *module = (QP_Module_Setting *)data;
-       retif(module == NULL, , "Invalid parameter!");
-
-       quickpanel_setting_module_progress_mode_set(module, FLAG_ENABLE, FLAG_VALUE_VOID);
-}
-
-static void _handler_progress_off(void *data)
-{
-       QP_Module_Setting *module = (QP_Module_Setting *)data;
-       retif(module == NULL, , "Invalid parameter!");
-
-       _reset_icon(module);
-}
-
-static int _handler_ipc(const char *command, void *data)
-{
-       int i = 0;
-       retif(data == NULL, EINA_FALSE, "item data is NULL");
-       retif(command == NULL, EINA_FALSE, "command is NULL");
-
-       static Setting_Activity_Handler __table_handler[] = {
-               {
-                       .command = "on",
-                       .handler = _handler_on,
-               },
-               {
-                       .command = "off",
-                       .handler = _handler_off,
-               },
-               {
-                       .command = "progress_on",
-                       .handler = _handler_progress_on,
-               },
-               {
-                       .command = "progress_off",
-                       .handler = _handler_progress_off,
-               },
-               {
-                       .command = NULL,
-                       .handler = NULL,
-               },
-       };
-
-       for (i = 0; __table_handler[i].command; i++) {
-               if (strcasecmp(__table_handler[i].command, command))
-                       continue;
-
-
-               if (__table_handler[i].handler != NULL) {
-                       DBG("process:%s", command);
-                       __table_handler[i].handler(data);
-               }
-               break;
-       }
-
-       return EINA_TRUE;
-}
-
-QP_Module_Setting gps = {
-       .name                           = "gps",
-       .setting_pkgname        = "org.tizen.setting-location",
-       .init                           = _init,
-       .fini                           = _fini,
-       .lang_changed           = _lang_changed,
-       .refresh                        = _refresh,
-       .icon_get                       = _icon_get,
-       .label_get                      = _label_get,
-       .view_update        = _view_update,
-       .status_update          = _status_update,
-       .state_change           = _state_change,
-       .handler_longpress      = _long_press_cb,
-       .handler_ipc        = _handler_ipc,
-       .handler_press          = _mouse_clicked_cb,
-};
index d4cd99c32d8ed4c1348d12b27c48f4652a97be60..f49f5b887a1359397099e901417fa7f502916a8a 100755 (executable)
@@ -372,10 +372,7 @@ HAPI int quickpanel_setting_module_dpm_state_get(char *module_name, int *state)
                ERR("dpm_manager_create() is failed");
                return 0;
        }
-
-       if (strncmp(module_name, "gps", strlen(module_name)) == 0)
-               ret = dpm_restriction_get_location_state(handle, &dpm_state);
-       else if (strncmp(module_name, "bluetooth", strlen(module_name)) == 0)
+       if (strncmp(module_name, "bluetooth", strlen(module_name)) == 0)
                ret = dpm_restriction_get_bluetooth_mode_change_state(handle, &dpm_state);
        else if (strncmp(module_name, "wifi", strlen(module_name)) == 0)
                ret = dpm_restriction_get_wifi_state(handle, &dpm_state);
index 401bc34e20d241aa00c637233fd734fcbcbeb0d0..6e69f7feef39988f7a1ab3c0f7fe483b60843cec 100755 (executable)
@@ -49,7 +49,7 @@ static void quickpanel_settings_reflesh(void *data);
 static Eina_Bool _module_is_enabled(QP_Module_Setting *module);
 
 extern QP_Module_Setting wifi;
-extern QP_Module_Setting gps;
+extern QP_Module_Setting dnd;
 extern QP_Module_Setting bluetooth;
 extern QP_Module_Setting sound;
 extern QP_Module_Setting rotate;
@@ -71,7 +71,7 @@ static struct _info {
        .module_table = NULL,
        .modules = {
                &wifi,
-               &gps,
+               &dnd,
                &sound,
                &rotate,
                &bluetooth,
@@ -312,15 +312,15 @@ HAPI void quickpanel_settings_featured_list_get(Eina_List **list)
        const char *default_num_featured_str = quickpanel_preference_default_get(PREF_QUICKSETTING_FEATURED_NUM);
 
        retif(list == NULL, , "invalid data.");
-
-       if (quickpanel_preference_get(PREF_QUICKSETTING_ORDER, &sequence) == QP_OK && sequence != NULL) {
+       /*if (quickpanel_preference_get(PREF_QUICKSETTING_ORDER, &sequence) == QP_OK && sequence != NULL) {
                DBG("preference_get key(%s) value(%s)", PREF_QUICKSETTING_ORDER, sequence);
                params = g_strsplit(sequence, ",", 0);
                free(sequence);
        } else {
                params = g_strsplit(default_sequence, ",", 0);
-       }
+       }*/    // dnd not received by "sequence" in API quickpanel_preference_get, need to be checked.
 
+       params = g_strsplit(default_sequence, ",", 0);
        if (quickpanel_preference_get(PREF_QUICKSETTING_FEATURED_NUM, &num_featured_str) == QP_OK && num_featured_str != NULL) {
                DBG("preference_get key(%s) value(%s)", PREF_QUICKSETTING_FEATURED_NUM, num_featured_str);
                num_featured = atoi(num_featured_str);
@@ -342,6 +342,7 @@ HAPI void quickpanel_settings_featured_list_get(Eina_List **list)
                        module = _module_get_by_name(params[i]);
                        if (module != NULL) {
                                if (_module_is_enabled(module) == EINA_TRUE) {
+                                       DBG("module to b appended == %s",module->name);
                                        *list = eina_list_append(*list, module);
                                        seq_added_count++;
                                }
index 84a4e8ec5a289d11f2c01c3c362f0436758642d4..e38305c4591737e3f48ff0c08edc2da387974167 100755 (executable)
@@ -33,7 +33,7 @@
 
 #define E_DATA_ICON_CLICKED_CB "clicked_cb"
 #define E_DATA_ICON_ORIGINAL_OBJ "original_obj"
-
+#define OPERATION_VALUE "http://tizen.org/appcontrol/operation/setting/do_not_disturb"
 #define TAP_AND_DELAY_LONG 1.000
 
 static struct _info {
@@ -224,8 +224,10 @@ HAPI int quickpanel_setting_icon_click_cb_del(Evas_Object *icon, Edje_Signal_Cb
 HAPI void quickpanel_setting_icon_handler_longpress(const char *pkgname, const char *key, const char *value)
 {
        int ret;
-
-       ret = quickpanel_common_send_message_to_app(pkgname, NULL, key, value);
+       if(strcmp(pkgname,"org.tizen.setting-notification") == 0)
+               ret = quickpanel_common_send_message_to_app(pkgname,OPERATION_VALUE, key, value);
+       else
+               ret = quickpanel_common_send_message_to_app(pkgname, NULL, key, value);
        quickpanel_common_inform_launch_app_result(pkgname, ret);
        quickpanel_uic_close_quickpanel(false, 0);
 }