2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
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
8 // http://floralicense.org/license/
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.
18 * @file CmCameraSettingsPresentationModel.h
19 * @brief This is the header file for CameraSettingsPresentationModel class.
22 #ifndef _CM_CAMERA_SETTINGS_PRESENTATION_MODEL_H_
23 #define _CM_CAMERA_SETTINGS_PRESENTATION_MODEL_H_
31 #include "CmUtility.h"
33 class CameraSettingsPresentationModel
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);
40 static CameraSettingsPresentationModel* GetInstance(void);
43 CameraSettingsPresentationModel(void);
44 CameraSettingsPresentationModel(const CameraSettingsPresentationModel&);
45 CameraSettingsPresentationModel& operator = (const CameraSettingsPresentationModel&);
46 virtual ~CameraSettingsPresentationModel(void);
48 result Construct(void);
50 static void CreateInstance(void);
51 static void DestroyInstance(void);
52 static void DestroyCameraSettingInstance(void);
54 result RemoveDefaultRegistry(void);
56 result CreateRegistry(bool bResetSettings= false);
57 friend class CameraApp;
60 static CameraSettingsPresentationModel* __pCameraSettingsPresentationModel;
61 mutable Tizen::Io::Registry* __pDefaultCameraRegistry;
64 #endif // _CM_CAMERA_SETTINGS_PRESENTATION_MODEL_H_