Beta merge 2
[profile/ivi/wrt-plugins-tizen.git] / src / platform / API / Mediacontent / MediacontentMedia.h
1 /*
2 * Copyright (c) 2011 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
18 #ifndef _ABSTRACT_LAYER_MEDIACONTENT_MEDIA_H_
19 #define _ABSTRACT_LAYER_MEDIACONTENT_MEDIA_H_
20
21 #include <ctime>
22 #include <string>
23 #include <vector>
24 #include <dpl/optional.h>
25 #include <dpl/shared_ptr.h>
26
27 using namespace std;
28
29 namespace TizenApis {
30 namespace Api {
31 namespace Mediacontent {
32
33 typedef enum 
34 {
35         MEDIA_TYPE_IMAGE        = 1,
36         MEDIA_TYPE_VIDEO        = 2,
37         MEDIA_TYPE_AUDIO        = 3,
38         MEDIA_TYPE_UNKOWN       = 4,
39 }media_type;
40
41
42 class MediacontentMedia
43 {
44         public:
45
46         MediacontentMedia();
47         virtual ~MediacontentMedia();
48
49         string getMediaUUID() const;
50         string getMediaType() const;
51         string getMimeType() const;
52         string getDisplayName() const;
53         string getFilePath() const;
54         string getThumbnailPath() const;
55         tm getCreatedDate() const;
56         tm getReleasedDate() const;
57         tm getModifiedDate() const;
58         string getDescription() const;  
59         int getFavorite() const;
60
61         bool getIsChangedFavorite() const;
62
63         void setMediaUUID(const string &value);
64         void setMediaType(const string &value);
65         void setMimeType(const string &value);
66         void setDisplayName(const string &value);       
67         void setFilePath(const string &value);  
68         void setThumbnailPath(const string &value);     
69         void setCreatedDate(const tm &value);
70         void setReleasedDate(const tm &value);
71         void setModifiedDate(const tm &value);  
72         void setFavorite( int value);
73         void setDescription(const string &value);
74
75         void display() const;
76
77         private:
78         string m_mediaUUID;
79         string m_mediaType;
80         string m_mimeType;
81         string m_displayName;
82         string m_filePath;
83         string m_thumbnailPath;
84         string m_description;
85         tm m_createdDate;
86         tm m_releasedDate;
87         tm m_modifiedDate;
88         int m_favorite;
89         bool m_isChangedFavorite;
90
91 };
92
93
94 typedef DPL::SharedPtr<MediacontentMedia> MediacontentMediaPtr;
95 typedef std::vector<MediacontentMediaPtr> MediacontentMediaList;
96 typedef DPL::SharedPtr<MediacontentMediaList> MediacontentMediaListPtr;
97
98
99 }
100 }
101 }
102
103 #endif /* _ABSTRACT_LAYER_MEDIACONTENT_MEDIA_H_ */
104