Release 4.0.0-preview1-00172
[platform/core/csapi/tizenfx.git] / src / Tizen.Content.MediaContent / Tizen.Content.MediaContent / Enums.cs
1 /*
2  * Copyright (c) 2016 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 namespace Tizen.Content.MediaContent
18 {
19     /// <summary>
20     /// Specifies how the strings are compared.
21     /// </summary>
22     internal enum Collation
23     {
24         /// <summary>
25         /// Default collation, binary.
26         /// </summary>
27         Default,
28         /// <summary>
29         /// Case-insensitive.
30         /// </summary>
31         NoCase,
32         /// <summary>
33         /// Trailing space characters are ignored.
34         /// </summary>
35         Rtrim,
36         /// <summary>
37         /// Localized, NoCase also applied.
38         /// </summary>
39         Localized
40     }
41
42     /// <summary>
43     /// Specifies the storage types.
44     /// </summary>
45     public enum StorageType
46     {
47         /// <summary>
48         /// The device's internal storage.
49         /// </summary>
50         Internal = 0,
51
52         /// <summary>
53         /// The device's external storage like SD card.
54         /// </summary>
55         External = 1,
56
57         /// <summary>
58         /// The external USB storage.
59         /// </summary>
60         ExternalUsb = 2
61     }
62
63     /// <summary>
64     /// Specifies database operation types.
65     /// </summary>
66     public enum OperationType
67     {
68         /// <summary>
69         /// Insert operation.
70         /// </summary>
71         Insert,
72
73         /// <summary>
74         /// Delete operation.
75         /// </summary>
76         Delete,
77
78         /// <summary>
79         /// Update operation.
80         /// </summary>
81         Update
82     }
83
84     internal enum ItemType
85     {
86         File,
87         Directory
88     }
89
90     /// <summary>
91     /// Specifies types of the <see cref="MediaInfo"/>.
92     /// </summary>
93     public enum MediaType
94     {
95         /// <summary>
96         /// The type of an image.
97         /// </summary>
98         /// <seealso cref="ImageInfo"/>
99         Image = 0,
100
101         /// <summary>
102         /// The type of a video.
103         /// </summary>
104         /// <seealso cref="VideoInfo"/>
105         Video = 1,
106
107         /// <summary>
108         /// The type of sound.
109         /// </summary>
110         /// <seealso cref="AudioInfo"/>
111         Sound = 2,
112
113         /// <summary>
114         /// The type of music.
115         /// </summary>
116         /// <seealso cref="AudioInfo"/>
117         Music = 3,
118
119         /// <summary>
120         /// The type of other.
121         /// </summary>
122         Other = 4
123     }
124
125     /// <summary>
126     /// Specifies orientation types of media.
127     /// </summary>
128     public enum Orientation
129     {
130         /// <summary>
131         /// None.
132         /// </summary>
133         Rotate0 = 0,
134         /// <summary>
135         /// Normal.
136         /// </summary>
137         Normal = 1,
138         /// <summary>
139         /// Rotate 90 degrees.
140         /// </summary>
141         Rotate90 = 6,
142         /// <summary>
143         /// Rotate 180 degrees.
144         /// </summary>
145         Rotate180 = 3,
146         /// <summary>
147         /// Rotate 270 degrees.
148         /// </summary>
149         Rotate270 = 8,
150         /// <summary>
151         /// Flip horizontal.
152         /// </summary>
153         FlipHorizontal = 2,
154         /// <summary>
155         /// Flip vertical.
156         /// </summary>
157         FlipVertical = 4,
158         /// <summary>
159         /// Transpose.
160         /// </summary>
161         Transpose = 5,
162         /// <summary>
163         /// Transverse.
164         /// </summary>
165         Transverse = 7,
166     }
167 }