2 * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
18 #include <dpl/log/log.h>
19 #include <Commons/Exception.h>
20 #include "MediacontentAudio.h"
24 namespace Mediacontent {
27 MediacontentAudio::MediacontentAudio()
29 m_isChangedPlayCount = false;
30 m_isChangedPlayedTime = false;
34 MediacontentAudio::~MediacontentAudio()
39 string MediacontentAudio::getAudioAlbum() const
43 string MediacontentAudio::getAudioArtist() const
48 string MediacontentAudio::getAudioGenre() const
52 string MediacontentAudio::getAudioComposer() const
57 string MediacontentAudio::getAudioCopyright() const
59 return m_audioCopyright;
62 int MediacontentAudio::getAudioBitrate() const
64 return m_audioBitrate;
68 int MediacontentAudio::getAudioTrackNum() const
70 return m_audioTrackNum;
73 int MediacontentAudio::getAudioDuration() const
75 return m_audioDuration;
78 int MediacontentAudio::getAudioPlayCount() const
80 return m_audioPlayCount;
83 int MediacontentAudio::getAudioPlayedTime() const
85 return m_audioPlayedTime;
89 int MediacontentAudio::getAudioSize() const
94 MediacontentLyricsPtr MediacontentAudio::getAudioLyrics() const
100 void MediacontentAudio::setAudioAlbum(const string &value)
102 m_audioAlbum = value;
105 void MediacontentAudio::setAudioArtist(const string &value)
107 m_audioAlbum = value;
110 void MediacontentAudio::setAudioGenre(const string &value)
112 m_audioGenre = value;
115 void MediacontentAudio::setAudioComposer(const string &value)
117 m_audioAuthor = value;
120 void MediacontentAudio::setAudioCopyright(const string &value)
122 m_audioCopyright = value;
125 void MediacontentAudio::setAudioBitrate(const int &value)
127 m_audioBitrate = value;
130 void MediacontentAudio::setAudioTrackNum(const int &value)
132 m_audioTrackNum = value;
135 void MediacontentAudio::setAudioDuration(const int &value)
137 m_audioDuration = value;
140 void MediacontentAudio::setAudioPlayCount(const int &value)
142 m_audioPlayCount = value;
143 m_isChangedPlayCount = true;
146 void MediacontentAudio::setAudioPlayedTime(const int &value)
148 m_audioPlayedTime = value;
149 m_isChangedPlayedTime = true;
152 void MediacontentAudio::setAudioSize(const int &value)
157 void MediacontentAudio::setAudioLyrics(MediacontentLyricsPtr value)
164 void MediacontentAudio::display() const
167 MediacontentMedia::display();