Beta merge 2
[profile/ivi/wrt-plugins-tizen.git] / src / platform / API / Mediacontent / MediacontentAudio.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 "MediacontentAudio.h"
21
22 namespace TizenApis {
23 namespace Api {
24 namespace Mediacontent {
25
26
27 MediacontentAudio::MediacontentAudio()
28 {
29         m_isChangedPlayCount = false;
30         m_isChangedPlayedTime = false;
31
32 }
33
34 MediacontentAudio::~MediacontentAudio()
35 {
36 }
37
38
39 string MediacontentAudio::getAudioAlbum() const
40 {
41         return m_audioAlbum;
42 }
43 string MediacontentAudio::getAudioArtist() const
44 {
45         return m_audioArtist;
46 }
47
48 string MediacontentAudio::getAudioGenre() const
49 {
50         return m_audioGenre;
51 }
52 string MediacontentAudio::getAudioComposer() const
53 {
54         return m_audioAuthor;
55 }
56
57 string MediacontentAudio::getAudioCopyright() const
58 {
59         return m_audioCopyright;
60 }
61
62 int MediacontentAudio::getAudioBitrate() const
63 {
64         return m_audioBitrate;
65 }
66
67
68 int MediacontentAudio::getAudioTrackNum() const
69 {
70         return m_audioTrackNum;
71 }
72
73 int MediacontentAudio::getAudioDuration() const
74 {
75         return m_audioDuration;
76 }
77
78 int MediacontentAudio::getAudioPlayCount() const
79 {
80         return m_audioPlayCount;
81 }
82
83 int MediacontentAudio::getAudioPlayedTime() const
84 {
85         return m_audioPlayedTime;
86 }
87
88
89 int MediacontentAudio::getAudioSize() const
90 {       
91         return m_audioSize;
92 }
93
94 MediacontentLyricsPtr MediacontentAudio::getAudioLyrics() const
95 {
96         return m_lyrics;
97 }
98
99
100 void MediacontentAudio::setAudioAlbum(const string &value)
101 {
102         m_audioAlbum = value;
103 }
104
105 void MediacontentAudio::setAudioArtist(const string &value)
106 {
107         m_audioAlbum = value;
108 }
109
110 void MediacontentAudio::setAudioGenre(const string &value)
111 {
112         m_audioGenre = value;
113 }
114
115 void MediacontentAudio::setAudioComposer(const string &value)
116 {
117         m_audioAuthor = value;
118 }
119
120 void MediacontentAudio::setAudioCopyright(const string &value)
121 {
122         m_audioCopyright = value;
123 }
124
125 void MediacontentAudio::setAudioBitrate(const int &value) 
126 {
127         m_audioBitrate = value;
128 }
129
130 void MediacontentAudio::setAudioTrackNum(const int &value)
131 {
132         m_audioTrackNum = value;
133 }
134
135 void MediacontentAudio::setAudioDuration(const int &value)      
136 {
137         m_audioDuration = value;
138 }
139
140 void MediacontentAudio::setAudioPlayCount(const int &value)
141 {
142         m_audioPlayCount = value;
143         m_isChangedPlayCount = true;
144 }
145
146 void MediacontentAudio::setAudioPlayedTime(const int &value)
147 {
148         m_audioPlayedTime = value;
149         m_isChangedPlayedTime = true;
150 }
151
152 void MediacontentAudio::setAudioSize(const int &value)
153 {
154         m_audioSize = value;
155 }
156
157 void MediacontentAudio::setAudioLyrics(MediacontentLyricsPtr value)
158 {
159         m_lyrics = value;
160 }
161
162
163
164 void MediacontentAudio::display() const
165 {
166
167         MediacontentMedia::display();
168 }
169
170
171 }
172 }
173 }