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.
17 * @author Zbigniew Kostrzewa (z.kostrzewa@samsung.com)
20 #ifndef WRTDEVICEAPIS_PROFILE_MANAGER_H_
21 #define WRTDEVICEAPIS_PROFILE_MANAGER_H_
24 #include <API/Profile/IManager.h>
25 #include <VConf/Key.h>
27 namespace WrtDeviceApis {
29 class Manager : public Profile::Api::IManager
32 static Manager& getInstance();
38 * @ release singleton resource while singleton deconstructor is not invoked.
43 * @see WrtPlugins::Profile::Api::IManager::getDesktop()
45 Profile::Api::IDesktopPtr getDesktop(std::size_t index) const;
48 * @see WrtPlugins::Profile::Api::IManager::getDesktopsCount()
50 std::size_t getDesktopCount() const;
53 * @see WrtPlugins::Profile::Api::IManager::getRingtone()
55 Profile::Api::IRingtone* getRingtone(Profile::Api::RingtoneScope scope)
59 * @see WrtPlugins::Profile::Api::IManager::getProfileType()
61 Profile::Api::IManager::ProfileType getProfileType() const;
64 * @see WrtPlugins::Profile::Api::IManager::getSystemVolume()
66 int getSystemVolume() const;
68 int getVibrateType() const;
70 // int getMsgAlertType() const;
73 typedef std::map<Profile::Api::RingtoneScope,
74 Profile::Api::IRingtone*> Ringtones;
75 typedef std::map<std::size_t, Profile::Api::IDesktopPtr> Desktops;
79 Profile::Api::IRingtone* getRingtone_(Profile::Api::RingtoneScope scope)
83 mutable Ringtones m_ringtones;
84 mutable Desktops m_desktops;
85 VConf::Key m_profileKey;
86 VConf::Key m_volumeKey;
87 VConf::Key m_vibrationKey;
92 #endif // WRTDEVICEAPIS_PROFILE_MANAGER_H_