|
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 #include <rsssettings.h> |
|
19 #include <psetcontainer.h> |
|
20 #include <psetcallwaiting.h> |
|
21 #include "psetcallwaitingwrapper.h" |
|
22 #include "psetcallwaitingwrapper_p.h" |
|
23 #include "logging.h" |
|
24 |
|
25 /*! |
|
26 PSetCallWaitingWrapper::PSetCallWaitingWrapper |
|
27 */ |
|
28 PSetCallWaitingWrapper::PSetCallWaitingWrapper( |
|
29 CPsetContainer &psetContainer, |
|
30 QObject *parent) : |
|
31 QObject(parent), |
|
32 m_psetCallWaiting(NULL), |
|
33 m_privateImpl(new PSetCallWaitingWrapperPrivate(*this)) |
|
34 { |
|
35 DPRINT << ": IN "; |
|
36 |
|
37 QT_TRAP_THROWING(m_psetCallWaiting = |
|
38 psetContainer.CreateCWObjectL(*m_privateImpl)); |
|
39 |
|
40 DPRINT << ": OUT "; |
|
41 } |
|
42 |
|
43 /*! |
|
44 PSetCallWaitingWrapper::~PSetCallWaitingWrapper |
|
45 */ |
|
46 PSetCallWaitingWrapper::~PSetCallWaitingWrapper() |
|
47 { |
|
48 DPRINT << ": IN "; |
|
49 |
|
50 delete m_psetCallWaiting; |
|
51 |
|
52 DPRINT << ": OUT "; |
|
53 } |
|
54 |
|
55 // -------- Wrapper interface --------- // |
|
56 /*! |
|
57 PSetCallWaitingWrapper::setCallWaiting |
|
58 */ |
|
59 void PSetCallWaitingWrapper::setCallWaiting(PsCallWaitingCommand aSetting, |
|
60 int aBasicServiceGroup ) |
|
61 { |
|
62 DPRINT << ": IN "; |
|
63 |
|
64 QT_TRAP_THROWING(m_psetCallWaiting->SetCallWaitingL( |
|
65 (MPsetCallWaiting::TSetCallWaiting)aSetting, |
|
66 (TBasicServiceGroups)aBasicServiceGroup)); |
|
67 |
|
68 DPRINT << ": OUT "; |
|
69 } |
|
70 |
|
71 /*! |
|
72 PSetCallWaitingWrapper::getCallWaitingStatus |
|
73 */ |
|
74 void PSetCallWaitingWrapper::getCallWaitingStatus() |
|
75 { |
|
76 DPRINT << ": IN "; |
|
77 |
|
78 QT_TRAP_THROWING(m_psetCallWaiting->GetCallWaitingStatusL()); |
|
79 |
|
80 DPRINT << ": OUT "; |
|
81 } |
|
82 |
|
83 /*! |
|
84 PSetCallWaitingWrapper::cancelProcess |
|
85 */ |
|
86 void PSetCallWaitingWrapper::cancelProcess() |
|
87 { |
|
88 DPRINT << ": IN "; |
|
89 |
|
90 m_psetCallWaiting->CancelProcess(); |
|
91 |
|
92 DPRINT << ": OUT "; |
|
93 } |
|
94 |
|
95 /*! |
|
96 PSetCallWaitingWrapper::getCPsetCallWaiting |
|
97 */ |
|
98 CPsetCallWaiting & PSetCallWaitingWrapper::getCPsetCallWaiting() const |
|
99 { |
|
100 DPRINT; |
|
101 |
|
102 return *m_psetCallWaiting; |
|
103 } |
|
104 |
|
105 // End of File. |