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 #ifndef PSETWRAPPER_H |
|
18 #define PSETWRAPPER_H |
|
19 |
|
20 #include <QObject> |
|
21 |
|
22 class CPsetContainer; |
|
23 class PSetCliWrapper; |
|
24 class PSetCallWaitingWrapper; |
|
25 class PSetCallDivertingWrapper; |
|
26 class PSetNetworkWrapper; |
|
27 class PSetCallBarringWrapper; |
|
28 |
|
29 #ifdef BUILD_PSETWRAPPER |
|
30 #define PSETWRAPPER_EXPORT Q_DECL_EXPORT |
|
31 #else |
|
32 #define PSETWRAPPER_EXPORT Q_DECL_IMPORT |
|
33 #endif |
|
34 |
|
35 class PSETWRAPPER_EXPORT PSetWrapper: public QObject |
|
36 { |
|
37 Q_OBJECT |
|
38 |
|
39 public: |
|
40 |
|
41 explicit PSetWrapper(QObject *parent = NULL); |
|
42 |
|
43 ~PSetWrapper(); |
|
44 |
|
45 public: // Functions: |
|
46 /** |
|
47 Returns reference to call line identification settings. |
|
48 @exception bad alloc if creations fails |
|
49 */ |
|
50 PSetCliWrapper& cliWrapper(); |
|
51 |
|
52 /** |
|
53 Returns reference to call waiting settings. |
|
54 @exception bad alloc, if creations fails. |
|
55 */ |
|
56 PSetCallWaitingWrapper& callWaitingWrapper(); |
|
57 |
|
58 /** |
|
59 Returns reference to call diverting settings. |
|
60 @exception bad alloc, if creations fails. |
|
61 */ |
|
62 PSetCallDivertingWrapper& callDivertingWrapper(); |
|
63 |
|
64 /** |
|
65 Returns reference to network settings. |
|
66 @exception bad alloc, if creations fails. |
|
67 */ |
|
68 PSetNetworkWrapper& networkWrapper(); |
|
69 |
|
70 /** |
|
71 Returns reference to call barring settings. |
|
72 @exception bad alloc, if creations fails. |
|
73 */ |
|
74 PSetCallBarringWrapper& callBarringWrapper(); |
|
75 |
|
76 private: // Data: |
|
77 // Own |
|
78 CPsetContainer *m_psetContainer; |
|
79 |
|
80 // Phone setting handlers |
|
81 PSetCliWrapper *m_wrapperCli; |
|
82 |
|
83 PSetCallWaitingWrapper *m_callWaitingWrapper; |
|
84 |
|
85 PSetCallDivertingWrapper *m_callDivertingWrapper; |
|
86 |
|
87 PSetNetworkWrapper *m_networkWrapper; |
|
88 |
|
89 PSetCallBarringWrapper *m_callBarringWrapper; |
|
90 |
|
91 }; |
|
92 #endif // PSETWRAPPER |
|
93 |
|