Beta merge 2
[profile/ivi/wrt-plugins-tizen.git] / src / platform / API / Mediacontent / MediacontentVideo.cpp
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 #include <dpl/log/log.h>
19 #include <Commons/Exception.h>
20 #include "MediacontentVideo.h"
21
22 namespace TizenApis {
23 namespace Api {
24 namespace Mediacontent {
25
26
27 MediacontentVideo::MediacontentVideo()
28 {
29         m_isChangedPlayCount = false;
30         m_isChangedPlayedTime = false;
31 }
32
33 MediacontentVideo::~MediacontentVideo()
34 {
35 }
36
37
38
39 int MediacontentVideo::getVideoPlayedTime() const
40 {
41         return m_videoPlayedTime;
42
43 }
44
45 int MediacontentVideo::getVideoPlayCount() const
46 {
47         return m_videoPlayCount;
48
49 }
50
51
52 int MediacontentVideo::getVideoDuration() const
53 {
54         return m_videoDuration;
55
56 }
57
58 int MediacontentVideo::getVideoWidth() const
59 {
60         return m_videoWidth;
61
62 }
63
64 int MediacontentVideo::getVideoHeight() const
65 {
66         return m_videoHeight;
67 }
68
69 double MediacontentVideo::getVideoLatitude() const
70 {
71         return m_videoLatitude;
72 }
73
74 double MediacontentVideo::getVideoLongitude() const
75 {
76         return m_videoLongitude;        
77
78 }
79
80 string MediacontentVideo::getVideoAlbum() const
81 {
82     return m_videoAlbum;
83 }
84
85 string MediacontentVideo::getVideoArtist() const
86 {
87     return m_videoArtist;
88 }
89
90 void MediacontentVideo::setVideoPlayedTime(const int &value)
91 {
92         m_videoPlayedTime = value;
93         m_isChangedPlayedTime = true;
94 }
95
96 void MediacontentVideo::setVideoPlayCount(const int &value)
97 {
98         m_videoPlayCount = value;
99         m_isChangedPlayCount = true;
100 }
101
102 void MediacontentVideo::setVideoDuration(const int &value)
103 {
104         m_videoDuration = value;
105 }
106
107 void MediacontentVideo::setVideoWidth(const int &value)
108 {
109         m_videoWidth = value;
110
111 }
112
113 void MediacontentVideo::setVideoHeight(const int &value)
114 {
115         m_videoHeight = value;
116
117 }
118
119 void MediacontentVideo::setVideoLatitude(const double  &value)
120 {
121         m_videoLatitude = value;
122 }
123
124 void MediacontentVideo::setVideoLongitude(const double  &value)
125 {
126         m_videoLongitude = value;
127 }
128
129
130 void MediacontentVideo::setVideoAlbum(const string &value)
131 {
132         m_videoAlbum = value;
133 }
134
135 void MediacontentVideo::setVideoArtist(const string &value)
136 {
137         m_videoArtist = value;
138 }
139
140
141 void MediacontentVideo::display() const
142 {
143
144         LogDebug("m_videoLongitude: " << m_videoLongitude;);
145     LogDebug("m_videoLatitude:   " << m_videoLatitude); 
146     LogDebug("m_videoAlbum: " << m_videoAlbum;);
147     LogDebug("m_videoArtist:     " << m_videoArtist);       
148
149     LogDebug("m_videoPlayedTime: " << m_videoPlayedTime);
150         LogDebug("m_videoDuration: " << m_videoDuration);
151         LogDebug("m_videoWidth: " << m_videoWidth);
152         LogDebug("m_videoHeight: " << m_videoHeight);   
153         MediacontentMedia::display();
154 }
155
156 }
157 }
158 }