c4f210decdef92eddf440fce8430540cb9f28766
[platform/framework/web/wrt-plugins-tizen.git] / src / Content / ContentVideo.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 _ABSTRACT_LAYER_CONTENT_VIDEO_H_
19 #define _ABSTRACT_LAYER_CONTENT_VIDEO_H_
20
21 #include <ctime>
22 #include <string>
23 #include <vector>
24 #include <dpl/optional.h>
25 #include <dpl/shared_ptr.h>
26 #include "ContentMedia.h"
27
28 using namespace std;
29
30 namespace DeviceAPI {
31 namespace Content {
32
33 class MediacontentVideo : public MediacontentMedia
34 {
35         public:
36
37         MediacontentVideo();
38         virtual ~MediacontentVideo();
39
40         int getVideoDuration() const;
41         int getVideoWidth() const;
42         int getVideoHeight() const;
43         double getVideoLatitude() const;
44         double getVideoLongitude() const;
45         string getVideoAlbum() const;
46         vector<std::string> getVideoArtist() const;
47         void setVideoDuration(const int &value);
48         void setVideoWidth(const int &value);
49         void setVideoHeight(const int &value);
50         void setVideoLatitude(const double &value, bool isChanged=false);
51         void setVideoLongitude(const double &value, bool isChanged=false);
52         void setVideoAlbum(const string &value, bool isChanged=false);
53         void setVideoArtist(const vector<std::string> &value, bool isChanged=false);
54         void appendVideoArtist(const string value);
55
56         bool isChangedArtists();
57         bool isChangedAlbum();
58         bool isChangedLatitude();
59         bool isChangedLongitude();
60
61         virtual vector<std::string> getEditableAttr() const;
62
63         void display() const;
64
65         private:
66         double  m_videoLongitude;
67         double m_videoLatitude;
68         string m_videoAlbum;
69         vector<std::string> m_videoArtist;
70         int m_videoDuration;
71         int m_videoWidth;
72         int m_videoHeight;
73         bool m_isChangedArtists;
74         bool m_isChangedAlbum;
75         bool m_isChangedLatitude;
76         bool m_isChangedLongitude;
77         
78 };
79
80 typedef DPL::SharedPtr<MediacontentVideo> MediacontentVideoPtr;
81
82
83 }
84 }
85
86
87 #endif /* _ABSTRACT_LAYER_CONTENT_VIDEO_H_ */
88