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 "ContentImage.h"
25 MediacontentImage::MediacontentImage()
27 m_editableAttrList.push_back("geolocation");
28 m_editableAttrList.push_back("orientation");
31 MediacontentImage::~MediacontentImage()
35 double MediacontentImage::getImageLatitude() const
37 return m_imageLatitude;
40 double MediacontentImage::getImageLongitude() const
42 return m_imageLongitude;
46 void MediacontentImage::setImageLatitude(const double &value, bool isChanged)
48 m_imageLatitude = value;
49 m_isChangedLatitude = isChanged;
51 void MediacontentImage::setImageLongitude(const double &value, bool isChanged)
53 m_imageLongitude = value;
54 m_isChangedLongitude = isChanged;
57 int MediacontentImage::getImageWidth() const
63 void MediacontentImage::setImageWidth(const int &value)
69 int MediacontentImage::getImageHeight() const
73 void MediacontentImage::setImageHeight(const int &value)
75 m_imageHeight = value;
78 string MediacontentImage::getImageOrientation() const
80 return m_imageOrientation;
83 void MediacontentImage::setImageOrientation(const string &value, bool isChanged)
85 m_imageOrientation = value;
86 m_isChangedOrientation=isChanged;
89 vector<std::string> MediacontentImage::getEditableAttr() const
91 return m_editableAttrList;
94 bool MediacontentImage::isChangedOrientaion () const
96 return m_isChangedOrientation;
99 bool MediacontentImage::isChangedLatitude () const
101 return m_isChangedLatitude;
104 bool MediacontentImage::isChangedLongitude() const
106 return m_isChangedLongitude;