Tizen 2.1 base
[framework/osp/uifw.git] / inc / FUiDataBindingTypes.h
1 //
2 // Open Service Platform
3 // Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
4 //
5 // Licensed under the Flora License, Version 1.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
8 //
9 //     http://floralicense.org/license/
10 //
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an AS IS BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
16 //
17
18 /**
19  * @file        FUiDataBindingTypes.h
20  * @brief       This is the header file for the data binding enumerations.
21  *
22  * This header file contains the declarations of the data binding enumerations.
23  */
24
25 #ifndef _FUI_DATA_BINDING_TYPES_H_
26 #define _FUI_DATA_BINDING_TYPES_H_
27
28 namespace Tizen { namespace Ui
29 {
30 /**
31  * @enum        DataBindingFlow
32  *
33  * Defines the possible data flow types.
34  *
35  * @since 2.0
36  */
37 enum DataBindingFlow
38 {
39         DATA_BINDING_FLOW_ONE_WAY = 0,                                    /**< The data flow is one way from source to target */
40         DATA_BINDING_FLOW_ONE_WAY_TO_SOURCE = 1,                   /**< The data flow is one way from target to source */
41         DATA_BINDING_FLOW_TWO_WAY = 2                                    /**< The data flow is two way */
42 };
43
44 /**
45  * @enum        DataBindingTrigger
46  *
47  * Defines the possible data binding trigger types.
48  *
49  * @since 2.0
50  */
51 enum DataBindingTrigger
52 {
53         DATA_BINDING_TRIGGER_IMMEDIATE = 0,                   /**< Immediate trigger */
54         DATA_BINDING_TRIGGER_EXPLICIT = 1,                       /**< Explicit trigger */
55 };
56
57 /**
58  * @enum        DataBindingDataType
59  *
60  * Defines the possible data types for data binding source.
61  *
62  * @since 2.0
63  */
64 enum DataBindingDataType
65 {
66         DATA_BINDING_DATA_TYPE_BOOLEAN = 0,                             /**< Boolean type */
67         DATA_BINDING_DATA_TYPE_COLOR = 1,                                 /**< Color type */
68         DATA_BINDING_DATA_TYPE_DIMENSION = 2,                          /**< Dimension type */
69         DATA_BINDING_DATA_TYPE_DOUBLE = 3,                                /**< Double type */
70         DATA_BINDING_DATA_TYPE_FLOAT = 4,                                  /**< Float type */
71         DATA_BINDING_DATA_TYPE_INTEGER = 5,                              /**<  Integer type */
72         DATA_BINDING_DATA_TYPE_LONG = 6,                                  /**< Long type */
73         DATA_BINDING_DATA_TYPE_POINT = 7,                                  /**< Point type */
74         DATA_BINDING_DATA_TYPE_RECTANGLE = 8,                           /**< Rectangle type */
75         DATA_BINDING_DATA_TYPE_STRING = 9                                 /**< String type */
76 };
77
78 /**
79  * @enum        DataBindingDestinationType
80  *
81  * Defines the possible destination types for explicit data bindings.
82  *
83  * @since 2.0
84  */
85 enum DataBindingDestinationType
86 {
87         DATA_BINDING_DESTINATION_TYPE_SOURCE = 0,                            /**< Update source with latest data of associated target */
88         DATA_BINDING_DESTINATION_TYPE_TARGET = 1                              /**< Update target with latest data of associated source */
89 };
90
91 }}// Tizen::Ui
92 #endif // _FUI_DATA_BINDING_TYPES_H_