* @brief Enumeration for system settings error.
* @since_tizen 2.3
*/
-typedef enum
-{
+typedef enum {
SYSTEM_SETTINGS_ERROR_NONE = TIZEN_ERROR_NONE, /**< Successful */
SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER = TIZEN_ERROR_INVALID_PARAMETER, /**< Invalid parameter */
SYSTEM_SETTINGS_ERROR_OUT_OF_MEMORY = TIZEN_ERROR_OUT_OF_MEMORY, /**< Out of memory */
* @since_tizen 2.3
*/
typedef enum {
- SYSTEM_SETTINGS_KEY_INCOMING_CALL_RINGTONE, /**< (string) The file path of the current ringtone */
- SYSTEM_SETTINGS_KEY_WALLPAPER_HOME_SCREEN, /**< (string) The file path of the current home screen wallpaper */
- SYSTEM_SETTINGS_KEY_WALLPAPER_LOCK_SCREEN, /**< (string) The file path of the current lock screen wallpaper */
- SYSTEM_SETTINGS_KEY_FONT_SIZE, /**< (int) The current system font size */
- SYSTEM_SETTINGS_KEY_FONT_TYPE, /**< (string) The current system font type */
-
- SYSTEM_SETTINGS_KEY_MOTION_ACTIVATION, /**< (bool) Indicates whether the motion service is activated */
- SYSTEM_SETTINGS_KEY_EMAIL_ALERT_RINGTONE, /**< (string) The file path of the current email alert ringtone */
- SYSTEM_SETTINGS_KEY_USB_DEBUGGING_ENABLED, /**< (bool) Indicates whether the USB debugging is enabled (Since @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif) */
- SYSTEM_SETTINGS_KEY_3G_DATA_NETWORK_ENABLED, /**< bool) Indicates whether the 3G data network is enabled (Since @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif) */
- SYSTEM_SETTINGS_KEY_LOCKSCREEN_APP = SYSTEM_SETTINGS_KEY_3G_DATA_NETWORK_ENABLED+2, /**< (string) Indicates lockscreen app pkg name */
-
- SYSTEM_SETTINGS_KEY_DEFAULT_FONT_TYPE,/**< (string) The current system default font type (only support Get) */
- SYSTEM_SETTINGS_KEY_LOCALE_COUNTRY, /**< (string) Indicates the current country setting in the <LANGUAGE>_<REGION> syntax. The country setting is in the ISO 639-2 format, and the region setting is in the ISO 3166-1 alpha-2 format */
- SYSTEM_SETTINGS_KEY_LOCALE_LANGUAGE, /**< (string) Indicates the current language setting in the <LANGUAGE>_<REGION> syntax. The language setting is in the ISO 639-2 format and the region setting is in the ISO 3166-1 alpha-2 format. */
- SYSTEM_SETTINGS_KEY_LOCALE_TIMEFORMAT_24HOUR, /**< (bool) Indicates whether the 24-hour clock is used. If the value is @c false, the 12-hour clock is used. */
- SYSTEM_SETTINGS_KEY_LOCALE_TIMEZONE, /**< (string) Indicates the current time zone. */
-
- SYSTEM_SETTINGS_KEY_TIME_CHANGED, /**< (int) Once System changes time, this event occurs to notify time change. */
- SYSTEM_SETTINGS_KEY_SOUND_LOCK, /**< GET (bool) Indicates whether the screen lock sound is enabled on the device. ex) LCD on/off sound */
- SYSTEM_SETTINGS_KEY_SOUND_SILENT_MODE, /**< GET (bool) Indicates whether the device is in the silent mode. */
- SYSTEM_SETTINGS_KEY_SOUND_TOUCH, /**< GET (bool) Indicates whether the screen touch sound is enabled on the device. */
- SYSTEM_SETTINGS_KEY_DISPLAY_SCREEN_ROTATION_AUTO, /**< GET (bool) Indicates whether rotation control is automatic.*/
-
- SYSTEM_SETTINGS_KEY_DEVICE_NAME, /**< GET (string) Indicates device name. */
- SYSTEM_SETTINGS_KEY_MOTION_ENABLED, /**< GET (bool) Indicates whether the device user has enabled the motion feature. */
- SYSTEM_SETTINGS_KEY_NETWORK_WIFI_NOTIFICATION, /**< GET (bool) Indicates whether Wi-Fi-related notifications are enabled on the device. */
- SYSTEM_SETTINGS_KEY_NETWORK_FLIGHT_MODE, /**< GET (bool) Indicates whether the device is in the flight mode. */
- SYSTEM_SETTINGS_KEY_SCREEN_BACKLIGHT_TIME, /**< (int) Indicates the backlight time (in seconds). @internal The following values can be used: 15, 30, 60, 120, 300, and 600. */
-
- SYSTEM_SETTINGS_KEY_SOUND_NOTIFICATION, /**< (string) Indicates the file path of the current notification tone set by the user. */
- SYSTEM_SETTINGS_KEY_SOUND_NOTIFICATION_REPETITION_PERIOD, /**< (int) Indicates the time period for notification repetitions. */
- SYSTEM_SETTINGS_KEY_LOCK_STATE, /**< (int) Indicates the current lock state */
- SYSTEM_SETTINGS_KEY_MAX,
+ SYSTEM_SETTINGS_KEY_INCOMING_CALL_RINGTONE, /**< (string) The file path of the current ringtone */
+ SYSTEM_SETTINGS_KEY_WALLPAPER_HOME_SCREEN, /**< (string) The file path of the current home screen wallpaper */
+ SYSTEM_SETTINGS_KEY_WALLPAPER_LOCK_SCREEN, /**< (string) The file path of the current lock screen wallpaper */
+ SYSTEM_SETTINGS_KEY_FONT_SIZE, /**< (int) The current system font size */
+ SYSTEM_SETTINGS_KEY_FONT_TYPE, /**< (string) The current system font type */
+
+ SYSTEM_SETTINGS_KEY_MOTION_ACTIVATION, /**< (bool) Indicates whether the motion service is activated */
+ SYSTEM_SETTINGS_KEY_EMAIL_ALERT_RINGTONE, /**< (string) The file path of the current email alert ringtone */
+ SYSTEM_SETTINGS_KEY_USB_DEBUGGING_ENABLED, /**< (bool) Indicates whether the USB debugging is enabled (Since @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif) */
+ SYSTEM_SETTINGS_KEY_3G_DATA_NETWORK_ENABLED, /**< bool) Indicates whether the 3G data network is enabled (Since @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif) */
+ SYSTEM_SETTINGS_KEY_LOCKSCREEN_APP = SYSTEM_SETTINGS_KEY_3G_DATA_NETWORK_ENABLED+2, /**< (string) Indicates lockscreen app pkg name */
+
+ SYSTEM_SETTINGS_KEY_DEFAULT_FONT_TYPE,/**< (string) The current system default font type (only support Get) */
+ SYSTEM_SETTINGS_KEY_LOCALE_COUNTRY, /**< (string) Indicates the current country setting in the <LANGUAGE>_<REGION> syntax. The country setting is in the ISO 639-2 format, and the region setting is in the ISO 3166-1 alpha-2 format */
+ SYSTEM_SETTINGS_KEY_LOCALE_LANGUAGE, /**< (string) Indicates the current language setting in the <LANGUAGE>_<REGION> syntax. The language setting is in the ISO 639-2 format and the region setting is in the ISO 3166-1 alpha-2 format. */
+ SYSTEM_SETTINGS_KEY_LOCALE_TIMEFORMAT_24HOUR, /**< (bool) Indicates whether the 24-hour clock is used. If the value is @c false, the 12-hour clock is used. */
+ SYSTEM_SETTINGS_KEY_LOCALE_TIMEZONE, /**< (string) Indicates the current time zone. */
+
+ SYSTEM_SETTINGS_KEY_TIME_CHANGED, /**< (int) Once System changes time, this event occurs to notify time change. */
+ SYSTEM_SETTINGS_KEY_SOUND_LOCK, /**< GET (bool) Indicates whether the screen lock sound is enabled on the device. ex) LCD on/off sound */
+ SYSTEM_SETTINGS_KEY_SOUND_SILENT_MODE, /**< GET (bool) Indicates whether the device is in the silent mode. */
+ SYSTEM_SETTINGS_KEY_SOUND_TOUCH, /**< GET (bool) Indicates whether the screen touch sound is enabled on the device. */
+ SYSTEM_SETTINGS_KEY_DISPLAY_SCREEN_ROTATION_AUTO, /**< GET (bool) Indicates whether rotation control is automatic.*/
+
+ SYSTEM_SETTINGS_KEY_DEVICE_NAME, /**< GET (string) Indicates device name. */
+ SYSTEM_SETTINGS_KEY_MOTION_ENABLED, /**< GET (bool) Indicates whether the device user has enabled the motion feature. */
+ SYSTEM_SETTINGS_KEY_NETWORK_WIFI_NOTIFICATION, /**< GET (bool) Indicates whether Wi-Fi-related notifications are enabled on the device. */
+ SYSTEM_SETTINGS_KEY_NETWORK_FLIGHT_MODE, /**< GET (bool) Indicates whether the device is in the flight mode. */
+ SYSTEM_SETTINGS_KEY_SCREEN_BACKLIGHT_TIME, /**< (int) Indicates the backlight time (in seconds). @internal The following values can be used: 15, 30, 60, 120, 300, and 600. */
+
+ SYSTEM_SETTINGS_KEY_SOUND_NOTIFICATION, /**< (string) Indicates the file path of the current notification tone set by the user. */
+ SYSTEM_SETTINGS_KEY_SOUND_NOTIFICATION_REPETITION_PERIOD, /**< (int) Indicates the time period for notification repetitions. */
+ SYSTEM_SETTINGS_KEY_LOCK_STATE, /**< (int) Indicates the current lock state */
+ SYSTEM_SETTINGS_KEY_MAX,
} system_settings_key_e;
* @since_tizen 2.3.1
*/
typedef enum {
- SYSTEM_SETTINGS_LOCK_STATE_UNLOCK = 0, /**< Device is unlocked */
- SYSTEM_SETTINGS_LOCK_STATE_LOCK, /**< Device is locked */
- SYSTEM_SETTINGS_LOCK_STATE_LAUNCHING_LOCK /**< Device is being locked */
+ SYSTEM_SETTINGS_LOCK_STATE_UNLOCK = 0, /**< Device is unlocked */
+ SYSTEM_SETTINGS_LOCK_STATE_LOCK, /**< Device is locked */
+ SYSTEM_SETTINGS_LOCK_STATE_LAUNCHING_LOCK /**< Device is being locked */
} system_settings_idle_lock_state_e;
* @since_tizen 2.3
*/
typedef enum {
- SYSTEM_SETTINGS_FONT_SIZE_SMALL = 0, /**< A small size */
- SYSTEM_SETTINGS_FONT_SIZE_NORMAL, /**< A normal size */
- SYSTEM_SETTINGS_FONT_SIZE_LARGE, /**< A large size */
- SYSTEM_SETTINGS_FONT_SIZE_HUGE, /**< A huge size */
- SYSTEM_SETTINGS_FONT_SIZE_GIANT, /**< A giant size */
+ SYSTEM_SETTINGS_FONT_SIZE_SMALL = 0, /**< A small size */
+ SYSTEM_SETTINGS_FONT_SIZE_NORMAL, /**< A normal size */
+ SYSTEM_SETTINGS_FONT_SIZE_LARGE, /**< A large size */
+ SYSTEM_SETTINGS_FONT_SIZE_HUGE, /**< A huge size */
+ SYSTEM_SETTINGS_FONT_SIZE_GIANT, /**< A giant size */
} system_settings_font_size_e;
#include <fontconfig/fontconfig.h>
-//#include <pkgmgr-info.h>
+/*#include <pkgmgr-info.h> */
#include <Elementary.h>
#include <Evas.h>
SETTING_TRACE("found the file %s", path);
return 0;
} else {
- // error code : 13
+ /* error code : 13 */
SETTING_TRACE("found the file %s --- error code : %d ", path, errno);
- return -errno;
+ return -errno;
}
}
bool __is_supported_image_type_load(char *path)
{
SETTING_TRACE_BEGIN;
- //evas_init();
+ /*evas_init(); */
ecore_evas_init();
Ecore_Evas *ee;
Evas *evas;
if (system_setting_get_extended_wallpaper_num(dirp->d_name, &temp_image_num)
!= SYSTEM_SETTINGS_ERROR_NONE) {
- if(dp)
+ if (dp)
closedir(dp);
return SYSTEM_SETTINGS_ERROR_IO_ERROR;
}
image_count++;
}
- if(dp)
+ if (dp)
closedir(dp);
/* Numbering rule: Gear is odd number */
/* I will set english as default family language. */
/* If there is no proper family language for current locale, */
/* we have to show the english family name. */
- if (!strcmp((char*)lang, "en")) {
+ if (!strcmp((char *)lang, "en")) {
family_result = (char *)family;
}
id++;
}
switch (vconf_value) {
- case SYSTEM_SETTINGS_FONT_SIZE_SMALL:
- font_size = SMALL_FONT_DPI;
- break;
- case SYSTEM_SETTINGS_FONT_SIZE_NORMAL:
- font_size = MIDDLE_FONT_DPI;
- break;
- case SYSTEM_SETTINGS_FONT_SIZE_LARGE:
- font_size = LARGE_FONT_DPI;
- break;
- case SYSTEM_SETTINGS_FONT_SIZE_HUGE:
- font_size = HUGE_FONT_DPI;
- break;
- case SYSTEM_SETTINGS_FONT_SIZE_GIANT:
- font_size = GIANT_FONT_DPI;
- break;
- default:
- font_size = MIDDLE_FONT_DPI;
- break;
+ case SYSTEM_SETTINGS_FONT_SIZE_SMALL:
+ font_size = SMALL_FONT_DPI;
+ break;
+ case SYSTEM_SETTINGS_FONT_SIZE_NORMAL:
+ font_size = MIDDLE_FONT_DPI;
+ break;
+ case SYSTEM_SETTINGS_FONT_SIZE_LARGE:
+ font_size = LARGE_FONT_DPI;
+ break;
+ case SYSTEM_SETTINGS_FONT_SIZE_HUGE:
+ font_size = HUGE_FONT_DPI;
+ break;
+ case SYSTEM_SETTINGS_FONT_SIZE_GIANT:
+ font_size = GIANT_FONT_DPI;
+ break;
+ default:
+ font_size = MIDDLE_FONT_DPI;
+ break;
}
return font_size;
}