camerauis/cameraxui/cxengine/inc/cxesettingsstoredesktop.h
branchRCL_3
changeset 24 bac7acad7cb3
parent 23 61bc0f252b2b
child 25 2c87b2808fd7
equal deleted inserted replaced
23:61bc0f252b2b 24:bac7acad7cb3
     1 /*
       
     2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef  CXESETTINGSSTOREDESKTOP_H_
       
    19 #define  CXESETTINGSSTOREDESKTOP_H_
       
    20 
       
    21 //  Include Files
       
    22 #include <QHash>
       
    23 #include <QVariant>
       
    24 #include <QMetaType>
       
    25 #include "cxesettingsstore.h"
       
    26 #include "cxeerror.h"
       
    27 
       
    28 /*!
       
    29 * CxeSettingsStoreDesktop class implements CxeSettingsStore.
       
    30 */
       
    31 class CxeSettingsStoreDesktop : public QObject,
       
    32                                 public CxeSettingsStore
       
    33 {
       
    34     Q_OBJECT
       
    35 
       
    36 public:
       
    37 
       
    38     CxeSettingsStoreDesktop();
       
    39     ~CxeSettingsStoreDesktop();
       
    40 
       
    41 public: // from base class
       
    42     void reset();
       
    43     CxeError::Id get(const QString &key, QVariant &value);
       
    44     void startMonitoring(long int uid, unsigned long int key, Cxe::SettingKeyType type, QVariant &value);
       
    45     CxeError::Id set(const QString &key,const QVariant newValue);
       
    46 
       
    47     QHash<QString, QVariantList> loadVariationSettings(QList<QString> &settingKeys);
       
    48 
       
    49 private:
       
    50     void initSettings();
       
    51 
       
    52 private:
       
    53     QHash<QString, QVariant> mSettings;
       
    54 
       
    55 };
       
    56 
       
    57 #endif  // CXESETTINGSSTOREDESKTOP_H_
       
    58