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 _ABSTRACT_LAYER_CONTENT_VIDEO_H_
19 #define _ABSTRACT_LAYER_CONTENT_VIDEO_H_
24 #include <dpl/optional.h>
25 #include <dpl/shared_ptr.h>
26 #include "ContentMedia.h"
33 class MediacontentVideo : public MediacontentMedia
38 virtual ~MediacontentVideo();
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);
56 bool isChangedArtists();
57 bool isChangedAlbum();
58 bool isChangedLatitude();
59 bool isChangedLongitude();
61 virtual vector<std::string> getEditableAttr() const;
66 double m_videoLongitude;
67 double m_videoLatitude;
69 vector<std::string> m_videoArtist;
73 bool m_isChangedArtists;
74 bool m_isChangedAlbum;
75 bool m_isChangedLatitude;
76 bool m_isChangedLongitude;
80 typedef DPL::SharedPtr<MediacontentVideo> MediacontentVideoPtr;
87 #endif /* _ABSTRACT_LAYER_CONTENT_VIDEO_H_ */