equal
deleted
inserted
replaced
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". |
26 #include <QMetaType> |
26 #include <QMetaType> |
27 #include "cxefeaturemanager.h" |
27 #include "cxefeaturemanager.h" |
28 #include "cxeerror.h" |
28 #include "cxeerror.h" |
29 |
29 |
30 // forward declarations |
30 // forward declarations |
31 class CxeSettingsModel; |
31 class CxeSettings; |
32 |
32 |
33 |
33 |
34 |
34 |
35 /* |
35 /* |
36 * Handling and accessing configured run-time values for specific features |
36 * Handling and accessing configured run-time values for specific features |
39 class CxeFeatureManagerImp : public CxeFeatureManager |
39 class CxeFeatureManagerImp : public CxeFeatureManager |
40 { |
40 { |
41 |
41 |
42 public: |
42 public: |
43 |
43 |
44 CxeFeatureManagerImp(CxeSettingsModel& settingsModel); |
44 CxeFeatureManagerImp(CxeSettings &settings); |
45 virtual ~CxeFeatureManagerImp(); |
45 virtual ~CxeFeatureManagerImp(); |
46 |
46 |
47 /* |
47 CxeError::Id isFeatureSupported(const QString &key, bool &value) const; |
48 * returns if a feature is supported or not |
48 CxeError::Id configuredValues(const QString &key, QList<int> &values); |
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 |
49 |
60 private: // not owned |
50 private: |
61 CxeSettingsModel& mSettingsModel; |
51 CxeSettings &mSettings; |
62 |
52 |
63 }; |
53 }; |
64 |
54 |
65 #endif /*CXEFEATUREMANAGERIMP_H_*/ |
55 #endif /*CXEFEATUREMANAGERIMP_H_*/ |
66 |
56 |