Updating INI configuration file to work with most cameras.
[profile/ivi/camera.git] / include / cam_long_press.h
1 /*\r
2  * Copyright 2012  Samsung Electronics Co., Ltd\r
3  *\r
4  * Licensed under the Flora License, Version 1.0 (the "License");\r
5  * you may not use this file except in compliance with the License.\r
6  * You may obtain a copy of the License at\r
7  *\r
8  *        http://www.tizenopensource.org/license\r
9  *\r
10  * Unless required by applicable law or agreed to in writing, software\r
11  * distributed under the License is distributed on an "AS IS" BASIS,\r
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
13  * See the License for the specific language governing permissions and\r
14  * limitations under the License.\r
15  */\r
16 \r
17 \r
18 \r
19 \r
20 #ifndef __CAM_LONG_PRESS_H_DEF__\r
21 #define __CAM_LONG_PRESS_H_DEF__\r
22 \r
23 typedef  int (*LONG_PRESS_START_CALLBACK)(void*, int, int);\r
24 typedef  int (*LONG_PRESS_CANCEL_CALLBACK)(void*, int, int);\r
25 int cam_long_press_register(int index, double time,\r
26                 LONG_PRESS_START_CALLBACK start_func,\r
27                 LONG_PRESS_CANCEL_CALLBACK end_func,\r
28                 void *data);\r
29 int  cam_long_press_unregister(int index);\r
30 void cam_long_press_trigger(int index, Evas_Coord x, Evas_Coord y);\r
31 void cam_long_press_validate(int index, Evas_Coord x, Evas_Coord y);\r
32 void cam_long_press_cancel(int index);\r
33 bool cam_get_long_press_running_state(int index);\r
34 \r
35 enum {\r
36         LONG_PRESS_ID_EDIT = 0,\r
37         LONG_PRESS_ID_SCROLL,\r
38         LONG_PRESS_ID_MAX_NUMS,\r
39 };\r
40 #endif /*__CAM_LONG_PRESS_H_DEF__*/\r
41 \r
42 \r