[cbhm] License is changed to Flora License
[framework/uifw/cbhm.git] / src / xhandler.h
1 /*
2  * Copyright 2012  Samsung Electronics Co., Ltd
3
4  * Licensed under the Flora License, Version 1.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7
8  * http://www.tizenopensource.org/license
9
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17
18 #ifndef _XCNPHANDLER_H_
19 #define _XCNPHANDLER_H_
20
21 #include <Ecore_X.h>
22 #include <Ecore.h>
23
24 struct _XHandlerData {
25         Ecore_Event_Handler *xsel_clear_handler;
26         Ecore_Event_Handler *xsel_request_handler;
27         Ecore_Event_Handler *xsel_notify_handler;
28         Ecore_Event_Handler *xclient_msg_handler;
29         Ecore_Event_Handler *xfocus_out_handler;
30         Ecore_Event_Handler *xproperty_notify_handler;
31         Ecore_Event_Handler *xwindow_destroy_handler;
32
33         Ecore_X_Atom atomInc;
34         Ecore_X_Atom atomWindowRotate;
35
36         Ecore_X_Atom atomCBHM_MSG;
37         Ecore_X_Atom atomCBHM_ITEM;
38         Ecore_X_Atom atomXKey_MSG;
39
40         Ecore_X_Atom atomUTF8String;
41         Ecore_X_Atom atomCBHMCount;
42
43         Ecore_Timer *selection_timer;
44 };
45
46 #include "cbhm.h"
47 #include "item_manager.h"
48 #include "xconverter.h"
49
50 XHandlerData *init_xhandler(AppData *data);
51 void depose_xhandler(XHandlerData *xd);
52 Eina_Bool set_selection_owner(AppData *ad, Ecore_X_Selection selection, CNP_ITEM *item);
53 void slot_property_set(AppData *ad, int index);
54 void slot_item_count_set(AppData *ad);
55
56 #define SELECTION_CHECK_TIME 10.0
57
58 #endif