* @brief Enumeration for the battery level status.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*/
-typedef enum
-{
+typedef enum {
DEVICE_BATTERY_LEVEL_EMPTY = 0, /**< The battery goes empty. Prepare for the safe termination of the application, because the device starts a shutdown process soon after entering this level. */
DEVICE_BATTERY_LEVEL_CRITICAL, /**< The battery charge is at a critical state. You may have to stop using multimedia features, because they are not guaranteed to work correctly at this battery status. */
DEVICE_BATTERY_LEVEL_LOW, /**< The battery has little charge left. */
* @brief Enumeration for the device state callback.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*/
-typedef enum
-{
+typedef enum {
DEVICE_CALLBACK_BATTERY_CAPACITY, /**< Called when a battery charge percentage is changed */
DEVICE_CALLBACK_BATTERY_LEVEL, /**< Called when a battery level is changed */
DEVICE_CALLBACK_BATTERY_CHARGING, /**< Called when battery charging state is changed */
* @brief Enumerations of error code for Device.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*/
-typedef enum
-{
+typedef enum {
DEVICE_ERROR_NONE = TIZEN_ERROR_NONE, /**< Successful */
DEVICE_ERROR_OPERATION_FAILED = TIZEN_ERROR_NOT_PERMITTED, /**< Operation not permitted */
DEVICE_ERROR_PERMISSION_DENIED = TIZEN_ERROR_PERMISSION_DENIED, /**< Permission denied */
/**
* @brief Enumerations of the battery warning status
*/
-typedef enum
-{
+typedef enum {
DEVICE_BATTERY_WARN_EMPTY, /**< The battery goes empty. Prepare for the safe termination of the application, because the device starts a shutdown process soon after entering this level. */
DEVICE_BATTERY_WARN_CRITICAL, /**< The battery charge is at a critical state. You may have to stop using multimedia features, because they are not guaranteed to work correctly at this battery status. */
DEVICE_BATTERY_WARN_LOW, /**< The battery has little charge left. */
/**
* @brief Enumerations of the battery remaining time type
*/
-typedef enum
-{
+typedef enum {
DEVICE_BATTERY_REMAINING_TIME_TO_FULLY_CHARGED,
DEVICE_BATTERY_REMAINING_TIME_TO_DISCHARGED
} device_battery_remaining_time_type_e;
/**
* @brief Enumerations of the battery level status
*/
-typedef enum
-{
+typedef enum {
DEVICE_BATTERY_LEVEL_EMPTY = 0, /**< The battery goes empty. Prepare for the safe termination of the application, because the device starts a shutdown process soon after entering this level. */
DEVICE_BATTERY_LEVEL_CRITICAL, /**< The battery charge is at a critical state. You may have to stop using multimedia features, because they are not guaranteed to work correctly at this battery status. */
DEVICE_BATTERY_LEVEL_LOW, /**< The battery has little charge left. */
* @remarks You cannot combine with an enum below.
*
*/
-typedef enum
-{
+typedef enum {
POWER_LOCK_CPU, /**< CPU lock */
POWER_LOCK_DISPLAY, /**< Display normal lock (Deprecated since 2.4. Use efl_util_set_window_screen_mode() instead) */
POWER_LOCK_DISPLAY_DIM, /**< Display dim lock (Deprecated since 2.4. Use efl_util_set_window_screen_mode() instead) */