Flora license update
[apps/core/preloaded/ug-camera-efl.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.1 (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://floralicense.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 #ifndef __CAM_LONG_PRESS_H_DEF__\r
20 #define __CAM_LONG_PRESS_H_DEF__\r
21 \r
22 typedef  int (*LONG_PRESS_START_CALLBACK)(void*, int, int);\r
23 typedef  int (*LONG_PRESS_CANCEL_CALLBACK)(void*, int, int);\r
24 int cam_long_press_register(int index, double time,\r
25                 LONG_PRESS_START_CALLBACK start_func,\r
26                 LONG_PRESS_CANCEL_CALLBACK end_func,\r
27                 void *data);\r
28 int  cam_long_press_unregister(int index);\r
29 void cam_long_press_trigger(int index, Evas_Coord x, Evas_Coord y);\r
30 void cam_long_press_validate(int index, Evas_Coord x, Evas_Coord y);\r
31 void cam_long_press_cancel(int index);\r
32 bool cam_get_long_press_running_state(int index);\r
33 \r
34 enum {\r
35         LONG_PRESS_ID_EDIT = 0,\r
36         LONG_PRESS_ID_SCROLL,\r
37         LONG_PRESS_ID_MAX_NUMS,\r
38 };\r
39 #endif /*__CAM_LONG_PRESS_H_DEF__*/\r
40 \r
41 \r