|
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 #ifndef SSSETTINGSWRAPPER_H |
|
19 #define SSSETTINGSWRAPPER_H |
|
20 |
|
21 |
|
22 #include <QObject> |
|
23 #include <sssettingswrappertypes.h> |
|
24 |
|
25 class RSSSettings; |
|
26 class SsSettingsWrapperPrivate; |
|
27 |
|
28 #ifdef BUILD_SSSETTINGSWRAPPER |
|
29 #define SSSETTINGSWRAPPER_EXPORT Q_DECL_EXPORT |
|
30 #else |
|
31 #define SSSETTINGSWRAPPER_EXPORT Q_DECL_IMPORT |
|
32 #endif |
|
33 |
|
34 class SSSETTINGSWRAPPER_EXPORT SsSettingsWrapper: public QObject |
|
35 { |
|
36 Q_OBJECT |
|
37 |
|
38 public: |
|
39 explicit SsSettingsWrapper(QObject *parent = NULL); |
|
40 virtual ~SsSettingsWrapper(); |
|
41 |
|
42 public: // Functions: |
|
43 /** |
|
44 Getter for supplementary service setting values. |
|
45 @param setting Enumeration of which setting is get. |
|
46 @param value Setting value. |
|
47 @return Zero if no error occurred. |
|
48 */ |
|
49 int get(SsSettingsWrapperSettings setting, int &value); |
|
50 |
|
51 /** |
|
52 Setter for supplementary service setting values. |
|
53 @param setting Enumeration of which setting is set. |
|
54 @param value Setting value. |
|
55 @return Zero if no error occurred. |
|
56 */ |
|
57 int set(SsSettingsWrapperSettings setting, int value ); |
|
58 |
|
59 signals: |
|
60 /** |
|
61 Signals when supplementary setting value changes. |
|
62 @param setting Enumeration of which setting is changed. |
|
63 @param value Setting value. |
|
64 */ |
|
65 void phoneSettingChanged( |
|
66 SsSettingsWrapperSettings setting, |
|
67 int newValue ); |
|
68 |
|
69 private: // Data: |
|
70 // Own |
|
71 RSSSettings *m_ssSettings; |
|
72 |
|
73 // Wrapper |
|
74 // Own |
|
75 SsSettingsWrapperPrivate* m_Priv; |
|
76 friend class SsSettingsWrapperPrivate; |
|
77 |
|
78 }; |
|
79 #endif // SSSETTINGSWRAPPER |
|
80 |