diff -r 61bc0f252b2b -r bac7acad7cb3 camerauis/cameraxui/cxengine/inc/cxesettingsimp.h --- a/camerauis/cameraxui/cxengine/inc/cxesettingsimp.h Tue Aug 31 15:03:46 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,84 +0,0 @@ -/* -* Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ -#ifndef CXESETTINGSIMP_H -#define CXESETTINGSIMP_H - -#include -#include "cxesettings.h" -#include "cxeerror.h" -#include "cxescenemodestore.h" - -// forward declaration -class CxeSettingsStore; - - -typedef QPair CxeSettingListener; -typedef QList CxeSettingListenerList; - -/* -* Class to access all kind of Settings -*/ -class CxeSettingsImp : public CxeSettings -{ - Q_OBJECT - -public: - - CxeSettingsImp(CxeSettingsStore *settingStore); - virtual ~CxeSettingsImp(); - - void get(long int uid, unsigned long int key, Cxe::SettingKeyType type, QVariant &value) const; - void reset(); - CxeError::Id getVariationValue(const QString &key, QVariant &value); - bool listenForSetting(const QString &settingKey, QObject *target, const char *slot); - -public slots: - void loadSettings(Cxe::CameraMode mode); - -protected: - void getValue(const QString &key, QVariant &value) const; - void setValue(const QString &key, const QVariant &newValue); - -private: // helper methods - - void restoreImageSettings(); - void restoreVideoSettings(); - - void setImageScene(const QString &newScene); - void setVideoScene(const QString &newScene); - - void loadVariationSettings(); - - void notifyListeners(const QString &settingKey, const QVariant &newValue); - -private slots: - void handleListenerDestroyed(QObject *object); - -private: - - CxeSettingsStore *mSettingStore; - QHash mVariationSettings; - - CxeSceneModeStore mSceneModeStore; - Cxe::CameraMode mCameraMode; - - QMap mSettingListeners; -}; - -#endif // CXESETTINGSIMP_H - -// end of file