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 #ifndef __TIZEN_IMAGE_CONTENT_H__
19 #define __TIZEN_IMAGE_CONTENT_H__
21 #include <media_content.h>
23 #include <MultiCallbackUserData.h>
24 #include <SimpleCoordinates.h>
26 #include "ContentTypes.h"
29 using namespace DeviceAPI::Common;
30 using namespace DeviceAPI::Tizen;
36 typedef std::shared_ptr<ImageContent> ImageContentPtr;
38 class ImageContent : public Content
42 virtual ~ImageContent();
44 SimpleCoordinatesPtr getGeolocation() const;
45 void setGeolocation(SimpleCoordinatesPtr geolocation);
46 bool isGeolocationSet() const;
47 void unsetGeolocation();
49 void setLatitude(double latitude);
52 void setLongitude(double longitude);
53 double getLongitude();
55 unsigned long getWidth() const;
56 void setWidth(unsigned long width);
58 unsigned long getHeight() const;
59 void setHeight(unsigned long height);
61 std::string getOrientation() const;
62 media_content_orientation_e getOrientationEnum() const;
63 void setOrientation(std::string orientation);
64 void setOrientation(int orientation);
67 unsigned long m_width;
68 unsigned long m_height;
69 std::string m_orientation;
70 SimpleCoordinatesPtr m_geolocation;
71 bool m_is_geolocation_set;
77 #endif // __TIZEN_IMAGE_CONTENT_H__