tizen 2.3.1 release
[framework/web/wearable/wrt-plugins-tizen.git] / src / Content / ImageContent.h
1 //
2 // Tizen Web Device API
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
4 //
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
8 //
9 // http://www.apache.org/licenses/LICENSE-2.0
10 //
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.
16 //
17
18 #ifndef __TIZEN_IMAGE_CONTENT_H__
19 #define __TIZEN_IMAGE_CONTENT_H__
20
21 #include <media_content.h>
22
23 #include <MultiCallbackUserData.h>
24 #include <SimpleCoordinates.h>
25
26 #include "ContentTypes.h"
27 #include "Content.h"
28
29 using namespace DeviceAPI::Common;
30 using namespace DeviceAPI::Tizen;
31
32 namespace DeviceAPI {
33 namespace Content {
34
35 class ImageContent;
36 typedef std::shared_ptr<ImageContent> ImageContentPtr;
37
38 class ImageContent : public Content
39 {
40 public:
41     ImageContent();
42     virtual ~ImageContent();
43
44     SimpleCoordinatesPtr getGeolocation() const;
45     void setGeolocation(SimpleCoordinatesPtr geolocation);
46     bool isGeolocationSet() const;
47     void unsetGeolocation();
48
49     void setLatitude(double latitude);
50     double getLatitude();
51
52     void setLongitude(double longitude);
53     double getLongitude();
54
55     unsigned long getWidth() const;
56     void setWidth(unsigned long width);
57
58     unsigned long getHeight() const;
59     void setHeight(unsigned long height);
60
61     std::string getOrientation() const;
62     media_content_orientation_e getOrientationEnum() const;
63     void setOrientation(std::string orientation);
64     void setOrientation(int orientation);
65
66 private:
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;
72 };
73
74 } // Content
75 } // DeviceAPI
76
77 #endif // __TIZEN_IMAGE_CONTENT_H__