elementary ecore ${WIN_PKG} ecore-file appcore-efl
capi-base-common
glib-2.0 gobject-2.0 fontconfig libxml-2.0
+ libtzplatform-config
)
SET(pc_requires "capi-base-common")
#include <glib.h>
#include <glib-object.h>
+/* For multi-user support */
+#include <tzplatform_config.h>
+
static void startup(void);
static void cleanup(void);
static void utc_system_settings_set_string_p(void)
{
- int retcode = system_settings_set_value_string(SYSTEM_SETTINGS_KEY_INCOMING_CALL_RINGTONE, "/opt/share/settings/Ringtones/General_Over the horizon.mp3");
+ const char *path_to_mp3 = tzplatform_mkpath(TZ_SYS_SHARE, "settings/Ringtones/General_Over the horizon.mp3");
+
+ int retcode = system_settings_set_value_string(SYSTEM_SETTINGS_KEY_INCOMING_CALL_RINGTONE, path_to_mp3);
if (retcode == SYSTEM_SETTINGS_ERROR_NONE) {
dts_pass(API_NAME_SETTINGS_SET_VALUE_STRING, "passed");
#include <system_settings.h>
#include <system_settings_private.h>
+/* For multi-user support */
+#include <tzplatform_config.h>
+
static void _quit_cb(void *data, Evas_Object* obj, void* event_info)
{
Evas_Object *win = (Evas_Object *) data;
}
void list_item_touch_handler7(void* data, Evas_Object* obj, void* event_info)
{
- char* path = "/opt/usr/media/Images/image16.jpg";
+ const char* path = tzplatform_mkpath(TZ_USER_CONTENT, "Images/image16.jpg");
int ret = system_settings_set_value_string(SYSTEM_SETTINGS_KEY_WALLPAPER_HOME_SCREEN, "/aaa.png");
SETTING_TRACE(">>>>>>>> home screen - error case :: %d ", ret);
void list_item_touch_handler8(void* data, Evas_Object* obj, void* event_info)
{
- char* path = "/opt/usr/media/Images/image16.jpg";
+ const char* path = tzplatform_mkpath(TZ_USER_CONTENT, "Images/image16.jpg");
int ret = system_settings_set_value_string(SYSTEM_SETTINGS_KEY_WALLPAPER_LOCK_SCREEN, "aaa.png");
SETTING_TRACE(">>>>>>>> lock screen - error case : %d ", ret);
SETTING_TRACE(">>>>>>>> get ringtone path - exception case ");
int ret;
char *ringtonepath = NULL;
- //opt/share/settings/Ringtones/Over the horizon.mp3
- ret = system_settings_set_value_string(SYSTEM_SETTINGS_KEY_INCOMING_CALL_RINGTONE, "/opt/share/settings/Ringtones/Over the horizon.mp3");
+ const char *path_to_mp3 = tzplatform_mkpath(TZ_SYS_SHARE, "settings/Ringtones/Over the horizon.mp3");
+
+ ret = system_settings_set_value_string(SYSTEM_SETTINGS_KEY_INCOMING_CALL_RINGTONE, path_to_mp3);
ret = system_settings_get_value_string(SYSTEM_SETTINGS_KEY_INCOMING_CALL_RINGTONE, &ringtonepath);
SETTING_TRACE(" 1 current ringtone path : (%s) ", ringtonepath);
// set the key to the wrong value
Name: capi-system-system-settings
Summary: A System Settings library in Tizen Native API
Version: 0.0.2
-Release: 3
+Release: 0
Group: System/API
License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
-Source1001: %{name}.manifest
-Source1002: %{name}-devel.manifest
+Source1001: %{name}.manifest
+Source1002: %{name}-devel.manifest
BuildRequires: cmake
BuildRequires: pkgconfig(dlog)
BuildRequires: pkgconfig(vconf)
BuildRequires: pkgconfig(gobject-2.0)
BuildRequires: pkgconfig(fontconfig)
BuildRequires: pkgconfig(libxml-2.0)
+BuildRequires: pkgconfig(libtzplatform-config)
%description
A System Settings library in Tizen Native API.
#include <system_settings.h>
#include <system_settings_private.h>
+/* For multi-user support */
+#include <tzplatform_config.h>
+
#define SMALL_FONT_DPI (-80)
#define MIDDLE_FONT_DPI (-100)
#define LARGE_FONT_DPI (-150)
#define HUGE_FONT_DPI (-190)
#define GIANT_FONT_DPI (-250)
-#define SETTING_FONT_CONF_FILE "/opt/etc/fonts/conf.avail/99-slp.conf"
+#define SETTING_FONT_CONF_FILE tzplatform_mkpath(TZ_SYS_ETC, "fonts/conf.avail/99-slp.conf")
#define SETTING_STR_SLP_LEN 256
static char* _get_cur_font();