2 // Tizen Web Device API
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
5 // Licensed under the Apache License, Version 2.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
9 // http://www.apache.org/licenses/LICENSE-2.0
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
18 #include <Commons/Exception.h>
19 #include "ContentVideo.h"
26 MediacontentVideo::MediacontentVideo()
28 m_editableAttrList.push_back("geolocation");
32 MediacontentVideo::~MediacontentVideo()
36 int MediacontentVideo::getVideoDuration() const
38 return m_videoDuration;
42 int MediacontentVideo::getVideoWidth() const
48 int MediacontentVideo::getVideoHeight() const
53 double MediacontentVideo::getVideoLatitude() const
55 return m_videoLatitude;
58 double MediacontentVideo::getVideoLongitude() const
60 return m_videoLongitude;
64 string MediacontentVideo::getVideoAlbum() const
69 vector<std::string> MediacontentVideo::getVideoArtist() const
75 void MediacontentVideo::setVideoDuration(const int &value)
77 m_videoDuration = value;
80 void MediacontentVideo::setVideoWidth(const int &value)
86 void MediacontentVideo::setVideoHeight(const int &value)
88 m_videoHeight = value;
92 void MediacontentVideo::setVideoLatitude(const double &value, bool isChanged)
94 m_videoLatitude = value;
95 m_isChangedLatitude =isChanged;
98 void MediacontentVideo::setVideoLongitude(const double &value, bool isChanged)
100 m_videoLongitude = value;
101 m_isChangedLongitude=isChanged;
104 void MediacontentVideo::setVideoAlbum(const string &value, bool isChanged)
106 m_videoAlbum = value;
107 m_isChangedAlbum=isChanged;
110 void MediacontentVideo::setVideoArtist(const vector<std::string> &value, bool isChanged)
112 m_videoArtist = value;
113 m_isChangedArtists=isChanged;
116 void MediacontentVideo::appendVideoArtist(const string value)
118 m_videoArtist.push_back(value);
121 bool MediacontentVideo::isChangedArtists()
123 return m_isChangedArtists;
126 bool MediacontentVideo::isChangedAlbum()
128 return m_isChangedAlbum;
131 bool MediacontentVideo::isChangedLatitude()
133 return m_isChangedLatitude;
136 bool MediacontentVideo::isChangedLongitude()
138 return m_isChangedLongitude;
141 vector<std::string> MediacontentVideo::getEditableAttr() const
143 return m_editableAttrList;
146 void MediacontentVideo::display() const
149 LoggerD("m_videoLongitude: " << m_videoLongitude;);
150 LoggerD("m_videoLatitude: " << m_videoLatitude);
151 LoggerD("m_videoAlbum: " << m_videoAlbum;);
152 //LoggerD("m_videoArtist: " << m_videoArtist);
153 //LoggerD("m_videoPlayedTime: " << m_videoPlayedTime);
154 LoggerD("m_videoDuration: " << m_videoDuration);
155 LoggerD("m_videoWidth: " << m_videoWidth);
156 LoggerD("m_videoHeight: " << m_videoHeight);
157 MediacontentMedia::display();