* @brief Enumeration for keys for runtime information..
*/
typedef enum {
- RUNTIME_INFO_KEY_FLIGHT_MODE_ENABLED, /**<@internal Indicates whether the device is in flight mode. */
- RUNTIME_INFO_KEY_WIFI_STATUS, /**<@internal Indicates the current status of Wi-Fi. */
RUNTIME_INFO_KEY_BLUETOOTH_ENABLED, /**<Indicates whether Bluetooth is enabled. */
RUNTIME_INFO_KEY_WIFI_HOTSPOT_ENABLED, /**<Indicates whether Wi-Fi hotspot is enabled. */
RUNTIME_INFO_KEY_BLUETOOTH_TETHERING_ENABLED, /**<Indicates whether Bluetooth tethering is enabled. */
RUNTIME_INFO_KEY_USB_TETHERING_ENABLED, /**<Indicates whether USB tethering is enabled. */
RUNTIME_INFO_KEY_LOCATION_SERVICE_ENABLED, /**<Indicates whether the location service is allowed to use location data from GPS satellites. */
- RUNTIME_INFO_KEY_LOCATION_ADVANCED_GPS_ENABLED, /**<@internal Indicates whether the location service is allowed to download location data for GPS operation. */
RUNTIME_INFO_KEY_LOCATION_NETWORK_POSITION_ENABLED, /**<Indicates whether the location service is allowed to use location data from cellular and Wi-Fi. */
RUNTIME_INFO_KEY_PACKET_DATA_ENABLED, /**<Indicates Whether the packet data through 3G network is enabled. */
RUNTIME_INFO_KEY_DATA_ROAMING_ENABLED, /**<Indicates whether data roaming is enabled. */
- RUNTIME_INFO_KEY_SILENT_MODE_ENABLED, /**<@internal Indicates whether the device is in silent mode. */
RUNTIME_INFO_KEY_VIBRATION_ENABLED, /**<Indicates whether vibration is enabled. */
- RUNTIME_INFO_KEY_24HOUR_CLOCK_FORMAT_ENABLED, /**<@internal Indicates whether 24-hour clock is enabled. */
- RUNTIME_INFO_KEY_FIRST_DAY_OF_WEEK, /**<@internal Indicates the first day of week. */
- RUNTIME_INFO_KEY_LANGUAGE, /**<@internal Indicates the current language setting. */
- RUNTIME_INFO_KEY_REGION, /**<@internal Indicates the current region setting. */
RUNTIME_INFO_KEY_AUDIO_JACK_CONNECTED, /**<Indicates whether audio jack is connected. */
RUNTIME_INFO_KEY_GPS_STATUS, /**<Indicates the current status of GPS. */
RUNTIME_INFO_KEY_BATTERY_IS_CHARGING, /**<Indicates the battery is currently charging. */
RUNTIME_INFO_KEY_TV_OUT_CONNECTED, /**<Indicates whether TV out is connected. */
RUNTIME_INFO_KEY_AUDIO_JACK_STATUS, /**<Indicates the current status of audio jack. */
- RUNTIME_INFO_KEY_SLIDING_KEYBOARD_OPENED, /**<@internal Indicates whether sliding keyboard is opened. */
RUNTIME_INFO_KEY_USB_CONNECTED, /**<Indicates whether USB is connected. */
RUNTIME_INFO_KEY_CHARGER_CONNECTED, /**<Indicates whether charger is connected. */
- RUNTIME_INFO_KEY_VIBRATION_LEVEL_HAPTIC_FEEDBACK, /**<@internal Indicates the current vibration level of haptic feedback. */
RUNTIME_INFO_KEY_AUTO_ROTATION_ENABLED, /**<Indicates whether auto rotation is enabled. */
} runtime_info_key_e;
} runtime_info_gps_status_e;
/**
- * @internal
- * @brief Enumeration for first day of week.
- */
-typedef enum {
- RUNTIME_INFO_FIRST_DAY_OF_WEEK_SUNDAY, /**< Sunday */
- RUNTIME_INFO_FIRST_DAY_OF_WEEK_MONDAY, /**< Monday */
- RUNTIME_INFO_FIRST_DAY_OF_WEEK_TUESDAY, /**< Tuesday */
- RUNTIME_INFO_FIRST_DAY_OF_WEEK_WEDNESDAY, /**< Wednesday */
- RUNTIME_INFO_FIRST_DAY_OF_WEEK_THURSDAY, /**< Thursday */
- RUNTIME_INFO_FIRST_DAY_OF_WEEK_FRIDAY, /**< Friday */
- RUNTIME_INFO_FIRST_DAY_OF_WEEK_SATURDAY, /**< Saturday */
-} runtime_info_first_day_of_week_e;
-
-/**
* @brief Enumeration for audio jack status.
*/
typedef enum {
runtime_info_item_s runtime_info_item_table[] = {
{
- RUNTIME_INFO_KEY_FLIGHT_MODE_ENABLED, /**<Indicates whether the device is in flight mode. */
- RUNTIME_INFO_DATA_TYPE_BOOL,
- runtime_info_flightmode_get_value,
- runtime_info_flightmode_set_event_cb,
- runtime_info_flightmode_unset_event_cb,
- NULL
-},
-
-
-{
- RUNTIME_INFO_KEY_WIFI_STATUS, /**<Indicates the current status of Wi-Fi. */
- RUNTIME_INFO_DATA_TYPE_INT,
- runtime_info_wifi_status_get_value,
- runtime_info_wifi_status_set_event_cb,
- runtime_info_wifi_status_unset_event_cb,
- NULL
-},
-
-
-{
RUNTIME_INFO_KEY_BLUETOOTH_ENABLED, /**<Indicates whether Bluetooth is enabled. */
RUNTIME_INFO_DATA_TYPE_BOOL,
runtime_info_bt_enabled_get_value,
},
{
- RUNTIME_INFO_KEY_LOCATION_ADVANCED_GPS_ENABLED, /**<Indicates whether the location service is allowed to download location data for GPS operation. */
- RUNTIME_INFO_DATA_TYPE_BOOL,
- runtime_info_location_agps_get_value,
- runtime_info_location_agps_set_event_cb,
- runtime_info_location_agps_unset_event_cb,
- NULL
-},
-
-{
RUNTIME_INFO_KEY_LOCATION_NETWORK_POSITION_ENABLED, /**<Indicates whether the location service is allowed to use location data from cellular and Wi-Fi. */
RUNTIME_INFO_DATA_TYPE_BOOL,
runtime_info_location_network_get_value,
},
{
- RUNTIME_INFO_KEY_SILENT_MODE_ENABLED, /**<Indicates whether the device is in silent mode. */
- RUNTIME_INFO_DATA_TYPE_BOOL,
- runtime_info_silent_mode_get_value,
- runtime_info_silent_mode_set_event_cb,
- runtime_info_silent_mode_unset_event_cb,
- NULL
-},
-
-{
RUNTIME_INFO_KEY_VIBRATION_ENABLED, /**<Indicates whether vibration is enabled. */
RUNTIME_INFO_DATA_TYPE_BOOL,
runtime_info_vibration_enabled_get_value,
},
{
- RUNTIME_INFO_KEY_24HOUR_CLOCK_FORMAT_ENABLED, /**<Indicates the current time format. */
- RUNTIME_INFO_DATA_TYPE_BOOL,
- runtime_info_24hour_format_get_value,
- runtime_info_24hour_format_set_event_cb,
- runtime_info_24hour_format_unset_event_cb,
- NULL
-},
-
-{
- RUNTIME_INFO_KEY_FIRST_DAY_OF_WEEK, /**<Indicates the first day of week. */
- RUNTIME_INFO_DATA_TYPE_INT,
- runtime_info_first_day_of_week_get_value,
- runtime_info_first_day_of_week_set_event_cb,
- runtime_info_first_day_of_week_unset_event_cb,
- NULL
-},
-
-{
- RUNTIME_INFO_KEY_LANGUAGE, /**<Indicates the current language setting. */
- RUNTIME_INFO_DATA_TYPE_STRING,
- runtime_info_language_get_value,
- runtime_info_language_set_event_cb,
- runtime_info_language_unset_event_cb,
- NULL
-},
-
-{
- RUNTIME_INFO_KEY_REGION, /**<Indicates the current region setting. */
- RUNTIME_INFO_DATA_TYPE_STRING,
- runtime_info_region_get_value,
- runtime_info_region_set_event_cb,
- runtime_info_region_unset_event_cb,
- NULL
-},
-
-{
RUNTIME_INFO_KEY_AUDIO_JACK_CONNECTED, /**<Indicates whether audio jack is connected. */
RUNTIME_INFO_DATA_TYPE_BOOL,
runtime_info_audiojack_get_value,
},
{
- RUNTIME_INFO_KEY_SLIDING_KEYBOARD_OPENED, /**<Indicates whether sliding keyboard is opened. */
- RUNTIME_INFO_DATA_TYPE_BOOL,
- runtime_info_sliding_keyboard_opened_get_value,
- runtime_info_sliding_keyboard_opened_set_event_cb,
- runtime_info_sliding_keyboard_opened_unset_event_cb,
- NULL
-},
-
-{
RUNTIME_INFO_KEY_USB_CONNECTED, /**<Indicates whether usb is connected. */
RUNTIME_INFO_DATA_TYPE_BOOL,
runtime_info_usb_connected_get_value,
},
{
- RUNTIME_INFO_KEY_VIBRATION_LEVEL_HAPTIC_FEEDBACK, /**<Indicates the current vibration level of haptic feedback. */
- RUNTIME_INFO_DATA_TYPE_INT,
- runtime_info_vibration_level_haptic_feedback_get_value,
- runtime_info_vibration_level_haptic_feedback_set_event_cb,
- runtime_info_vibration_level_haptic_feedback_unset_event_cb,
- NULL
-},
-
-{
RUNTIME_INFO_KEY_AUTO_ROTATION_ENABLED, /**<Indicates whether auto rotation is enabled. */
RUNTIME_INFO_DATA_TYPE_BOOL,
runtime_info_auto_rotation_enabled_get_value,
#define LOG_TAG "CAPI_SYSTEM_RUNTIME_INFO"
-static const char *VCONF_WIFI_STATUS = VCONFKEY_WIFI_STATE;
static const char *VCONF_BT_ENABLED = VCONFKEY_BT_STATUS;
static const char *VCONF_WIFI_HOTSPOT_ENABLED = VCONFKEY_MOBILE_HOTSPOT_MODE;
static const char *VCONF_BT_HOTSPOT_ENABLED = VCONFKEY_MOBILE_HOTSPOT_MODE;
static const char *VCONF_DATA_ROAMING_ENABLED = VCONFKEY_SETAPPL_STATE_DATA_ROAMING_BOOL;
static const char *VCONF_GPS_STATUS = VCONFKEY_LOCATION_GPS_STATE;
-int runtime_info_wifi_status_get_value(runtime_info_value_h value)
-{
- int vconf_value;
-
- if (runtime_info_vconf_get_value_int(VCONF_WIFI_STATUS, &vconf_value))
- vconf_value = VCONFKEY_WIFI_OFF;
-
- switch (vconf_value) {
- case VCONFKEY_WIFI_OFF:
- value->i = RUNTIME_INFO_WIFI_STATUS_DISABLED;
- break;
-
- case VCONFKEY_WIFI_UNCONNECTED:
- value->i = RUNTIME_INFO_WIFI_STATUS_UNCONNECTED;
- break;
-
- case VCONFKEY_WIFI_CONNECTED:
- case VCONFKEY_WIFI_TRANSFER:
- value->i = RUNTIME_INFO_WIFI_STATUS_CONNECTED;
- break;
-
- default:
- return RUNTIME_INFO_ERROR_IO_ERROR;
- }
-
- return RUNTIME_INFO_ERROR_NONE;
-}
-
-int runtime_info_wifi_status_set_event_cb()
-{
- return runtime_info_vconf_set_event_cb(VCONF_WIFI_STATUS, RUNTIME_INFO_KEY_WIFI_STATUS, 0);
-}
-
-void runtime_info_wifi_status_unset_event_cb()
-{
- runtime_info_vconf_unset_event_cb(VCONF_WIFI_STATUS, 0);
-}
-
int runtime_info_bt_enabled_get_value(runtime_info_value_h value)
{
int vconf_value;
+++ /dev/null
-/*
- * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * Licensed under the Apache License, Version 2.0 (the License);
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an AS IS BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-
-#include <vconf.h>
-#include <dlog.h>
-
-#include <runtime_info.h>
-#include <runtime_info_private.h>
-
-#ifdef LOG_TAG
-#undef LOG_TAG
-#endif
-
-#define LOG_TAG "CAPI_SYSTEM_RUNTIME_INFO"
-
-static const char *VCONF_24HOUR_FORMAT = VCONFKEY_REGIONFORMAT_TIME1224;
-static const char *VCONF_FIRST_DAY_OF_WEEK = VCONFKEY_SETAPPL_WEEKOFDAY_FORMAT_INT;
-static const char *VCONF_LANGUAGE = VCONFKEY_LANGSET;
-static const char *VCONF_REGION = VCONFKEY_REGIONFORMAT;
-
-int runtime_info_24hour_format_get_value(runtime_info_value_h value)
-{
- int vconf_value;
-
- if (runtime_info_vconf_get_value_int(VCONF_24HOUR_FORMAT, &vconf_value))
- return RUNTIME_INFO_ERROR_IO_ERROR;
-
- switch (vconf_value) {
- case VCONFKEY_TIME_FORMAT_12:
- value->b = false;
- break;
-
- case VCONFKEY_TIME_FORMAT_24:
- value->b = true;
- break;
-
- default:
- return RUNTIME_INFO_ERROR_IO_ERROR;
- }
-
- return RUNTIME_INFO_ERROR_NONE;
-}
-
-int runtime_info_24hour_format_set_event_cb()
-{
- return runtime_info_vconf_set_event_cb(VCONF_24HOUR_FORMAT, RUNTIME_INFO_KEY_24HOUR_CLOCK_FORMAT_ENABLED, 0);
-}
-
-void runtime_info_24hour_format_unset_event_cb()
-{
- runtime_info_vconf_unset_event_cb(VCONF_24HOUR_FORMAT, 0);
-}
-
-int runtime_info_first_day_of_week_get_value(runtime_info_value_h value)
-{
- int vconf_value;
-
- if (runtime_info_vconf_get_value_int(VCONF_FIRST_DAY_OF_WEEK, &vconf_value))
- return RUNTIME_INFO_ERROR_IO_ERROR;
-
- switch (vconf_value) {
- case SETTING_WEEKOFDAY_FORMAT_SUNDAY:
- value->i = RUNTIME_INFO_FIRST_DAY_OF_WEEK_SUNDAY;
- break;
-
- case SETTING_WEEKOFDAY_FORMAT_MONDAY:
- value->i = RUNTIME_INFO_FIRST_DAY_OF_WEEK_MONDAY;
- break;
-
- case SETTING_WEEKOFDAY_FORMAT_TUESDAY:
- value->i = RUNTIME_INFO_FIRST_DAY_OF_WEEK_TUESDAY;
- break;
-
- case SETTING_WEEKOFDAY_FORMAT_WEDNESDAY:
- value->i = RUNTIME_INFO_FIRST_DAY_OF_WEEK_WEDNESDAY;
- break;
-
- case SETTING_WEEKOFDAY_FORMAT_THURSDAY:
- value->i = RUNTIME_INFO_FIRST_DAY_OF_WEEK_THURSDAY;
- break;
-
- case SETTING_WEEKOFDAY_FORMAT_FRIDAY:
- value->i = RUNTIME_INFO_FIRST_DAY_OF_WEEK_FRIDAY;
- break;
-
- case SETTING_WEEKOFDAY_FORMAT_SATURDAY:
- value->i = RUNTIME_INFO_FIRST_DAY_OF_WEEK_SATURDAY;
- break;
-
- default:
- return RUNTIME_INFO_ERROR_IO_ERROR;
- }
-
- return RUNTIME_INFO_ERROR_NONE;
-}
-
-int runtime_info_first_day_of_week_set_event_cb()
-{
- return runtime_info_vconf_set_event_cb(VCONF_FIRST_DAY_OF_WEEK, RUNTIME_INFO_KEY_FIRST_DAY_OF_WEEK, 0);
-}
-
-void runtime_info_first_day_of_week_unset_event_cb()
-{
- runtime_info_vconf_unset_event_cb(VCONF_FIRST_DAY_OF_WEEK, 0);
-}
-
-int runtime_info_language_get_value(runtime_info_value_h value)
-{
- char *vconf_value;
- char *token = NULL;
-
- if (runtime_info_vconf_get_value_string(VCONF_LANGUAGE, &vconf_value))
- return RUNTIME_INFO_ERROR_IO_ERROR;
-
- token = strchr(vconf_value, '.');
-
- if(token)
- *token = '\0';
-
- value->s = vconf_value;
-
- return RUNTIME_INFO_ERROR_NONE;
-}
-
-int runtime_info_language_set_event_cb()
-{
- return runtime_info_vconf_set_event_cb(VCONF_LANGUAGE, RUNTIME_INFO_KEY_LANGUAGE, 0);
-}
-
-void runtime_info_language_unset_event_cb()
-{
- runtime_info_vconf_unset_event_cb(VCONF_LANGUAGE, 0);
-}
-
-int runtime_info_region_get_value(runtime_info_value_h value)
-{
- char *vconf_value;
-
- if (runtime_info_vconf_get_value_string(VCONF_REGION, &vconf_value))
- return RUNTIME_INFO_ERROR_IO_ERROR;
-
- value->s = vconf_value;
-
- return RUNTIME_INFO_ERROR_NONE;
-}
-
-int runtime_info_region_set_event_cb()
-{
- return runtime_info_vconf_set_event_cb(VCONF_REGION, RUNTIME_INFO_KEY_REGION, 0);
-}
-
-void runtime_info_region_unset_event_cb()
-{
- runtime_info_vconf_unset_event_cb(VCONF_REGION, 0);
-}
-
#define LOG_TAG "CAPI_SYSTEM_RUNTIME_INFO"
static const char *VCONF_LOCATION_SERVICE_ENABLED = VCONFKEY_LOCATION_ENABLED;
-static const char *VCONF_LOCATION_AGPS_ENABLED = VCONFKEY_LOCATION_AGPS_ENABLED;
static const char *VCONF_LOCATION_NETWORK_ENABLED = VCONFKEY_LOCATION_NETWORK_ENABLED;
int runtime_info_location_service_get_value(runtime_info_value_h value)
runtime_info_vconf_unset_event_cb(VCONF_LOCATION_SERVICE_ENABLED, 0);
}
-int runtime_info_location_agps_get_value(runtime_info_value_h value)
-{
- int vconf_value;
- int ret;
-
- ret = runtime_info_vconf_get_value_int(VCONF_LOCATION_AGPS_ENABLED, &vconf_value);
- if (ret == RUNTIME_INFO_ERROR_NONE)
- value->b = vconf_value;
-
- return ret;
-}
-
-int runtime_info_location_agps_set_event_cb()
-{
- return runtime_info_vconf_set_event_cb(VCONF_LOCATION_AGPS_ENABLED, RUNTIME_INFO_KEY_LOCATION_ADVANCED_GPS_ENABLED, 0);
-}
-
-void runtime_info_location_agps_unset_event_cb()
-{
- runtime_info_vconf_unset_event_cb(VCONF_LOCATION_AGPS_ENABLED, 0);
-}
-
int runtime_info_location_network_get_value(runtime_info_value_h value)
{
int vconf_value;
#define LOG_TAG "CAPI_SYSTEM_RUNTIME_INFO"
-static const char *VCONF_FLIGHT_MODE = VCONFKEY_TELEPHONY_FLIGHT_MODE;
static const char *VCONF_AUDIO_JACK = VCONFKEY_SYSMAN_EARJACK;
-static const char *VCONF_SOUND_ENABLED = VCONFKEY_SETAPPL_SOUND_STATUS_BOOL;
static const char *VCONF_VIBRATION_ENABLED = VCONFKEY_SETAPPL_VIBRATION_STATUS_BOOL;
static const char *VCONF_ROTATION_LOCK_ENABLED = VCONFKEY_SETAPPL_AUTO_ROTATE_SCREEN_BOOL;
static const char *VCONF_BATTERY_CHARGING = VCONFKEY_SYSMAN_BATTERY_CHARGE_NOW;
static const char *VCONF_TVOUT_CONNECTED = VCONFKEY_SYSMAN_EARJACK;
static const char *VCONF_AUDIO_JACK_STATUS = VCONFKEY_SYSMAN_EARJACK;
-static const char *VCONF_SLIDING_KEYBOARD_STATUS = VCONFKEY_SYSMAN_SLIDING_KEYBOARD;
static const char *VCONF_USB_CONNECTED = VCONFKEY_SYSMAN_USB_STATUS;
static const char *VCONF_CHARGER_CONNECTED = VCONFKEY_SYSMAN_CHARGER_STATUS;
-int runtime_info_flightmode_get_value(runtime_info_value_h value)
-{
- int vconf_value;
-
- if (runtime_info_vconf_get_value_bool(VCONF_FLIGHT_MODE, &vconf_value))
- vconf_value = 0;
-
- value->b = (bool)vconf_value;
-
- return RUNTIME_INFO_ERROR_NONE;
-}
-
-int runtime_info_flightmode_set_event_cb(void)
-{
- return runtime_info_vconf_set_event_cb(VCONF_FLIGHT_MODE, RUNTIME_INFO_KEY_FLIGHT_MODE_ENABLED, 0);
-}
-
-void runtime_info_flightmode_unset_event_cb(void)
-{
- runtime_info_vconf_unset_event_cb(VCONF_FLIGHT_MODE, 0);
-}
-
int runtime_info_audiojack_get_value(runtime_info_value_h value)
{
int vconf_value;
runtime_info_vconf_unset_event_cb(VCONF_AUDIO_JACK, 0);
}
-int runtime_info_silent_mode_get_value(runtime_info_value_h value)
-{
- int sound, vib;
-
- if (runtime_info_vconf_get_value_bool(VCONF_SOUND_ENABLED, &sound))
- return RUNTIME_INFO_ERROR_IO_ERROR;
-
- if (runtime_info_vconf_get_value_bool(VCONF_VIBRATION_ENABLED, &vib))
- return RUNTIME_INFO_ERROR_IO_ERROR;
-
- if (sound == 0 && vib == 0)
- value->b = true;
- else
- value->b = false;
-
- return RUNTIME_INFO_ERROR_NONE;
-}
-
-int runtime_info_silent_mode_set_event_cb(void)
-{
- int ret;
-
- ret = runtime_info_vconf_set_event_cb(VCONF_SOUND_ENABLED, RUNTIME_INFO_KEY_SILENT_MODE_ENABLED, 0);
- if (ret != RUNTIME_INFO_ERROR_NONE)
- return ret;
-
- ret = runtime_info_vconf_set_event_cb(VCONF_VIBRATION_ENABLED, RUNTIME_INFO_KEY_SILENT_MODE_ENABLED, 1);
- if (ret != RUNTIME_INFO_ERROR_NONE)
- runtime_info_vconf_unset_event_cb(VCONF_SOUND_ENABLED, 0);
-
- return ret;
-}
-
-void runtime_info_silent_mode_unset_event_cb(void)
-{
- runtime_info_vconf_unset_event_cb(VCONF_SOUND_ENABLED, 0);
- runtime_info_vconf_unset_event_cb(VCONF_VIBRATION_ENABLED, 1);
-}
-
int runtime_info_vibration_enabled_get_value(runtime_info_value_h value)
{
int vconf_value;
runtime_info_vconf_unset_event_cb(VCONF_AUDIO_JACK_STATUS, 2);
}
-
-int runtime_info_sliding_keyboard_opened_get_value(runtime_info_value_h value)
-{
- int vconf_value;
-
- if (runtime_info_vconf_get_value_int(VCONF_SLIDING_KEYBOARD_STATUS, &vconf_value))
- vconf_value = VCONFKEY_SYSMAN_SLIDING_KEYBOARD_NOT_SUPPORTED;
-
- switch (vconf_value) {
- case VCONFKEY_SYSMAN_SLIDING_KEYBOARD_NOT_AVAILABE:
- value->b = false;
- break;
-
- case VCONFKEY_SYSMAN_SLIDING_KEYBOAED_AVAILABLE:
- value->b = true;
- break;
-
- case VCONFKEY_SYSMAN_SLIDING_KEYBOARD_NOT_SUPPORTED:
- value->b = false;
- break;
-
- default:
- return RUNTIME_INFO_ERROR_IO_ERROR;
- }
-
- return RUNTIME_INFO_ERROR_NONE;
-}
-
-int runtime_info_sliding_keyboard_opened_set_event_cb(void)
-{
- return runtime_info_vconf_set_event_cb(VCONF_SLIDING_KEYBOARD_STATUS, RUNTIME_INFO_KEY_SLIDING_KEYBOARD_OPENED, 0);
-}
-
-void runtime_info_sliding_keyboard_opened_unset_event_cb(void)
-{
- runtime_info_vconf_unset_event_cb(VCONF_SLIDING_KEYBOARD_STATUS, 0);
-}
-
-
int runtime_info_usb_connected_get_value(runtime_info_value_h value)
{
int vconf_value;
{
runtime_info_vconf_unset_event_cb(VCONF_CHARGER_CONNECTED, 0);
}
-
-
-int runtime_info_vibration_level_haptic_feedback_get_value(runtime_info_value_h value)
-{
- int vconf_value;
-
- if (runtime_info_vconf_get_value_int(VCONFKEY_SETAPPL_TOUCH_FEEDBACK_VIBRATION_LEVEL_INT, &vconf_value))
- return RUNTIME_INFO_ERROR_IO_ERROR;
-
- value->i = vconf_value;
-
- return RUNTIME_INFO_ERROR_NONE;
-}
-
-int runtime_info_vibration_level_haptic_feedback_set_event_cb(void)
-{
- return runtime_info_vconf_set_event_cb(VCONFKEY_SETAPPL_TOUCH_FEEDBACK_VIBRATION_LEVEL_INT, RUNTIME_INFO_KEY_VIBRATION_LEVEL_HAPTIC_FEEDBACK, 0);
-}
-
-void runtime_info_vibration_level_haptic_feedback_unset_event_cb(void)
-{
- runtime_info_vconf_unset_event_cb(VCONFKEY_SETAPPL_TOUCH_FEEDBACK_VIBRATION_LEVEL_INT, 0);
-}
-
-