2 * Copyright (c) 2010 Samsung Electronics, Inc.
5 * This software is a confidential and proprietary information
6 * of Samsung Electronics, Inc. ("Confidential Information"). You
7 * shall not disclose such Confidential Information and shall use
8 * it only in accordance with the terms of the license agreement
9 * you entered into with Samsung Electronics.
11 #ifndef _SETTING_CONTROL_HAPTIC_
12 #define _SETTING_CONTROL_HAPTIC_
14 #include <Elementary.h>
15 #include <dd-haptic.h>
17 #define SETTING_DEFAULT_HAPTIC_PREVIEW_VIB "/opt/share/settings/Vibrations/B2_System_Vibration_Preview_140221.ivt"
18 #define SETTING_DEFAULT_SYSTEM_HAPTIC_PREVIEW_VIB "/opt/share/settings/Vibrations/B2_System_Long_v2_140221.ivt"
19 #define SETTING_DEFAULT_NOTIFICATION_GENERAL_PREVIEW_VIB "/opt/usr/share/settings/Vibrations/B2_Notification_General_v5_140306.ivt"
20 #define SETTING_VIB_FEEDBACK_RATE 20
22 #define SETTING_VIB_STRONG_RATE 49 // 70
23 #define SETTING_VIB_MEDIUM_RATE 49
24 #define SETTING_VIB_WEAK_RATE 20 // 30
32 int _is_haptic_open();
35 Eina_Bool __vibration_timeout(void *data);
36 void _start_vibration(int level, int feedback_rate, char * res_path);