Apply string localization for web
[platform/framework/native/appfw.git] / src / server / system / setting / providers / FSys_SettingSoundProvider.h
1 //
2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
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  * @file        FSys_SettingSoundProvider.h
19  * @brief       This is the header file for the %_SettingSoundProvider class.
20  *
21  * This header file contains the declarations of the %_SettingSoundProvider class.
22  */
23
24 #ifndef _FSYS_SETTING_SOUND_PROVIDER_H_
25 #define _FSYS_SETTING_SOUND_PROVIDER_H_
26
27 #include <media/sound_manager.h>
28 #include <vconf.h>
29 #include <runtime_info.h>
30 #include <system/system_settings.h>
31
32 #include "FSys_ISettingProvider.h"
33
34 namespace Tizen { namespace System
35 {
36
37 class _SettingSoundProvider
38         : virtual public Tizen::System::_ISettingProvider
39 {
40 public:
41         _SettingSoundProvider();
42         virtual ~_SettingSoundProvider();
43
44 public:
45         result GetValue(const Tizen::Base::String& key, bool& value);
46         result SetValue(const Tizen::Base::String& key, const bool value);
47
48         result GetValue(const Tizen::Base::String& key, int& value);
49         result SetValue(const Tizen::Base::String& key, const int value);
50
51         result GetValue(const Tizen::Base::String& key, Tizen::Base::String& value);
52         result SetValue(const Tizen::Base::String& key, const Tizen::Base::String value);
53
54         bool HasKey(const Tizen::Base::String& key);
55
56 private:
57         static void SettingEventSoundManager(sound_type_e type, unsigned int volume, void* userData);
58         static void SettingEventSettingInfo(system_settings_key_e key, void* userData);
59         static void SettingEventRuntimeInfo(runtime_info_key_e key, void* userData);
60         static void SettingEventVConf(keynode_t* node, void* userData);
61 }; // _SettingSoundProvider
62
63 }} // Tizen::System
64
65 #endif // _FSYS_ISETTING_SOUND_PROVIDER_H_