Merge "[content] Change codes fabout content path not including extension" into tizen_2.2
[platform/framework/native/content.git] / inc / FCntTypes.h
1 //
2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
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  * @file                        FCntTypes.h
18  * @brief               This is the header file for the definitions of constants and enumerators in the Content namespace.
19  *
20  * This header file contains definitions for the constants and enumerators in the Content namespace.
21  */
22
23 #ifndef _FCNT_TYPES_H_
24 #define _FCNT_TYPES_H_
25
26 namespace Tizen { namespace Base
27 {
28 class UuId;
29 }}
30
31 namespace Tizen { namespace Base
32 {
33 class String;
34 }}
35
36 namespace Tizen { namespace Content
37 {
38
39 /**
40  * The content ID.
41  *
42  * @since       2.0
43  */
44 typedef Tizen::Base::UuId ContentId;
45
46 /**
47  * @enum ContentType
48  *
49  * Defines the content type.
50  *
51  * @since       2.0
52  */
53 enum ContentType
54 {
55         CONTENT_TYPE_OTHER = 0, /**< Other types */
56         CONTENT_TYPE_IMAGE,             /**< An Image */
57         CONTENT_TYPE_AUDIO,             /**< An Audio */
58         CONTENT_TYPE_VIDEO,             /**< A Video */
59         CONTENT_TYPE_ALL,                       /**< @if OSPDEPREC The content type: all types @endif */ /**< @if OSPDEPREC @deprecated This enum field is deprecated as unified search will not be supported. @endif */
60         CONTENT_TYPE_UNKNOWN            /**< An Unknown type */
61 };
62
63 /**
64  * @enum ImageOrientationType
65  *
66  * Defines the orientation type of an image.
67  *
68  * @since 2.0
69  */
70 enum ImageOrientationType
71 {
72         IMAGE_ORIENTATION_TYPE_UNKNOWN = 0,             /**< An Unknown type */
73         IMAGE_ORIENTATION_TYPE_NORMAL,                          /**< Normal */
74         IMAGE_ORIENTATION_TYPE_FLIP_HORIZONTAL, /**< Flip horizontal */
75         IMAGE_ORIENTATION_TYPE_ROTATE_180,                      /**< Rotate 180 degree */
76         IMAGE_ORIENTATION_TYPE_FLIP_VERTICAL,           /**< Flip vertical */
77         IMAGE_ORIENTATION_TYPE_TRANSPOSE,                       /**< Transpose */
78         IMAGE_ORIENTATION_TYPE_ROTATE_90,                       /**< Rotate 90 degree */
79         IMAGE_ORIENTATION_TYPE_TRANSVERSE,                      /**< Transverse */
80         IMAGE_ORIENTATION_TYPE_ROTATE_270                       /**< Rotate 270 degree */
81 };
82
83 /**
84  * @enum DownloadNetworkType
85  * Defines the download network type.
86  * @since 2.1
87  */
88 enum DownloadNetworkType
89 {
90         DOWNLOAD_NETWORK_DATA_NETWORK = 1,      /**< The data network is allowed */
91         DOWNLOAD_NETWORK_WIFI,                  /*< The wifi network is allowed */
92         DOWNLOAD_NETWORK_ALL = 100              /*< The all network types are allowed */
93 };
94
95 /**
96  * @enum DownloadState
97  *
98  * Defines the download state.
99  *
100  * @since 2.0
101  */
102 enum DownloadState
103 {
104         DOWNLOAD_STATE_NONE = 0,                /**< The download request does not exist */
105         DOWNLOAD_STATE_QUEUED,                  /**< The download request is listed in a download queue */
106         DOWNLOAD_STATE_DOWNLOADING,     /**< The download request is in progress */
107         DOWNLOAD_STATE_PAUSED,                  /**< The download request is in a paused state by user request */
108         DOWNLOAD_STATE_CANCELLED,               /**< The download request is cancelled by user request */
109         DOWNLOAD_STATE_COMPLETED,               /**< The download request is in a completed state */
110         DOWNLOAD_STATE_FAILED                   /**< The download request has failed */
111 };
112
113 _OSP_EXPORT_ extern const wchar_t OSP_HOME[];
114 _OSP_EXPORT_ extern const wchar_t OSP_HOME_EXT[];
115 _OSP_EXPORT_ extern const wchar_t OSP_MEDIA_PHONE[];
116 _OSP_EXPORT_ extern const wchar_t OSP_MEDIA_MMC[];
117
118 } } // Tizen::Content
119
120 #endif  // _FCNT_TYPES_H_