18279c1759a00e3ca4caae1b556be83865fc041d
[apps/home/b2-clocksetting.git] / include / setting_control_haptic.h
1 /*
2  * Copyright (c) 2010 Samsung Electronics, Inc.
3  * All rights reserved.
4  *
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.
10  */
11 #ifndef _SETTING_CONTROL_HAPTIC_
12 #define _SETTING_CONTROL_HAPTIC_
13
14 #include <Elementary.h>
15 #include <dd-haptic.h>
16
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
21
22 #define SETTING_VIB_STRONG_RATE                 49      // 70
23 #define SETTING_VIB_MEDIUM_RATE                 49
24 #define SETTING_VIB_WEAK_RATE                   20      // 30
25
26 struct _haptic_data
27 {
28         int is_haptic_opened;
29 };
30
31 int _haptic_open();
32 int _is_haptic_open();
33 int _haptic_close();
34
35 Eina_Bool __vibration_timeout(void *data);
36 void _start_vibration(int level, int feedback_rate, char * res_path);
37
38 #endif