1 /* |
1 /* |
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
15 * |
15 * |
16 */ |
16 */ |
17 #ifndef CXEFAKESETTINGS_H |
17 #ifndef CXEFAKESETTINGS_H |
18 #define CXEFAKESETTINGS_H |
18 #define CXEFAKESETTINGS_H |
19 |
19 |
20 #include "cxesettingscenrepstore.h" |
20 #include "cxesettingsstore.h" |
21 #include "cxeerror.h" |
21 #include "cxeerror.h" |
22 |
22 |
23 class CxeFakeSettingsStore : public CxeSettingsStore |
23 class CxeFakeSettingsStore : public CxeSettingsStore |
24 { |
24 { |
25 |
25 |
26 public: |
26 public: |
27 CxeFakeSettingsStore(); |
27 CxeFakeSettingsStore(); |
28 ~CxeFakeSettingsStore(); |
28 ~CxeFakeSettingsStore(); |
29 |
29 |
30 public: // from base class |
30 public: // from base class |
31 void reset(); |
31 void reset(); |
32 CxeError::Id get(const QString& key, QVariant &value); |
32 CxeError::Id get(const QString& key, QVariant &value); |
33 void startMonitoring(long int uid, unsigned long int key, Cxe::SettingKeyType type, QVariant &value); |
33 void startMonitoring(long int uid, unsigned long int key, Cxe::SettingKeyType type, QVariant &value); |
34 CxeError::Id set(const QString& key,const QVariant newValue); |
34 CxeError::Id set(const QString& key,const QVariant newValue); |
35 QHash<QString, QVariantList> loadRuntimeSettings(QList<QString>& keylist); |
35 QHash<QString, QVariantList> loadVariationSettings(QList<QString> &settingKeys); |
|
36 |
|
37 private: |
|
38 void resetSettings(); |
36 |
39 |
37 private: |
40 private: |
38 QHash<QString, QVariant> mSettingKeyHash; |
41 QHash<QString, QVariant> mSettingKeyHash; |
39 QHash<QString, QVariant> mRuntimeKeyHash; |
42 QHash<QString, QVariant> mVariationKeyHash; |
40 }; |
43 }; |
41 |
44 |
42 #endif /*CXEFAKESETTINGS_H*/ |
45 #endif /*CXEFAKESETTINGS_H*/ |
43 |
46 |
44 // end of file |
47 // end of file |