2 * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 #include <dpl/log/log.h>
18 #include <Commons/Exception.h>
19 #include "MediacontentMedia.h"
23 namespace Mediacontent {
25 MediacontentMedia::MediacontentMedia()
27 m_isChangedFavorite = false;
30 MediacontentMedia::~MediacontentMedia()
34 string MediacontentMedia::getMediaUUID() const
39 void MediacontentMedia::setMediaUUID(const string &value)
44 string MediacontentMedia::getMimeType() const
49 string MediacontentMedia::getDisplayName() const
54 void MediacontentMedia::setMimeType(const string &value)
60 void MediacontentMedia::setDisplayName(const string &value)
62 m_displayName = value;
65 string MediacontentMedia::getFilePath() const
71 void MediacontentMedia::setFilePath(const string &value)
77 string MediacontentMedia::getThumbnailPath() const
79 return m_thumbnailPath;
83 tm MediacontentMedia::getCreatedDate() const
88 tm MediacontentMedia::getReleasedDate() const
90 return m_releasedDate;
93 void MediacontentMedia::setThumbnailPath(const string &value)
95 m_thumbnailPath = value;
98 tm MediacontentMedia::getModifiedDate() const
100 return m_modifiedDate;
103 void MediacontentMedia::setCreatedDate(const tm &value)
105 m_createdDate = value;
109 void MediacontentMedia::setReleasedDate(const tm &value)
111 m_releasedDate = value;
115 void MediacontentMedia::setModifiedDate(const tm &value)
117 m_modifiedDate = value;
120 int MediacontentMedia::getFavorite() const
124 void MediacontentMedia::setFavorite(int value)
127 m_isChangedFavorite = true;
130 string MediacontentMedia::getMediaType() const
135 void MediacontentMedia::setMediaType(const string &value)
140 void MediacontentMedia::display() const
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);
157 string MediacontentMedia::getDescription() const
159 return m_description;
162 void MediacontentMedia::setDescription(const string &value)
164 m_description = value;
167 bool MediacontentMedia::getIsChangedFavorite() const
169 return m_isChangedFavorite;