Change runtim-info keys to system-settings keys to apply vconf-internal-keys changes 63/42963/1 accepted/tizen/mobile/20150708.015045 accepted/tizen/tv/20150708.015143 accepted/tizen/wearable/20150708.015236 submit/tizen/20150702.103311
authorJoonghyun Cho <jh5.cho@samsung.com>
Mon, 6 Jul 2015 10:22:05 +0000 (19:22 +0900)
committerJoonghyun Cho <jh5.cho@samsung.com>
Mon, 6 Jul 2015 10:22:33 +0000 (19:22 +0900)
Change-Id: I7c9c6db6d363bffcf6bcdd1b5ceaafb9a0a12f8b

packaging/wrt.spec
src/common/CMakeLists.txt
src/common/locale_manager.cc

index ebbb1d3..4cf20db 100755 (executable)
@@ -31,7 +31,7 @@ BuildRequires: pkgconfig(manifest-handlers)
 BuildRequires: pkgconfig(capi-appfw-package-manager)
 BuildRequires: pkgconfig(efl-assist)
 BuildRequires: pkgconfig(deviced)
-BuildRequires: pkgconfig(capi-system-runtime-info)
+BuildRequires: pkgconfig(capi-system-system-settings)
 BuildRequires: pkgconfig(cert-svc)
 BuildRequires: pkgconfig(uuid)
 BuildRequires: pkgconfig(gio-2.0)
index f107499..3599f4d 100755 (executable)
@@ -19,7 +19,7 @@ PKG_CHECK_MODULES(TARGET_COMMON_STATIC_DEPS
   gio-2.0
   dlog
   capi-appfw-package-manager
-  capi-system-runtime-info
+  capi-system-system-settings
   capi-appfw-application
   aul
   appsvc
index cbf3a98..d31956c 100755 (executable)
@@ -16,7 +16,7 @@
 
 #include "common/locale_manager.h"
 
-#include <runtime_info.h>
+#include <system_settings.h>
 #include <memory>
 #include <algorithm>
 
@@ -46,18 +46,18 @@ LocaleManager::LocaleManager() {
 }
 
 LocaleManager::~LocaleManager() {
-  runtime_info_unset_changed_cb(RUNTIME_INFO_KEY_LANGUAGE);
+  system_settings_unset_changed_cb(SYSTEM_SETTINGS_KEY_LOCALE_LANGUAGE);
 }
 
 void LocaleManager::EnableAutoUpdate(bool enable) {
   if (enable) {
-    auto callback = [](runtime_info_key_e, void* user_data) {
+    auto callback = [](system_settings_key_e, void* user_data) {
         LocaleManager* locale = static_cast<LocaleManager*>(user_data);
         locale->UpdateSystemLocale();
     };
-    runtime_info_set_changed_cb(RUNTIME_INFO_KEY_LANGUAGE, callback, this);
+    system_settings_set_changed_cb(SYSTEM_SETTINGS_KEY_LOCALE_LANGUAGE, callback, this);
   } else {
-    runtime_info_unset_changed_cb(RUNTIME_INFO_KEY_LANGUAGE);
+    system_settings_unset_changed_cb(SYSTEM_SETTINGS_KEY_LOCALE_LANGUAGE);
   }
 }
 
@@ -74,8 +74,8 @@ void LocaleManager::SetDefaultLocale(const std::string& locale) {
 
 void LocaleManager::UpdateSystemLocale() {
   char* str = NULL;
-  if (RUNTIME_INFO_ERROR_NONE !=
-      runtime_info_get_value_string(RUNTIME_INFO_KEY_LANGUAGE, &str)
+  if (SYSTEM_SETTINGS_ERROR_NONE !=
+      system_settings_get_value_string(SYSTEM_SETTINGS_KEY_LOCALE_LANGUAGE, &str)
      || str == NULL) {
     return;
   }