TizenRefApp-7242 Implement save\read of "Allowed calls" settings in notification... 62/89862/4
authorOleksander Kostenko <o.kostenko@samsung.com>
Tue, 27 Sep 2016 08:06:41 +0000 (11:06 +0300)
committerAndrey Klimenko <and.klimenko@samsung.com>
Thu, 29 Sep 2016 11:48:39 +0000 (04:48 -0700)
Change-Id: I6c34b866d371766d267048f335fb6adb386873ae
Signed-off-by: Oleksander Kostenko <o.kostenko@samsung.com>
54 files changed:
inc/allowed-calls.h
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/allowed-calls.c
src/common-efl.c
src/do-not-disturb-efl.c
src/set-schedule-info.c

index f6a1874bb1c5a3dc7086c9cd52f483874d6d9acb..c3defd99c0b1620ba3c7badb1ec7e348ca61abcd 100644 (file)
@@ -24,4 +24,9 @@
  */
 void gl_allowed_calls_selected();
 
+/**
+ * @brief Gets a string of the do_not_disturb allow exceptions.
+ */
+const char *get_allowed_calls_string();
+
 #endif //__ALLOWED_CALLS_H__
index 71a4cf7c66b3ca75b24041f5bce0fa6a02d58df4..e0fd13d16fdcff6c65c9e1e060bb123835039709 100644 (file)
@@ -181,3 +181,6 @@ msgstr "الضبط المتقدم"
 msgid "IDS_ST_HEADER_LOADING_ING_ABB"
 msgstr "جار التحميل..."
 
+msgid "IDS_ST_BUTTON_OK_ABB6"
+msgstr "موافق"
+
index e0379f6f665654f2d765c01907bde4bf31f2b686..e63c011626e7f5be6a363af5177d0a542d1a8f34 100644 (file)
@@ -181,3 +181,6 @@ msgstr "Qabaqcıl parametrlər"
 msgid "IDS_ST_HEADER_LOADING_ING_ABB"
 msgstr "Yüklənir..."
 
+msgid "IDS_ST_BUTTON_OK_ABB6"
+msgstr "OK"
+
index 35beb2a52978e79e3f17c0aadff55b129924e0f5..ce12706aa8b05bdfdf2a18d2ea7f1e957a824e46 100644 (file)
@@ -181,3 +181,6 @@ msgstr "Разширени настройки"
 msgid "IDS_ST_HEADER_LOADING_ING_ABB"
 msgstr "Зареждане..."
 
+msgid "IDS_ST_BUTTON_OK_ABB6"
+msgstr "OK"
+
index 357e02c7310b8d9bdaa46be7ead086791bf612c4..5129b64e8f460a67761a17af91189672d312306a 100644 (file)
@@ -181,3 +181,6 @@ msgstr "Ajustaments avançats"
 msgid "IDS_ST_HEADER_LOADING_ING_ABB"
 msgstr "Carregant..."
 
+msgid "IDS_ST_BUTTON_OK_ABB6"
+msgstr "Acceptar"
+
index b4a1761d89318f432fc8e18eeafaf50fd19ed889..c0694307f8e8ed0bee806c6de23a68e91dcfdc73 100644 (file)
@@ -181,3 +181,6 @@ msgstr "Rozšířená nastavení"
 msgid "IDS_ST_HEADER_LOADING_ING_ABB"
 msgstr "Načítání..."
 
+msgid "IDS_ST_BUTTON_OK_ABB6"
+msgstr "OK"
+
index 2eea8c2f3ec70c1d293a118b4a9705639d4c7f47..7472e2f7cebc2400f3d1e1b6327196bb95f3cff0 100644 (file)
@@ -181,3 +181,6 @@ msgstr "Avancerede indstillinger"
 msgid "IDS_ST_HEADER_LOADING_ING_ABB"
 msgstr "Indlæser..."
 
+msgid "IDS_ST_BUTTON_OK_ABB6"
+msgstr "OK"
+
index 8b962906485a01313dae3317e2edb7d8c770d487..a8515b7904abfe9371c3c5b7ce98fa14d9162f61 100644 (file)
@@ -181,3 +181,6 @@ msgstr "Erweiterte Einstellungen"
 msgid "IDS_ST_HEADER_LOADING_ING_ABB"
 msgstr "Lädt..."
 
+msgid "IDS_ST_BUTTON_OK_ABB6"
+msgstr "OK"
+
index bd3ba59fe4a869778c5fcb8f028de9384b8d067f..f2884da045d6a969007f4710fccbce58241810fa 100644 (file)
@@ -181,3 +181,6 @@ msgstr "Σύνθετες ρυθμίσεις"
 msgid "IDS_ST_HEADER_LOADING_ING_ABB"
 msgstr "Φόρτωση..."
 
+msgid "IDS_ST_BUTTON_OK_ABB6"
+msgstr "OK"
+
index 9a41d6c5dca1b2e6104af0c42997c5c4c99b9a4c..fbb38c93f8cc8ec3fffdc8a96016f5f0bffa696b 100644 (file)
@@ -181,3 +181,6 @@ msgstr "Advanced settings"
 msgid "IDS_ST_HEADER_LOADING_ING_ABB"
 msgstr "Loading..."
 
+msgid "IDS_ST_BUTTON_OK_ABB6"
+msgstr "OK"
+
index 3ed2356269459748ef5658fefd77de0016ea678e..fb2247f2e9cfb345bb87485815c55d86f6f5eaf8 100644 (file)
@@ -181,3 +181,6 @@ msgstr "Advanced settings"
 msgid "IDS_ST_HEADER_LOADING_ING_ABB"
 msgstr "Loading..."
 
+msgid "IDS_ST_BUTTON_OK_ABB6"
+msgstr "OK"
+
index 85ec476fa889116d672833975de1afe83ee12a9a..8c05527878e4a5a87284d3104d3b9707065bfd59 100644 (file)
@@ -181,3 +181,6 @@ msgstr "Advanced settings"
 msgid "IDS_ST_HEADER_LOADING_ING_ABB"
 msgstr "Loading..."
 
+msgid "IDS_ST_BUTTON_OK_ABB6"
+msgstr "OK"
+
index 7f2af116698cb52d8ddd0f04b945d1ac11da3f64..f2ba1452f4ebd715239d1c5297988ba6da964061 100644 (file)
@@ -181,3 +181,6 @@ msgstr "Ajustes avanzados"
 msgid "IDS_ST_HEADER_LOADING_ING_ABB"
 msgstr "Cargando..."
 
+msgid "IDS_ST_BUTTON_OK_ABB6"
+msgstr "Aceptar"
+
index 5b4a631cf84a2134419df629b137e079024702fd..b823ddf71aff680f611651e0a5a9857461bbb0e3 100644 (file)
@@ -181,3 +181,6 @@ msgstr "Ajustes avanzados"
 msgid "IDS_ST_HEADER_LOADING_ING_ABB"
 msgstr "Cargando..."
 
+msgid "IDS_ST_BUTTON_OK_ABB6"
+msgstr "Aceptar"
+
index bc996450e30b284713a3da1501fd6d9e94522fa5..d83eba3d928b57bb9f57655a71996fe767a901de 100644 (file)
@@ -181,3 +181,6 @@ msgstr "Täpsemad seaded"
 msgid "IDS_ST_HEADER_LOADING_ING_ABB"
 msgstr "Laadimine..."
 
+msgid "IDS_ST_BUTTON_OK_ABB6"
+msgstr "OK"
+
index 39910c8c9f6c8d6c1893cbfb7f90859471f90fd2..f0d5486901c51cac475548ca9d80cb239a6b7508 100644 (file)
@@ -181,3 +181,6 @@ msgstr "Ezarpen aurreratuak"
 msgid "IDS_ST_HEADER_LOADING_ING_ABB"
 msgstr "Kargatzen..."
 
+msgid "IDS_ST_BUTTON_OK_ABB6"
+msgstr "Ados"
+
index 7da005ac705df0d8731f4e6a8033079cb33c57f5..845ec744009344b189b8a0b86cc1730b4220fc41 100644 (file)
@@ -181,3 +181,6 @@ msgstr "Lisäasetukset"
 msgid "IDS_ST_HEADER_LOADING_ING_ABB"
 msgstr "Ladataan..."
 
+msgid "IDS_ST_BUTTON_OK_ABB6"
+msgstr "OK"
+
index 8381eb00fea033cfa4e3ca7c16253f7f213107d0..c89f92a5e4524f80d95d8910c7786403e9d9ef64 100644 (file)
@@ -181,3 +181,6 @@ msgstr "Paramètres avancés"
 msgid "IDS_ST_HEADER_LOADING_ING_ABB"
 msgstr "Chargement..."
 
+msgid "IDS_ST_BUTTON_OK_ABB6"
+msgstr "OK"
+
index 657bec6bf9754acab9965adbab06ea8f68c76daf..c0c75766bf67fca05c46a6afd2948f7e0322751c 100644 (file)
@@ -181,3 +181,6 @@ msgstr "Paramètres avancés"
 msgid "IDS_ST_HEADER_LOADING_ING_ABB"
 msgstr "Chargement..."
 
+msgid "IDS_ST_BUTTON_OK_ABB6"
+msgstr "OK"
+
index e6837beb51b090a99626822589547fa4b2b5c9f1..0e58503072b48f554a59b194d4c40169ecf9a8f9 100644 (file)
@@ -181,3 +181,6 @@ msgstr "Ardsocruithe"
 msgid "IDS_ST_HEADER_LOADING_ING_ABB"
 msgstr "Ag lódáil..."
 
+msgid "IDS_ST_BUTTON_OK_ABB6"
+msgstr "OK"
+
index 7c66d908ab2fd3d9432d779e7fb533543c5430c1..7e82d9b2ed9af37066bcc45fcc4278d7e17f4de0 100644 (file)
@@ -181,3 +181,6 @@ msgstr "Axustes avanzados"
 msgid "IDS_ST_HEADER_LOADING_ING_ABB"
 msgstr "Cargando..."
 
+msgid "IDS_ST_BUTTON_OK_ABB6"
+msgstr "Aceptar"
+
index be7d72df4c1d588ee491f3a4bde5c019406d4660..a3a56258ec7a9b4e15ca1bcf11e12e7f9f3901ca 100644 (file)
@@ -181,3 +181,6 @@ msgstr "Napredne postavke"
 msgid "IDS_ST_HEADER_LOADING_ING_ABB"
 msgstr "Učitavanje..."
 
+msgid "IDS_ST_BUTTON_OK_ABB6"
+msgstr "U redu"
+
index 18df7a38131d36078c47d7ffea842b6a249f941f..8a198835ac07fbd9bdc1e42f4f93eb6d836af14c 100644 (file)
@@ -181,3 +181,6 @@ msgstr "Speciális beállítások"
 msgid "IDS_ST_HEADER_LOADING_ING_ABB"
 msgstr "Betöltés..."
 
+msgid "IDS_ST_BUTTON_OK_ABB6"
+msgstr "OK"
+
index 31cfcdcdb1f240840a24e8a6988698e8e27324d2..d1ea3636153386f477063731e9e23ad2d1884bfa 100644 (file)
@@ -181,3 +181,6 @@ msgstr "Լրացուցիչ դրվածքներ"
 msgid "IDS_ST_HEADER_LOADING_ING_ABB"
 msgstr "Բեռնվում է..."
 
+msgid "IDS_ST_BUTTON_OK_ABB6"
+msgstr "OK"
+
index f20a8cabf5f1eeac99afc18a50322c8953f43184..6c56a44fa5a8b868fae76fc975bfbe18e4f33595 100644 (file)
@@ -181,3 +181,6 @@ msgstr "Frekari stillingar"
 msgid "IDS_ST_HEADER_LOADING_ING_ABB"
 msgstr "Hleð..."
 
+msgid "IDS_ST_BUTTON_OK_ABB6"
+msgstr "Í lagi"
+
index 008ef0ad964f64df7ba0750248ede52b726ae00c..a3d28120c6d6c95b5f5b7d8f4d55e0f52977f9aa 100644 (file)
@@ -181,3 +181,6 @@ msgstr "Impostazioni avanzate"
 msgid "IDS_ST_HEADER_LOADING_ING_ABB"
 msgstr "Caricamento..."
 
+msgid "IDS_ST_BUTTON_OK_ABB6"
+msgstr "OK"
+
index f4ae5551ee21013b272eb187b2bb888f3d317c42..4aa820540b36986fac80dca3bad1070a904c69a4 100644 (file)
@@ -181,3 +181,6 @@ msgstr "詳細設定"
 msgid "IDS_ST_HEADER_LOADING_ING_ABB"
 msgstr "読み込み中..."
 
+msgid "IDS_ST_BUTTON_OK_ABB6"
+msgstr "OK"
+
index bd7aa7bebfb084ef34c4eeb7c6efea4c3b5afbf1..bae6a1aa6582a905fafedd510dc6840fe44a4964 100644 (file)
@@ -181,3 +181,6 @@ msgstr "დამატებითი პარამეტრები"
 msgid "IDS_ST_HEADER_LOADING_ING_ABB"
 msgstr "იტვირთება…"
 
+msgid "IDS_ST_BUTTON_OK_ABB6"
+msgstr "OK"
+
index 73828900ce667e0e9b2a7f6349ffb20f22206cf2..aa60e9506373f4475101cfae56bd3bc5e07e39b0 100644 (file)
@@ -181,3 +181,6 @@ msgstr "Қосымша параметрлер"
 msgid "IDS_ST_HEADER_LOADING_ING_ABB"
 msgstr "Жүктелуде..."
 
+msgid "IDS_ST_BUTTON_OK_ABB6"
+msgstr "OK"
+
index 7b1d98105f2079d995d4fc05f0ef1dbc54c45368..82e8e3ca62071da92e2938185a8625e612ad1c13 100644 (file)
@@ -181,3 +181,6 @@ msgstr "고급 설정"
 msgid "IDS_ST_HEADER_LOADING_ING_ABB"
 msgstr "불러오는 중..."
 
+msgid "IDS_ST_BUTTON_OK_ABB6"
+msgstr "확인"
+
index 11cc885b9a809d3de6dbe7108e1484b49b3ef4e9..2441dd60028ca017e9eb0994c84e2d4bb9502bbf 100644 (file)
@@ -181,3 +181,6 @@ msgstr "Papildomi nustatymai"
 msgid "IDS_ST_HEADER_LOADING_ING_ABB"
 msgstr "Įkeliama..."
 
+msgid "IDS_ST_BUTTON_OK_ABB6"
+msgstr "Gerai"
+
index 251828c1c2683f504a32e16054ebbb92ebc5c1a7..96fcfaef904840df9c3259a01bfab274698c9b31 100644 (file)
@@ -181,3 +181,6 @@ msgstr "Papildu iestatījumi"
 msgid "IDS_ST_HEADER_LOADING_ING_ABB"
 msgstr "Ielādē..."
 
+msgid "IDS_ST_BUTTON_OK_ABB6"
+msgstr "Labi"
+
index d8fac16aa47248ace244b0beff3ca13a1bfee9b4..612e1b7875f260524649b9a6008d860ace3fffef 100644 (file)
@@ -181,3 +181,6 @@ msgstr "Напредни поставувања"
 msgid "IDS_ST_HEADER_LOADING_ING_ABB"
 msgstr "Се вчитува..."
 
+msgid "IDS_ST_BUTTON_OK_ABB6"
+msgstr "OK"
+
index 5b3fb045e391575afb22d059b181a4b9e1fa3f5c..3d9a0645978380083b599cbd5f1e6016f5927a21 100644 (file)
@@ -181,3 +181,6 @@ msgstr "Avanserte innstillinger"
 msgid "IDS_ST_HEADER_LOADING_ING_ABB"
 msgstr "Laster ..."
 
+msgid "IDS_ST_BUTTON_OK_ABB6"
+msgstr "OK"
+
index f8eff2dc6fd372e02231af9196fd3f5d8759219e..23ee6225944e8916f1a8f9e3dfc5a23b6e9233ae 100644 (file)
@@ -181,3 +181,6 @@ msgstr "Geavanceerde instellingen"
 msgid "IDS_ST_HEADER_LOADING_ING_ABB"
 msgstr "Laden..."
 
+msgid "IDS_ST_BUTTON_OK_ABB6"
+msgstr "OK"
+
index b3799892ab7ba7c5f4c3feb9758ab839711c5ab6..2d887e70f47c05881efd4047cfdd7f99022d2d35 100644 (file)
@@ -181,3 +181,6 @@ msgstr "Ustawienia zaawansowane"
 msgid "IDS_ST_HEADER_LOADING_ING_ABB"
 msgstr "Ładowanie..."
 
+msgid "IDS_ST_BUTTON_OK_ABB6"
+msgstr "OK"
+
index 1527b970fc683ae9deb77c89c3ad9d154acab834..9b3c7bfdd4c3cfa629936287d09cfac5f948f9f9 100644 (file)
@@ -181,3 +181,6 @@ msgstr "Configurações avançadas"
 msgid "IDS_ST_HEADER_LOADING_ING_ABB"
 msgstr "Carregando..."
 
+msgid "IDS_ST_BUTTON_OK_ABB6"
+msgstr "OK"
+
index 7a5aeda754af33a3fe63bd929f0faa1d4fcaf02c..64e5659013dfc59bb5a75738f4f7e0743c1cd1b8 100644 (file)
@@ -181,3 +181,6 @@ msgstr "Definições avançadas"
 msgid "IDS_ST_HEADER_LOADING_ING_ABB"
 msgstr "A carregar..."
 
+msgid "IDS_ST_BUTTON_OK_ABB6"
+msgstr "OK"
+
index 571ad1779fce4259876046799d08851f6b5c48e9..5d8e4d91038779c95f8d70b03f58038f00db3b37 100644 (file)
@@ -181,3 +181,6 @@ msgstr "Setări avansate"
 msgid "IDS_ST_HEADER_LOADING_ING_ABB"
 msgstr "Se încarcă..."
 
+msgid "IDS_ST_BUTTON_OK_ABB6"
+msgstr "OK"
+
index 450f3ae92ea365b9fddd70e132a44e4d2cdda95f..40ea55c9517f96d490fca4684d9a52c42e0f2559 100644 (file)
@@ -181,3 +181,6 @@ msgstr "Дополнительные параметры"
 msgid "IDS_ST_HEADER_LOADING_ING_ABB"
 msgstr "Загрузка..."
 
+msgid "IDS_ST_BUTTON_OK_ABB6"
+msgstr "OK"
+
index 326ea01395d14ed8e73960578a385ae71bc69f4c..4d391706812b49d0c7c4a1ba12557d801c6eb5cf 100644 (file)
@@ -181,3 +181,6 @@ msgstr "Rozšírené nastavenia"
 msgid "IDS_ST_HEADER_LOADING_ING_ABB"
 msgstr "Načítava sa..."
 
+msgid "IDS_ST_BUTTON_OK_ABB6"
+msgstr "OK"
+
index 0ec31d1dba26b7c1b8b1fa80c5db520ac4b9bfb6..b2cee23459eb13cd413e07ecfc93e48449cda6cb 100644 (file)
@@ -181,3 +181,6 @@ msgstr "Dodatne nastavitve"
 msgid "IDS_ST_HEADER_LOADING_ING_ABB"
 msgstr "Nalaganje ..."
 
+msgid "IDS_ST_BUTTON_OK_ABB6"
+msgstr "V REDU"
+
index dbf13a39edcaedada94d3c0403b5f06e55e33dd2..41fde6730c5a73b930f9c1457c0843d39cd27474 100644 (file)
@@ -181,3 +181,6 @@ msgstr "Napredna podešavanja"
 msgid "IDS_ST_HEADER_LOADING_ING_ABB"
 msgstr "Učitavanje..."
 
+msgid "IDS_ST_BUTTON_OK_ABB6"
+msgstr "OK"
+
index 28ff97ae87c8e269547b98163044ac51a85e928e..3f3a49d1ddfa3509448278f91b3454c4c8fde15a 100644 (file)
@@ -181,3 +181,6 @@ msgstr "Avancerade inställningar"
 msgid "IDS_ST_HEADER_LOADING_ING_ABB"
 msgstr "Laddar..."
 
+msgid "IDS_ST_BUTTON_OK_ABB6"
+msgstr "OK"
+
index 7b2d4de7f2bd4064317d01ebfdaccdce85e5c0e9..6bf70e8daad37077fa056a22e3fbd7f9cb9199d6 100644 (file)
@@ -181,3 +181,6 @@ msgstr "Gelişmiş ayarlar"
 msgid "IDS_ST_HEADER_LOADING_ING_ABB"
 msgstr "Yükleniyor..."
 
+msgid "IDS_ST_BUTTON_OK_ABB6"
+msgstr "Tamam"
+
index 2a77229a89890b32b6be49e4a9581bb3c97ba383..3b49032ebd1bacd2f94efe2a0552e37480e8b03b 100644 (file)
@@ -181,3 +181,6 @@ msgstr "Додаткові налаштування"
 msgid "IDS_ST_HEADER_LOADING_ING_ABB"
 msgstr "Завантаження..."
 
+msgid "IDS_ST_BUTTON_OK_ABB6"
+msgstr "OK"
+
index 8a6a343299b0247ca0a7625ced5d1a0374234809..369c36dede4e4ae55adaebb5f1c37ad81c436d95 100644 (file)
@@ -181,3 +181,6 @@ msgstr "Qo‘shimcha parametrlar"
 msgid "IDS_ST_HEADER_LOADING_ING_ABB"
 msgstr "Yuklanmoqda..."
 
+msgid "IDS_ST_BUTTON_OK_ABB6"
+msgstr "OK"
+
index 2ac5b0819433b6c8c309f98ef1423d34f59aa715..e703eaaec7a333fc5fa49d119b7ed30dac643ec7 100644 (file)
@@ -181,3 +181,6 @@ msgstr "高级设置"
 msgid "IDS_ST_HEADER_LOADING_ING_ABB"
 msgstr "载入中…"
 
+msgid "IDS_ST_BUTTON_OK_ABB6"
+msgstr "确定"
+
index b7e8403c63c0cb0d34dcde3d1aebbb9a0d9031b2..295aae97dde8bea6e9fe0ab9b168d6af62cd9f04 100644 (file)
@@ -181,3 +181,6 @@ msgstr "進階設定"
 msgid "IDS_ST_HEADER_LOADING_ING_ABB"
 msgstr "正在載入..."
 
+msgid "IDS_ST_BUTTON_OK_ABB6"
+msgstr "確定"
+
index 7db9eb46c1f41098037e2c27b98377e5ca69b2eb..632a68c78a726fe3f07546f0b6935ec92bd21ccc 100644 (file)
@@ -181,3 +181,6 @@ msgstr "進階設定"
 msgid "IDS_ST_HEADER_LOADING_ING_ABB"
 msgstr "正在載入..."
 
+msgid "IDS_ST_BUTTON_OK_ABB6"
+msgstr "確定"
+
index c906a063015469e4a84bba03d2cbd94377dc9f75..13a4ca5e3ceb2704383ce25bf732e73177d59b9f 100755 (executable)
 #include "allowed-calls.h"
 #include <Evas.h>
 
+#include <app_preference.h>
 #include <Elementary.h>
 #include "log.h"
 #include "common-efl.h"
+#include <notification_setting_internal.h>
+
+#define PREF_PREFX "db/private/org.tizen.setting-notification/"
+#define DO_NOT_SHOW_CONTACT_POPUP_AGAIN     PREF_PREFX "/do_not_show_contact_popup_again"
+#define DO_NOT_SHOW_FAVORITE_POPUP_AGAIN    PREF_PREFX "/do_not_show_favorite_popup_again"
+#define DO_NOT_SHOW_NOBODY_POPUP_AGAIN      PREF_PREFX "/do_not_show_nobody_popup_again"
+
+bool check_state = false;
 
 static char *items[4] = {
-    "IDS_QP_TAB4_ALL_M_RECEIVED_ALL",
+    "IDS_ST_MBODY_EVERYONE_ABB",
     "IDS_CST_OPT_CONTACTS_ONLY",
     "IDS_ST_MBODY_FAVOURITE_CONTACTS_ONLY_ABB",
-    "IDS_QP_TAB4_NONE_M_BLOCEKD"
+    "IDS_ST_MBODY_NOBODY_ABB"
 };
 
+static void set_do_not_show_contact_popup_again(bool value)
+{
+    preference_set_boolean(DO_NOT_SHOW_CONTACT_POPUP_AGAIN, value);
+}
+
+static bool get_do_not_show_contact_popup_again()
+{
+    bool value = false;
+    preference_get_boolean(DO_NOT_SHOW_CONTACT_POPUP_AGAIN, &value);
+    return value;
+}
+
+static bool is_existing_do_not_show_contact_popup_again()
+{
+    bool value = false;
+    preference_is_existing(DO_NOT_SHOW_CONTACT_POPUP_AGAIN, &value);
+    return value;
+}
+
+static void set_do_not_show_favorite_popup_again(bool value)
+{
+    preference_set_boolean(DO_NOT_SHOW_FAVORITE_POPUP_AGAIN, value);
+}
+
+static bool get_do_not_show_favorite_popup_again()
+{
+    bool value = false;
+    preference_get_boolean(DO_NOT_SHOW_FAVORITE_POPUP_AGAIN, &value);
+    return value;
+}
+
+static bool is_existing_do_not_show_favorite_popup_again()
+{
+    bool value = false;
+    preference_is_existing(DO_NOT_SHOW_FAVORITE_POPUP_AGAIN, &value);
+    return value;
+}
+
+static void set_do_not_show_nobody_popup_again(bool value)
+{
+    preference_set_boolean(DO_NOT_SHOW_NOBODY_POPUP_AGAIN, value);
+}
+
+static bool get_do_not_show_nobody_popup_again()
+{
+    bool value = false;
+    preference_get_boolean(DO_NOT_SHOW_NOBODY_POPUP_AGAIN, &value);
+    return value;
+}
+
+static bool is_existing_do_not_show_nobody_popup_again()
+{
+    bool value = false;
+    preference_is_existing(DO_NOT_SHOW_NOBODY_POPUP_AGAIN, &value);
+    return value;
+}
+
+const char *get_allowed_calls_string()
+{
+    NOTISET_TRACE_BEGIN;
+    int value = 0;
+    notification_system_setting_get_dnd_allow_exceptions(get_system_setting(), NOTIFICATION_DND_ALLOWED_CALLS, &value);
+    return items[value];
+}
+
 static void popup_hide_cb(void *data, Evas_Object *obj, void *event_info)
 {
     evas_object_del(obj);
@@ -36,16 +110,42 @@ static void popup_hide_cb(void *data, Evas_Object *obj, void *event_info)
 
 static char *gl_text_get_cb(void *data, Evas_Object *obj, const char *part)
 {
-    int index = (int)data;
-    return strdup(APP_STRING(items[index]));
+    if(!strcmp(part, "elm.text"))
+    {
+        int index = (int)data;
+        return strdup(APP_STRING(items[index]));
+    }
+    return NULL;
 }
 
 static void popup_btn_clicked_cb(void *data, Evas_Object *obj, void *event_info)
 {
     NOTISET_TRACE_BEGIN;
     Evas_Object *popup = data;
-    //TODO: need to be implemented after API appear
     evas_object_del(popup);
+
+    if(check_state)
+    {
+        int value = 0;
+        notification_system_setting_get_dnd_allow_exceptions(get_system_setting(), NOTIFICATION_DND_ALLOWED_CALLS, &value);
+        if(value == NOTIFICATION_DND_ALLOWED_CALLS_CONTACT)
+            set_do_not_show_contact_popup_again(false);
+        else if(value == NOTIFICATION_DND_ALLOWED_CALLS_FAVORITE)
+            set_do_not_show_favorite_popup_again(false);
+        else
+            set_do_not_show_nobody_popup_again(false);
+    }
+}
+
+static void popup_check_item_clicked_cb(void *data, Evas_Object *obj, void *event_info)
+{
+    NOTISET_TRACE_BEGIN;
+    check_state = elm_check_state_get(obj);
+}
+
+static void update_allowed_calls_item()
+{
+    elm_genlist_item_update(elm_genlist_item_prev_get(elm_genlist_last_item_get(get_app_ui_data()->list_main)));
 }
 
 static void create_reject_calls_popup(const char *title_text, const char *content)
@@ -68,8 +168,6 @@ static void create_reject_calls_popup(const char *title_text, const char *conten
     evas_object_size_hint_weight_set(popup, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
 
     eext_object_event_callback_add(popup, EEXT_CALLBACK_BACK, popup_hide_cb, NULL);
-    evas_object_smart_callback_add(popup, "dismissed", popup_hide_cb, NULL);
-    evas_object_smart_callback_add(popup, "block,clicked", popup_hide_cb, NULL);
 
     /* layout */
     layout = elm_layout_add(popup);
@@ -86,7 +184,7 @@ static void create_reject_calls_popup(const char *title_text, const char *conten
     /* ok button */
     btn = elm_button_add(popup);
     elm_object_style_set(btn, "bottom");
-    elm_object_text_set(btn, APP_STRING("IDS_TPLATFORM_ACBUTTON_DONE_ABB"));
+    elm_object_text_set(btn, APP_STRING("IDS_ST_BUTTON_OK_ABB6"));
     elm_object_part_content_set(popup, "button1", btn);
     evas_object_smart_callback_add(btn, "clicked", popup_btn_clicked_cb, popup);
 
@@ -94,6 +192,7 @@ static void create_reject_calls_popup(const char *title_text, const char *conten
     check = elm_check_add(popup);
     elm_object_text_set(check, APP_STRING("IDS_ST_OPT_DONT_SHOW_AGAIN_ABB"));
     elm_object_part_content_set(layout, "elm.swallow.end", check);
+    evas_object_smart_callback_add(check, "changed", popup_check_item_clicked_cb, NULL);
 
     /* scroller */
     scroller = elm_scroller_add(layout);
@@ -116,34 +215,55 @@ static void create_reject_calls_popup(const char *title_text, const char *conten
     evas_object_show(popup);
 }
 
-static void all_item_clicked()
+static void everyone_item_clicked()
 {
     NOTISET_TRACE_BEGIN;
-    //TODO: need to be implemented after API appear
+    notification_system_setting_set_dnd_allow_exceptions(get_system_setting(), NOTIFICATION_DND_ALLOWED_CALLS, NOTIFICATION_DND_ALLOWED_CALLS_EVERYONE);
+    update_allowed_calls_item();
 }
 
 static void contacts_only_clicked()
 {
     NOTISET_TRACE_BEGIN;
-    create_reject_calls_popup("IDS_ST_HEADER_REJECT_CALLS_ABB2",
-            "IDS_ST_BODY_INCOMING_CALLS_FROM_CONTACTS_YOU_HAVE_NOT_ALLOWED_WILL_BE_REJECTED_AUTOMATICALLY");
-    //TODO: need to be implemented after API appear
+
+    notification_system_setting_set_dnd_allow_exceptions(get_system_setting(), NOTIFICATION_DND_ALLOWED_CALLS, NOTIFICATION_DND_ALLOWED_CALLS_CONTACT);
+    update_allowed_calls_item();
+
+    if(!is_existing_do_not_show_contact_popup_again())
+        set_do_not_show_contact_popup_again(true);
+
+    if(get_do_not_show_contact_popup_again())
+        create_reject_calls_popup("IDS_ST_HEADER_REJECT_CALLS_ABB2",
+                "IDS_ST_BODY_INCOMING_CALLS_FROM_CONTACTS_YOU_HAVE_NOT_ALLOWED_WILL_BE_REJECTED_AUTOMATICALLY");
 }
 
 static void favorite_contacts_only_clicked()
 {
     NOTISET_TRACE_BEGIN;
-    create_reject_calls_popup("IDS_ST_HEADER_REJECT_CALLS_ABB2",
-            "IDS_ST_BODY_INCOMING_CALLS_FROM_CONTACTS_YOU_HAVE_NOT_ALLOWED_WILL_BE_REJECTED_AUTOMATICALLY");
-    //TODO: need to be implemented after API appear
+
+    notification_system_setting_set_dnd_allow_exceptions(get_system_setting(), NOTIFICATION_DND_ALLOWED_CALLS, NOTIFICATION_DND_ALLOWED_CALLS_FAVORITE);
+    update_allowed_calls_item();
+
+    if(!is_existing_do_not_show_favorite_popup_again())
+        set_do_not_show_favorite_popup_again(true);
+
+    if(get_do_not_show_favorite_popup_again())
+        create_reject_calls_popup("IDS_ST_HEADER_REJECT_CALLS_ABB2",
+                "IDS_ST_BODY_INCOMING_CALLS_FROM_CONTACTS_YOU_HAVE_NOT_ALLOWED_WILL_BE_REJECTED_AUTOMATICALLY");
 }
 
-static void none_item_clicked()
+static void nobody_item_clicked()
 {
     NOTISET_TRACE_BEGIN;
-    create_reject_calls_popup("IDS_ST_HEADER_REJECT_ALL_CALLS_ABB",
-            "IDS_ST_POP_ALL_INCOMING_CALLS_WILL_BE_REJECTED_AUTOMATICALLY");
-    //TODO: need to be implemented after API appear
+
+    notification_system_setting_set_dnd_allow_exceptions(get_system_setting(), NOTIFICATION_DND_ALLOWED_CALLS, NOTIFICATION_DND_ALLOWED_CALLS_NOBODY);
+    update_allowed_calls_item();
+
+    if(!is_existing_do_not_show_nobody_popup_again())
+        set_do_not_show_nobody_popup_again(true);
+
+    if(get_do_not_show_nobody_popup_again())
+        create_reject_calls_popup("IDS_ST_HEADER_REJECT_ALL_CALLS_ABB", "IDS_ST_POP_ALL_INCOMING_CALLS_WILL_BE_REJECTED_AUTOMATICALLY");
 }
 
 static void gl_sel_cb(void *data, Evas_Object *obj, void *event_info)
@@ -156,7 +276,7 @@ static void gl_sel_cb(void *data, Evas_Object *obj, void *event_info)
     switch (index)
     {
         case 0:
-            all_item_clicked();
+            everyone_item_clicked();
             break;
         case 1:
             contacts_only_clicked();
@@ -165,7 +285,7 @@ static void gl_sel_cb(void *data, Evas_Object *obj, void *event_info)
             favorite_contacts_only_clicked();
             break;
         case 3:
-            none_item_clicked();
+            nobody_item_clicked();
             break;
     }
     evas_object_del(popup);
index b8c6a2acd72367911e140bfedc0984e255232cad..3e3be4d4a733e3c56ebad83eb5b932859bc2a621 100755 (executable)
@@ -424,7 +424,7 @@ static char *_gl_option_text_get_cb(void *data, Evas_Object *obj, const char *pa
     {
         if(!strcmp("elm.text.multiline", part))
         {
-            snprintf(buf, sizeof(buf), "<font_size=30>%s</font_size>", APP_STRING("IDS_QP_TAB4_ALL_M_RECEIVED_ALL"));
+            snprintf(buf, sizeof(buf), "<font_size=30>%s</font_size>", APP_STRING(get_allowed_calls_string()));
             return strdup(buf);
         }
         if(!strcmp("elm.text", part))
index 970e70c7a2cf78a37ccb9de210b9ca002100af39..b522b1c43bd08d31d7d7271ddb6a6897a3430716 100755 (executable)
@@ -37,9 +37,8 @@
 void do_not_disturb_append_items_in_list(Evas_Object* genlist)
 {
     append_gl_start_option(genlist, "multiline", "do-not-disturb");
-//    TODO: append when API will be implemented, will be move to final release
     append_gl_start_option(genlist, "multiline", "set-schedule-multiline");
-//    append_gl_start_option(genlist, "multiline", "allowed-calls");
+    append_gl_start_option(genlist, "multiline", "allowed-calls");
     Eina_List *list = eina_list_clone(get_excepted_apps_list());
     Eina_List *allowed_list = eina_list_merge(get_first_excepted_apps_list(), list);
     append_gl_full_item(genlist, do_not_disturb_allowed_apps_cont_cb, allowed_list);
index 7b3c0474e5361347742e2735cfd43730357d7fe5..b95d8adeaef5e442e03f5561533678ae1798f0fe 100755 (executable)
@@ -227,7 +227,7 @@ void set_schedule_check_changed_cb(void *data, Evas_Object *obj, void *event_inf
     bool check = elm_check_state_get(obj);
     enable_time_items(check);
     set_set_schedule(check);//TODO: move saving of settings out of event handler
-    elm_genlist_item_update(elm_genlist_item_prev_get(elm_genlist_last_item_get(ug_main->list_main)));
+    elm_genlist_item_update(elm_genlist_item_next_get(elm_genlist_first_item_get(ug_main->list_main)));
 }
 
 int get_time_format()
@@ -597,7 +597,7 @@ static void close_set_schedule_cb(void *data, Evas_Object *obj, void *event_info
     }
 
     if(update_ui)
-        elm_genlist_item_update(elm_genlist_item_prev_get(elm_genlist_last_item_get(ugd->list_main)));
+        elm_genlist_item_update(elm_genlist_item_next_get(elm_genlist_first_item_get(ugd->list_main)));
 
     elm_naviframe_item_pop(ugd->naviframe);
 }