[NUI] TCSACR-226 code change (#1032)
[platform/core/csapi/tizenfx.git] / src / Tizen.Applications.DataControl / Tizen.Applications.DataControl / Types.cs
1 /*
2  * Copyright (c) 2017 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  * Licensed under the Apache License, Version 2.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.apache.org/licenses/LICENSE-2.0
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 using System;
18
19 namespace Tizen.Applications.DataControl
20 {
21
22     /// <summary>
23     /// Enumeration for the DataControl column types.
24     /// </summary>
25     /// <since_tizen> 3 </since_tizen>
26     public enum ColumnType : short
27     {
28         /// <summary>
29         /// Value representing DataControl operation success.
30         /// </summary>
31         ColumnTypeInt = 1,
32         /// <summary>
33         /// Value representing DataControl operation success.
34         /// </summary>
35         ColumnTypeDouble = 2,
36         /// <summary>
37         /// Value representing DataControl operation success.
38         /// </summary>
39         ColumnTypeString = 3,
40         /// <summary>
41         /// Value representing DataControl operation success.
42         /// </summary>
43         ColumnTypeBlob = 4
44     }
45
46     /// <summary>
47     /// Enumeration for the DataControl column types.
48     /// </summary>
49     /// <since_tizen> 3 </since_tizen>
50     public enum ChangeType : short
51     {
52         /// <summary>
53         /// Value representing DataControl provider data changed by update.
54         /// </summary>
55         Update,
56         /// <summary>
57         /// Value representing DataControl provider data changed by insert.
58         /// </summary>
59         Insert,
60         /// <summary>
61         /// Value representing DataControl provider data changed by delete.
62         /// </summary>
63         Delete,
64         /// <summary>
65         /// Value representing DataControl provider data changed by map add.
66         /// </summary>
67         MapAdd,
68         /// <summary>
69         /// Value representing  DataControl provider data changed by map remove.
70         /// </summary>
71         MapRemove,
72         /// <summary>
73         /// Value representing DataControl provider data changed by map set.
74         /// </summary>
75         MapSet,
76     }
77
78     /// <summary>
79     /// Enumeration for the DataControl result types.
80     /// </summary>
81     /// <since_tizen> 3 </since_tizen>
82     public enum ResultType : int
83     {
84         /// <summary>
85         /// Value representing DataControl operation success.
86         /// </summary>
87         Success = Interop.DataControl.NativeResultType.Success,
88         /// <summary>
89         /// Value representing DataControl operation causing out of memory error.
90         /// </summary>
91         OutOfMemory = Interop.DataControl.NativeResultType.OutOfMemory,
92         /// <summary>
93         /// Value representing DataControl operation causing I/O error.
94         /// </summary>
95         IoError = Interop.DataControl.NativeResultType.IoError,
96         /// <summary>
97         /// Value representing DataControl operation causing invalid parameter error.
98         /// </summary>
99         InvalidParameter = Interop.DataControl.NativeResultType.InvalidParameter,
100         /// <summary>
101         /// Value representing DataControl operation causing permission denied error.
102         /// </summary>
103         PermissionDenied = Interop.DataControl.NativeResultType.PermissionDenied,
104         /// <summary>
105         /// Value representing DataControl operation causing max exceed error.
106         /// </summary>
107         MaxExceed = Interop.DataControl.NativeResultType.MaxExceed,
108     }
109 }