NABI issue 43925
[apps/osp/Camera.git] / inc / CmCameraSettingsPresentationModel.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                CmCameraSettingsPresentationModel.h
19  * @brief               This is the header file for CameraSettingsPresentationModel class.
20  */
21
22 #ifndef _CM_CAMERA_SETTINGS_PRESENTATION_MODEL_H_
23 #define _CM_CAMERA_SETTINGS_PRESENTATION_MODEL_H_
24
25 #include <FApp.h>
26 #include <FIo.h>
27 #include <FBase.h>
28 #include <FMedia.h>
29 #include <FSystem.h>
30 #include "CmTypes.h"
31 #include "CmUtility.h"
32
33 class CameraSettingsPresentationModel
34 {
35 public:
36         result GetValue(const Tizen::Base::String& strSectionName, const Tizen::Base::String& entryName, int& value) const;
37         result SetValue(const Tizen::Base::String& strSectionName, const Tizen::Base::String& entryName, int value);
38         result ResetCameraSettingsRegistry(void);
39
40         static CameraSettingsPresentationModel* GetInstance(void);
41
42 private:
43         CameraSettingsPresentationModel(void);
44         CameraSettingsPresentationModel(const CameraSettingsPresentationModel&);
45         CameraSettingsPresentationModel& operator = (const CameraSettingsPresentationModel&);
46         virtual ~CameraSettingsPresentationModel(void);
47
48         result Construct(void);
49
50         static void CreateInstance(void);
51         static void DestroyInstance(void);
52         static void DestroyCameraSettingInstance(void);
53
54         result RemoveDefaultRegistry(void);
55
56         result CreateRegistry(bool bResetSettings= false);
57         friend class CameraApp;
58
59 private:
60         static CameraSettingsPresentationModel* __pCameraSettingsPresentationModel;
61         mutable Tizen::Io::Registry* __pDefaultCameraRegistry;
62 };
63
64 #endif // _CM_CAMERA_SETTINGS_PRESENTATION_MODEL_H_