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.
18 #include <dpl/log/log.h>
19 #include <Commons/Exception.h>
20 #include "MediacontentVideo.h"
24 namespace Mediacontent {
27 MediacontentVideo::MediacontentVideo()
29 m_isChangedPlayCount = false;
30 m_isChangedPlayedTime = false;
33 MediacontentVideo::~MediacontentVideo()
39 int MediacontentVideo::getVideoPlayedTime() const
41 return m_videoPlayedTime;
45 int MediacontentVideo::getVideoPlayCount() const
47 return m_videoPlayCount;
52 int MediacontentVideo::getVideoDuration() const
54 return m_videoDuration;
58 int MediacontentVideo::getVideoWidth() const
64 int MediacontentVideo::getVideoHeight() const
69 double MediacontentVideo::getVideoLatitude() const
71 return m_videoLatitude;
74 double MediacontentVideo::getVideoLongitude() const
76 return m_videoLongitude;
80 string MediacontentVideo::getVideoAlbum() const
85 string MediacontentVideo::getVideoArtist() const
90 void MediacontentVideo::setVideoPlayedTime(const int &value)
92 m_videoPlayedTime = value;
93 m_isChangedPlayedTime = true;
96 void MediacontentVideo::setVideoPlayCount(const int &value)
98 m_videoPlayCount = value;
99 m_isChangedPlayCount = true;
102 void MediacontentVideo::setVideoDuration(const int &value)
104 m_videoDuration = value;
107 void MediacontentVideo::setVideoWidth(const int &value)
109 m_videoWidth = value;
113 void MediacontentVideo::setVideoHeight(const int &value)
115 m_videoHeight = value;
119 void MediacontentVideo::setVideoLatitude(const double &value)
121 m_videoLatitude = value;
124 void MediacontentVideo::setVideoLongitude(const double &value)
126 m_videoLongitude = value;
130 void MediacontentVideo::setVideoAlbum(const string &value)
132 m_videoAlbum = value;
135 void MediacontentVideo::setVideoArtist(const string &value)
137 m_videoArtist = value;
141 void MediacontentVideo::display() const
144 LogDebug("m_videoLongitude: " << m_videoLongitude;);
145 LogDebug("m_videoLatitude: " << m_videoLatitude);
146 LogDebug("m_videoAlbum: " << m_videoAlbum;);
147 LogDebug("m_videoArtist: " << m_videoArtist);
149 LogDebug("m_videoPlayedTime: " << m_videoPlayedTime);
150 LogDebug("m_videoDuration: " << m_videoDuration);
151 LogDebug("m_videoWidth: " << m_videoWidth);
152 LogDebug("m_videoHeight: " << m_videoHeight);
153 MediacontentMedia::display();