Beta merge 2
[profile/ivi/wrt-plugins-tizen.git] / src / platform / API / Mediacontent / MediacontentVideo.h
1 /*
2 * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License. 
15 */
16
17
18 #ifndef _ABSTRACT_LAYER_MEDIACONTENT_VIDEO_H_
19 #define _ABSTRACT_LAYER_MEDIACONTENT_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 "MediacontentMedia.h"
27
28 using namespace std;
29
30
31 namespace TizenApis {
32 namespace Api {
33 namespace Mediacontent {
34
35 class MediacontentVideo : public MediacontentMedia
36 {
37         public:
38
39         MediacontentVideo();
40         virtual ~MediacontentVideo();
41
42         int getVideoPlayedTime() const;
43         int getVideoPlayCount() const;
44         int getVideoDuration() const;
45         int getVideoWidth() const;
46         int getVideoHeight() const;
47         double getVideoLatitude() const;
48         double getVideoLongitude() const;
49         string getVideoAlbum() const;
50         string getVideoArtist() const;
51
52         void setVideoPlayedTime(const int &value);      
53         void setVideoPlayCount(const int &value);       
54         void setVideoDuration(const int &value);                
55         void setVideoWidth(const int &value);   
56         void setVideoHeight(const int &value);  
57         void setVideoLatitude(const double &value);
58         void setVideoLongitude(const double &value);    
59         void setVideoAlbum(const string &value);        
60         void setVideoArtist(const string &value);       
61
62         void display() const;   
63
64         private:
65         double  m_videoLongitude;
66         double m_videoLatitude; 
67         string m_videoAlbum;
68         string m_videoArtist;
69         int     m_videoPlayedTime;
70         int m_videoPlayCount;
71         int m_videoDuration;
72         int m_videoWidth;
73         int m_videoHeight;
74         bool m_isChangedPlayCount;
75         bool m_isChangedPlayedTime;
76 };
77
78 typedef DPL::SharedPtr<MediacontentVideo> MediacontentVideoPtr;
79
80
81 }
82 }
83 }
84
85 #endif /* _ABSTRACT_LAYER_MEDIACONTENT_VIDEO_H_ */
86