Beta merge 2
[profile/ivi/wrt-plugins-tizen.git] / src / platform / API / Mediacontent / MediacontentMedia.cpp
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 #include <dpl/log/log.h>
18 #include <Commons/Exception.h>
19 #include "MediacontentMedia.h"
20
21 namespace TizenApis {
22 namespace Api {
23 namespace Mediacontent {
24
25 MediacontentMedia::MediacontentMedia()
26 {
27         m_isChangedFavorite = false;
28 }
29
30 MediacontentMedia::~MediacontentMedia()
31 {
32 }
33
34 string MediacontentMedia::getMediaUUID() const
35 {
36         return m_mediaUUID;
37 }
38
39 void MediacontentMedia::setMediaUUID(const string &value)
40 {
41         m_mediaUUID = value;
42 }
43
44 string MediacontentMedia::getMimeType() const
45 {
46         return m_mimeType;
47 }
48
49 string MediacontentMedia::getDisplayName() const
50 {
51     return m_displayName;
52 }
53
54 void MediacontentMedia::setMimeType(const string &value)
55 {
56         m_mimeType = value;
57 }
58
59
60 void MediacontentMedia::setDisplayName(const string &value)
61 {
62         m_displayName = value;
63 }
64
65 string MediacontentMedia::getFilePath() const
66 {
67         return m_filePath;
68
69 }
70
71 void MediacontentMedia::setFilePath(const string &value)
72 {
73         m_filePath = value;
74
75 }
76
77 string MediacontentMedia::getThumbnailPath() const
78 {
79         return m_thumbnailPath;
80 }
81
82
83 tm MediacontentMedia::getCreatedDate() const
84 {
85         return m_createdDate;
86 }
87
88 tm MediacontentMedia::getReleasedDate() const
89 {
90         return m_releasedDate;
91 }
92
93 void MediacontentMedia::setThumbnailPath(const string &value)
94 {
95         m_thumbnailPath = value;
96
97 }
98 tm MediacontentMedia::getModifiedDate() const
99 {
100         return m_modifiedDate;
101 }
102
103 void MediacontentMedia::setCreatedDate(const tm &value)
104 {
105         m_createdDate = value;
106
107 }
108
109 void MediacontentMedia::setReleasedDate(const tm &value)
110 {
111         m_releasedDate = value;
112
113 }
114
115 void MediacontentMedia::setModifiedDate(const tm &value)
116 {
117         m_modifiedDate = value;
118
119 }
120 int MediacontentMedia::getFavorite() const
121 {
122         return m_favorite;
123 }
124 void MediacontentMedia::setFavorite(int value)
125 {
126         m_favorite = value;
127         m_isChangedFavorite = true;
128
129 }
130 string MediacontentMedia::getMediaType() const
131 {
132         return m_mediaType;
133 }
134
135 void MediacontentMedia::setMediaType(const string &value) 
136 {
137         m_mediaType = value;
138 }
139
140 void MediacontentMedia::display() const
141 {
142
143         LogDebug("m_mediaUUID : " << m_mediaUUID);
144         LogDebug("m_mediaType : " << m_mediaType);
145 //      LogDebug("m_mimeType : " << m_mimeType);
146         LogDebug("m_displayName : " << m_displayName);
147         LogDebug("m_filePath : " << m_filePath);
148         LogDebug("m_thumbnailPath : " << m_thumbnailPath);
149         LogDebug("m_description : " << m_description);
150 //      LogDebug("m_createdDate : " << m_createdDate);
151 //      LogDebug("m_releasedDate : " << m_releasedDate);
152 //      LogDebug("m_modifiedDate : " << m_modifiedDate);
153         LogDebug("m_favorite : " << m_favorite);
154         
155
156 }
157 string MediacontentMedia::getDescription() const
158 {
159         return m_description;
160 }
161
162 void MediacontentMedia::setDescription(const string &value)
163 {
164         m_description = value;
165 }
166
167 bool MediacontentMedia::getIsChangedFavorite() const
168 {
169         return m_isChangedFavorite;
170 }
171
172
173
174 }
175 }
176 }