2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
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.
17 * @file FCnt_AudioContentInfoImpl.h
18 * @brief This is the header file for the %_AudioContentInfoImpl class.
20 * This header file contains the declarations of the %_AudioContentInfoImpl class.
23 #ifndef _FCNT_INTERNAL_AUDIO_CONTENT_INFO_IMPL_H_
24 #define _FCNT_INTERNAL_AUDIO_CONTENT_INFO_IMPL_H_
26 #include <FCntContentInfo.h>
27 #include <FCntAudioContentInfo.h>
28 #include "FCnt_ContentInfoImpl.h"
30 namespace Tizen { namespace Content
33 class _OSP_EXPORT_ _AudioContentInfoImpl
34 : public Tizen::Content::_ContentInfoImpl
38 _AudioContentInfoImpl(void);
40 virtual ~_AudioContentInfoImpl(void);
42 result Construct(const Tizen::Base::String* pContentPath);
44 virtual result Construct(const Tizen::Base::String& contentPath, const Tizen::Base::String& thumbnailPath = L"", bool setGps = false);
46 Tizen::Base::String GetGenre(void) const;
48 Tizen::Base::String GetArtist(void) const;
50 Tizen::Base::String GetAlbumArtist(void) const;
52 Tizen::Base::String GetComposer(void) const;
54 Tizen::Base::String GetAlbumName(void) const;
56 int GetReleaseYear(void) const;
58 int GetBitrate(void) const;
60 Tizen::Base::String GetTitle(void) const;
62 Tizen::Base::String GetCopyright(void) const;
64 Tizen::Base::String GetTrackInfo(void) const;
66 long GetDuration(void) const;
68 void SetGenre(const Tizen::Base::String& genre);
70 void SetArtist(const Tizen::Base::String& artist);
72 void SetAlbumArtist(const Tizen::Base::String& albumArtist);
74 void SetComposer(const Tizen::Base::String& composer);
76 void SetAlbumName(const Tizen::Base::String& albumName);
78 void SetReleaseYear(int releaseYear);
80 void SetBitrate(int bitrate);
82 void SetTitle(const Tizen::Base::String& title);
84 void SetCopyright(const Tizen::Base::String& copyright);
86 void SetTrackInfo(const Tizen::Base::String& trackInfo);
88 void SetDuration(long duration);
90 static _AudioContentInfoImpl* GetInstance(AudioContentInfo& audioContentInfo);
92 static const _AudioContentInfoImpl* GetInstance(const AudioContentInfo& audioContentInfo);
95 _AudioContentInfoImpl(const _AudioContentInfoImpl& rhs);
97 _AudioContentInfoImpl& operator =(const _AudioContentInfoImpl& rhs);
102 Tizen::Base::String __title;
103 Tizen::Base::String __albumName;
104 Tizen::Base::String __artist;
105 Tizen::Base::String __albumArtist;
106 Tizen::Base::String __composer;
107 Tizen::Base::String __genre;
108 Tizen::Base::String __copyright;
109 Tizen::Base::String __trackInfo;
111 }; // _AudioContentInfoImpl
115 #endif // _FCNT_INTERNAL_AUDIO_CONTENT_INFO_IMPL_H_