// Ensure stop status
Stop();
- // reset SystemInformation
- ResetSystemInformation();
-
// set to NULL first as we do not want any access to Adaptor as it is being destroyed.
gThreadLocalAdaptor = NULL;
void SetupSystemInformation();
/**
- * Reset up system information if needs
- */
- void ResetSystemInformation();
-
- /**
* Adds a callback to be run when entering an idle state.
*
* A callback of the following type should be used:
// EXTERNAL INCLUDES
#include <app_common.h>
#include <system_settings.h>
-#include <vconf.h>
#ifdef APPCORE_WATCH_AVAILABLE
#include <screen_connector_provider.h>
namespace
{
-static void OnSystemLanguageChanged( keynode_t *key, void* data )
+static void OnSystemLanguageChanged( system_settings_key_e key, void* data )
{
char* locale = NULL;
if( system_settings_get_value_string( SYSTEM_SETTINGS_KEY_LOCALE_LANGUAGE, &locale ) != SYSTEM_SETTINGS_ERROR_NONE ||
void Adaptor::SetupSystemInformation()
{
- if( vconf_notify_key_changed( VCONFKEY_LANGSET, OnSystemLanguageChanged, this ) < 0)
+ if( system_settings_add_changed_cb( SYSTEM_SETTINGS_KEY_LOCALE_LANGUAGE, OnSystemLanguageChanged, this ) != SYSTEM_SETTINGS_ERROR_NONE )
{
- DALI_LOG_ERROR( "DALI system_settings_set_changed_cb failed.\n" );
+ DALI_LOG_ERROR( "DALI system_settings_add_changed_cb failed.\n" );
return;
}
}
-void Adaptor::ResetSystemInformation()
-{
- vconf_ignore_key_changed( VCONFKEY_LANGSET, OnSystemLanguageChanged );
-}
-
} // namespace Adaptor
} // namespace Internal