2 // Open Service Platform
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
5 // Licensed under the Apache License, Version 2.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
9 // http://www.apache.org/licenses/LICENSE-2.0
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
18 * @file FCnt_PlayListManagerImpl.h
19 * @brief This is the header file for the %_PlayListManagerImpl class.
21 * This header file contains the declarations of the %_PlayListManagerImpl class.
24 #ifndef _FCNT_INTERNAL_CONTENT_PLAYLIST_MANAGER_IMPL_H_
25 #define _FCNT_INTERNAL_CONTENT_PLAYLIST_MANAGER_IMPL_H_
27 #include <unique_ptr.h>
28 #include <media_content.h>
29 #include <FBaseColAllElementsDeleter.h>
31 namespace Tizen { namespace Content
34 class PlayListManager;
39 void operator()(filter_h* filterHandle)
41 media_filter_destroy(*filterHandle);
45 class _PlayListManagerImpl
46 : public Tizen::Base::Object
51 * This is the default constructor for this class.
55 _PlayListManagerImpl(void);
58 * This is the destructor for this class.
62 virtual ~_PlayListManagerImpl(void);
64 result Construct(void);
65 PlayList* GetPlayListN(const Tizen::Base::String& playListName) const;
66 result RemovePlayList(const Tizen::Base::String& playListName);
67 int GetAllPlayListCount(void) const;
68 Tizen::Base::Collection::IList* GetAllPlayListNameN(void) const;
70 static _PlayListManagerImpl* GetInstance(PlayListManager& playListManager);
72 static const _PlayListManagerImpl* GetInstance(const PlayListManager& playListManager);
75 _PlayListManagerImpl(const _PlayListManagerImpl& rhs);
76 _PlayListManagerImpl& operator =(const _PlayListManagerImpl& rhs);
78 result CreateFilter(const Tizen::Base::String& playListName) const;
80 result MapCoreErrorToNativeResult(int reason) const;
81 result MapCoreDatabaseErrorToNativeResult(int reason) const;
83 mutable std::unique_ptr<filter_h, FilterDeleter> __pFilterHandle;
85 }; // class _PlayListManagerImpl
89 #endif // _FCNT_INTERNAL_CONTENT_PLAYLIST_MANAGER_IMPL_H_