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
* limitations under the License.
*/
-
#ifndef __QP_COMMON_H_
#define __QP_COMMON_H_
-#endif /* __QP_COMMON_H_ */
+#endif /* __QP_COMMON_H_ */
\ No newline at end of file
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 =
}
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");
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 "لايمكن زيادة الاضاءة بسبب زيادة حرارة الهاتف."
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."
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 "Яркостта не може да се увеличи повече поради прегряване на телефона."
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"
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."
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."
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"
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 "Αδυναμία περαιτέρω αύξησης της φωτεινότητας λόγω υπερθέρμανσης της συσκευής."
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."
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."
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."
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"
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."
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."
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"
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."
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."
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."
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."
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"
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."
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."
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 "Հնարավոր չէ ավելցնել հեռախոսի էկրանի պայծառությունը հեռախոսի գեր տաքանալու պատճառով:"
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."
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."
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 "端末が過熱しているため、これ以上明るさを上げることができません。"
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 "განათებულობას ვეღარ გაზრდით, ტელეფონის გადახურების საშიშროების გამო."
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 "Жарықтықты одан ары көбейту мүмкін емес, себебі телефон қызып кетті."
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 "디바이스 온도가 높아져 밝기를 더 높일 수 없습니다."
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."
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."
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 "Не може да се зголеми осветленоста повеќе поради прегревање на телефонот."
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."
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."
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."
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."
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."
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"
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 "Невозможно увеличить яркость из-за перегрева устройства."
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."
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."
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."
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."
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."
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 "Неможливо збільшувати яскравість далі через перегрів телефону."
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."
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 "由于电话过热,无法再增加亮度。"
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 "無法進一步提高亮度,因為手機過熱。"
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 "無法增加螢幕亮度,因為手機過熱。"
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)
DBG("preference_get_string error : key(%s)", key);
return QP_FAIL;
}
-
return QP_OK;
}
--- /dev/null
+/*
+ * 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
+++ /dev/null
-/*
- * 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,
-};
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);
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;
.module_table = NULL,
.modules = {
&wifi,
- &gps,
+ &dnd,
&sound,
&rotate,
&bluetooth,
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);
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++;
}
#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 {
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);
}