Initialize Tizen 2.3
[apps/osp/Gallery.git] / inc / GlSettingPresentationModel.h
1 //
2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
3 //
4 // Licensed under the Flora License, Version 1.1 (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://floralicense.org/license/
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                GlSettingPresentationModel.h
19  * @brief               This is the header file for SettingPresentationModel class.
20  */
21
22 #ifndef _GL_SETTING_PRESENTATION_MODEL_H_
23 #define _GL_SETTING_PRESENTATION_MODEL_H_
24
25 #include <FApp.h>
26 #include <FIo.h>
27
28 class SettingPresentationModel
29         : public Tizen::Base::Object
30 {
31 public:
32         static SettingPresentationModel* GetInstance(void);
33
34 public:
35         result GetValue(const Tizen::Base::String& strSectionName, const Tizen::Base::String& entryName,
36                         int& value) const;
37         result GetValue(const Tizen::Base::String& strSectionName, const Tizen::Base::String& entryName,
38                         Tizen::Base::String& value) const;
39         result SetValue(const Tizen::Base::String& strSectionName, const Tizen::Base::String& entryName, int value);
40         result SetValue(const Tizen::Base::String& strSectionName, const Tizen::Base::String& entryName,
41                         const Tizen::Base::String& value);
42
43         result CreateDefaultRegistry(void);
44
45         void DeleteRegistry(void);
46 private:
47         SettingPresentationModel(void);
48         virtual ~SettingPresentationModel(void);
49         SettingPresentationModel(SettingPresentationModel& value);
50         SettingPresentationModel& operator=(SettingPresentationModel&);
51
52         result Construct(void);
53         static void CreateInstance(void);
54         static void DestroyInstance(void);
55
56
57 private:
58         Tizen::Io::Registry* __pDefaultGalleryRegistry;
59         static SettingPresentationModel* __pPresentationModelInstance;
60 };
61
62 #endif /* _GL_SETTING_PRESENTATION_MODEL_H_ */