diff options
Diffstat (limited to 'wearable_src/Content/ContentVideo.cpp')
-rwxr-xr-x | wearable_src/Content/ContentVideo.cpp | 148 |
1 files changed, 148 insertions, 0 deletions
diff --git a/wearable_src/Content/ContentVideo.cpp b/wearable_src/Content/ContentVideo.cpp new file mode 100755 index 0000000..4b4cbca --- /dev/null +++ b/wearable_src/Content/ContentVideo.cpp @@ -0,0 +1,148 @@ +// +// Tizen Web Device API +// Copyright (c) 2012 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +#include <Commons/Exception.h> +#include "ContentVideo.h" +#include <Logger.h> + +namespace DeviceAPI { +namespace Content { + + +MediacontentVideo::MediacontentVideo() +{ + m_editableAttrList.push_back("geolocation"); + m_videoLongitude = DEFAULT_GEOLOCATION; + m_videoLatitude = DEFAULT_GEOLOCATION; +} + +MediacontentVideo::~MediacontentVideo() +{ +} + +int MediacontentVideo::getVideoDuration() const +{ + return m_videoDuration; + +} + +int MediacontentVideo::getVideoWidth() const +{ + return m_videoWidth; + +} + +int MediacontentVideo::getVideoHeight() const +{ + return m_videoHeight; +} + +double MediacontentVideo::getVideoLatitude() const +{ + return m_videoLatitude; +} + +double MediacontentVideo::getVideoLongitude() const +{ + return m_videoLongitude; + +} + +string MediacontentVideo::getVideoAlbum() const +{ + return m_videoAlbum; +} + +vector<std::string> MediacontentVideo::getVideoArtist() const +{ + return m_videoArtist; +} + + +void MediacontentVideo::setVideoDuration(const int &value) +{ + m_videoDuration = value; +} + +void MediacontentVideo::setVideoWidth(const int &value) +{ + m_videoWidth = value; + +} + +void MediacontentVideo::setVideoHeight(const int &value) +{ + m_videoHeight = value; + +} + +void MediacontentVideo::setVideoLatitude(const double &value, bool isChanged) +{ + m_videoLatitude = value; + m_isChangedLatitude =isChanged; +} + +void MediacontentVideo::setVideoLongitude(const double &value, bool isChanged) +{ + m_videoLongitude = value; + m_isChangedLongitude=isChanged; +} + +void MediacontentVideo::setVideoAlbum(const string &value, bool isChanged) +{ + m_videoAlbum = value; + m_isChangedAlbum=isChanged; +} + +void MediacontentVideo::setVideoArtist(const vector<std::string> &value, bool isChanged) +{ + m_videoArtist = value; + m_isChangedArtists=isChanged; +} + +void MediacontentVideo::appendVideoArtist(const string value) +{ + m_videoArtist.push_back(value); +} + +bool MediacontentVideo::isChangedArtists() +{ + return m_isChangedArtists; +} + +bool MediacontentVideo::isChangedAlbum() +{ + return m_isChangedAlbum; +} + +bool MediacontentVideo::isChangedLatitude() +{ + return m_isChangedLatitude; +} + +bool MediacontentVideo::isChangedLongitude() +{ + return m_isChangedLongitude; +} + +vector<std::string> MediacontentVideo::getEditableAttr() const +{ + return m_editableAttrList; +} + +} +} |