|
1 /* |
|
2 * Copyright (c) 2009 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 * cxefeaturemanager.h |
|
19 * |
|
20 * Created on: Dec 30, 2008 |
|
21 * |
|
22 */ |
|
23 #ifndef CXEFEATUREMANAGERIMP_H_ |
|
24 #define CXEFEATUREMANAGERIMP_H_ |
|
25 |
|
26 #include <QMetaType> |
|
27 #include "cxefeaturemanager.h" |
|
28 #include "cxeerror.h" |
|
29 |
|
30 // forward declarations |
|
31 class CxeSettingsModel; |
|
32 |
|
33 |
|
34 |
|
35 /* |
|
36 * Handling and accessing configured run-time values for specific features |
|
37 * Handles ICM and CxUi run-time features |
|
38 */ |
|
39 class CxeFeatureManagerImp : public CxeFeatureManager |
|
40 { |
|
41 |
|
42 public: |
|
43 |
|
44 CxeFeatureManagerImp(CxeSettingsModel& settingsModel); |
|
45 virtual ~CxeFeatureManagerImp(); |
|
46 |
|
47 /* |
|
48 * returns if a feature is supported or not |
|
49 * true -> supported |
|
50 * false -> not supported |
|
51 */ |
|
52 CxeError::Id isFeatureSupported(const QString& key, bool& value) const; |
|
53 |
|
54 |
|
55 /* |
|
56 * We retrieve all the configured values for the given key |
|
57 */ |
|
58 CxeError::Id configuredValues(const QString& key,QList<int>& values); |
|
59 |
|
60 private: // not owned |
|
61 CxeSettingsModel& mSettingsModel; |
|
62 |
|
63 }; |
|
64 |
|
65 #endif /*CXEFEATUREMANAGERIMP_H_*/ |
|
66 |
|
67 // end of file |