#include <player.h>
#include <sound_manager.h>
-#include <devman_haptic.h>
+#include <haptic.h>
#include <svi.h>
#include <setting-common-draw-widget.h>
#include <setting-common-view.h>
#include <pthread.h>
+#define MIGRATION_HAPTIC 1
+
#define HAPTIC_TEST_ITERATION 1
#define VOLUME_DEN (15.0) /* ie equals float(SETTING_SOUND_VOL_MAX) */
+#define SETTING_SOUND_TEXT_REPEAT_ONCE "IDS_ST_BODY_ONCE"
+#define SETTING_SOUND_TEXT_REPEAT_2MIN "IDS_ST_BODY_EVERY_2MIN"
+#define SETTING_SOUND_TEXT_REPEAT_5MIN "IDS_ST_BODY_EVERY_5MIN"
+#define SETTING_SOUND_TEXT_REPEAT_10MIN "IDS_ST_BODY_EVERY_10MINUTES"
+
+#define SETTING_SOUND_REPEAT_TYPE_LEN 4
+
typedef enum {
SETTING_PROF_VIEW_VOL = 0,
SETTING_PROF_VIEW_RTN,
#define SETTING_DEFAULT_NOTI_VIB_INT 5
#define SETTING_DEFAULT_HAPTIC_VIB_INT 3
#define SETTING_DEFAULT_ALERT_REPEAT_TYPE_INT 0
+#define SETTING_SOUND_VIB_TYPE_LEN 5
-#define SETTING_DEFAULT_RINGTONE_PATH "/opt/share/settings/Ringtones/"
-#define SETTING_DEFAULT_ALERT_PATH "/opt/share/settings/Alerts/"
+#define SETTING_DEFAULT_RINGTONE_PATH "/opt/share/settings/Ringtones"
+#define SETTING_DEFAULT_ALERT_PATH "/opt/share/settings/Alerts"
#define SETTING_PROFILE_MMC_PATH "/opt/storage/sdcard/"
+#define SETTING_DEFAULT_VIB_PATH "/usr/share/svi/haptic/default/"
+
+#define DELIM "/"
-#define SETTING_DEFAULT_CALL_TONE SETTING_DEFAULT_RINGTONE_PATH"ringtone_sdk.mp3"
-#define SETTING_DEFAULT_MSG_TONE SETTING_DEFAULT_ALERT_PATH"General notification_sdk.wav"
+#define SETTING_DEFAULT_CALL_TONE SETTING_DEFAULT_RINGTONE_PATH""DELIM"ringtone_sdk.mp3"
+#define SETTING_DEFAULT_MSG_TONE SETTING_DEFAULT_ALERT_PATH""DELIM"General notification_sdk.wav"
#define SETTING_DEFAULT_EMAIL_TONE SETTING_DEFAULT_MSG_TONE
#define SETTING_DEFAULT_MEDIA_TONE SETTING_DEFAULT_CALL_TONE
+#define IMG_CTRL_ICON_RINGTONE SETTING_ICON_PATH_CFG"A01-1_controlbar_icon_ringtones.png"
+#define IMG_CTRL_ICON_VOLUME SETTING_ICON_PATH_CFG"A01-1_controlbar_icon_volume.png"
+
+#define SETTING_VIB_FEEDBACK_RATE 20
+
typedef struct _SettingProfileUG SettingProfileUG;
/**
Ecore_Timer *volume_timer;
setting_volume_types cur_vol_type;
- int hnd_hpt;
+ haptic_device_h hnd_hpt;
int playing_volume;
char *song_playing;
char *ringtone_type;
+ Ecore_Event_Handler *event_handler;
+
/* Ringtone tab */
Setting_GenGroupItem_Data *data_call_alert_tone;
Setting_GenGroupItem_Data *data_call_alert_vib;