Release 4.0.0-preview1-00051
[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 DataControl column type
24     /// </summary>
25     public enum ColumnType : short
26     {
27         /// <summary>
28         /// Value representing DataControl operation Success
29         /// </summary>
30         ColumnTypeInt = 1,
31         /// <summary>
32         /// Value representing DataControl operation Success
33         /// </summary>
34         ColumnTypeDouble = 2,
35         /// <summary>
36         /// Value representing DataControl operation Success
37         /// </summary>
38         ColumnTypeString = 3,
39         /// <summary>
40         /// Value representing DataControl operation Success
41         /// </summary>
42         ColumnTypeBlob = 4
43     }
44
45     /// <summary>
46     /// Enumeration for DataControl column type
47     /// </summary>
48     public enum ChangeType : short
49     {
50         /// <summary>
51         /// Value representing DataControl provider data changed by update
52         /// </summary>
53         Update,
54         /// <summary>
55         /// Value representing DataControl provider data changed by insert
56         /// </summary>
57         Insert,
58         /// <summary>
59         /// Value representing DataControl provider data changed by delete
60         /// </summary>
61         Delete,
62         /// <summary>
63         /// Value representing DataControl provider data changed by map add
64         /// </summary>
65         MapAdd,
66         /// <summary>
67         /// Value representing DataControl provider data changed by map remove
68         /// </summary>
69         MapRemove,
70         /// <summary>
71         /// Value representing DataControl provider data changed by map set
72         /// </summary>
73         MapSet,
74     }
75
76     /// <summary>
77     /// Enumeration for DataControl result type
78     /// </summary>
79     public enum ResultType : int
80     {
81         /// <summary>
82         /// Value representing DataControl operation success
83         /// </summary>
84         Success = Interop.DataControl.NativeResultType.Success,
85         /// <summary>
86         /// Value representing DataControl operation cause out of memory error
87         /// </summary>
88         OutOfMemory = Interop.DataControl.NativeResultType.OutOfMemory,
89         /// <summary>
90         /// Value representing DataControl operation cause IO error
91         /// </summary>
92         IoError = Interop.DataControl.NativeResultType.IoError,
93         /// <summary>
94         /// Value representing DataControl operation cause Invalid parameter error
95         /// </summary>
96         InvalidParameter = Interop.DataControl.NativeResultType.InvalidParameter,
97         /// <summary>
98         /// Value representing DataControl operation cause permission denied error
99         /// </summary>
100         PermissionDenied = Interop.DataControl.NativeResultType.PermissionDenied,
101         /// <summary>
102         /// Value representing DataControl operation cause max exceed error
103         /// </summary>
104         MaxExceed = Interop.DataControl.NativeResultType.MaxExceed,
105     }
106 }