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()
29 m_editableAttrList.push_back("geolocation");
30 m_editableAttrList.push_back("orientation");
33 MediacontentImage::~MediacontentImage()
38 double MediacontentImage::getImageLatitude() const
40 return m_imageLatitude;
43 double MediacontentImage::getImageLongitude() const
45 return m_imageLongitude;
49 void MediacontentImage::setImageLatitude(const double &value, bool isChanged)
51 m_imageLatitude = value;
52 m_isChangedLatitude = isChanged;
54 void MediacontentImage::setImageLongitude(const double &value, bool isChanged)
56 m_imageLongitude = value;
57 m_isChangedLongitude = isChanged;
60 int MediacontentImage::getImageWidth() const
66 void MediacontentImage::setImageWidth(const int &value)
72 int MediacontentImage::getImageHeight() const
76 void MediacontentImage::setImageHeight(const int &value)
78 m_imageHeight = value;
81 string MediacontentImage::getImageOrientation() const
83 return m_imageOrientation;
86 void MediacontentImage::setImageOrientation(const string &value, bool isChanged)
88 m_imageOrientation = value;
89 m_isChangedOrientation=isChanged;
92 vector<std::string> MediacontentImage::getEditableAttr() const
94 return m_editableAttrList;
97 bool MediacontentImage::isChangedOrientaion () const
99 return m_isChangedOrientation;
102 bool MediacontentImage::isChangedLatitude () const
104 return m_isChangedLatitude;
107 bool MediacontentImage::isChangedLongitude() const
109 return m_isChangedLongitude;
112 void MediacontentImage::display()
114 MediacontentMedia::display();
115 LoggerD("m_imageWidth : " << m_imageWidth);
116 LoggerD("m_imageHeight : " << m_imageHeight);
117 LoggerD("m_imageOrientation : " << m_imageOrientation);
118 LoggerD("m_imageLongitude : " << m_imageLongitude);
119 LoggerD("m_imageLatitude : " << m_imageLatitude);