|
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 <QDebug> |
|
19 #include <smcmockclassincludes.h> |
|
20 #include <cvoicemailbox.h> |
|
21 #include <cvoicemailboxentry.h> |
|
22 #include <mvoicemailboxobserver.h> |
|
23 |
|
24 |
|
25 // ============================ MEMBER FUNCTIONS =============================== |
|
26 |
|
27 // ----------------------------------------------------------------------------- |
|
28 // TVoiceMailboxParams::TVoiceMailboxParams |
|
29 // ----------------------------------------------------------------------------- |
|
30 // |
|
31 TVoiceMailboxParams::TVoiceMailboxParams( ) |
|
32 { |
|
33 |
|
34 } |
|
35 |
|
36 |
|
37 // ----------------------------------------------------------------------------- |
|
38 // TVoiceMailboxParams::Version |
|
39 // ----------------------------------------------------------------------------- |
|
40 // |
|
41 TInt TVoiceMailboxParams::Version( ) |
|
42 { |
|
43 SMC_MOCK_METHOD0( TInt ) |
|
44 } |
|
45 |
|
46 |
|
47 // ----------------------------------------------------------------------------- |
|
48 // TVoiceMailboxParams::TVoiceMailboxParams |
|
49 // ----------------------------------------------------------------------------- |
|
50 // |
|
51 TVoiceMailboxParams::TVoiceMailboxParams( |
|
52 const CVoiceMailboxEntry & aEntry ) |
|
53 { |
|
54 |
|
55 } |
|
56 |
|
57 |
|
58 // ----------------------------------------------------------------------------- |
|
59 // CVoiceMailbox::CVoiceMailbox |
|
60 // ----------------------------------------------------------------------------- |
|
61 // |
|
62 CVoiceMailbox::CVoiceMailbox( ) |
|
63 //: |
|
64 //CBase( /**/ ) |
|
65 { |
|
66 |
|
67 } |
|
68 |
|
69 |
|
70 // ----------------------------------------------------------------------------- |
|
71 // CVoiceMailbox::ConstructL |
|
72 // ----------------------------------------------------------------------------- |
|
73 // |
|
74 void CVoiceMailbox::ConstructL( ) |
|
75 { |
|
76 |
|
77 } |
|
78 |
|
79 |
|
80 // ----------------------------------------------------------------------------- |
|
81 // CVoiceMailbox::NewL |
|
82 // ----------------------------------------------------------------------------- |
|
83 // |
|
84 CVoiceMailbox * CVoiceMailbox::NewL( ) |
|
85 { |
|
86 SMC_MOCK_NEWL0( CVoiceMailbox * ) |
|
87 |
|
88 CVoiceMailbox* self = new( ELeave ) CVoiceMailbox; |
|
89 CleanupStack::PushL( self ); |
|
90 //self->ConstructL() |
|
91 CleanupStack::Pop( self ); |
|
92 return self; |
|
93 } |
|
94 |
|
95 |
|
96 // ----------------------------------------------------------------------------- |
|
97 // CVoiceMailbox::NewLC |
|
98 // ----------------------------------------------------------------------------- |
|
99 // |
|
100 CVoiceMailbox * CVoiceMailbox::NewLC( ) |
|
101 { |
|
102 SMC_MOCK_NEWLC0( CVoiceMailbox * ) |
|
103 |
|
104 CVoiceMailbox* self = new( ELeave ) CVoiceMailbox; |
|
105 CleanupStack::PushL( self ); |
|
106 //self->ConstructL() |
|
107 return self; |
|
108 } |
|
109 |
|
110 |
|
111 // ----------------------------------------------------------------------------- |
|
112 // CVoiceMailbox::~CVoiceMailbox |
|
113 // ----------------------------------------------------------------------------- |
|
114 // |
|
115 CVoiceMailbox::~CVoiceMailbox( ) |
|
116 { |
|
117 |
|
118 } |
|
119 |
|
120 |
|
121 // ----------------------------------------------------------------------------- |
|
122 // CVoiceMailbox::GetStoredEntry |
|
123 // ----------------------------------------------------------------------------- |
|
124 // |
|
125 TInt CVoiceMailbox::GetStoredEntry( |
|
126 const TVoiceMailboxParams & aParams, |
|
127 CVoiceMailboxEntry * & aEntry ) const |
|
128 { |
|
129 } |
|
130 |
|
131 |
|
132 // ----------------------------------------------------------------------------- |
|
133 // CVoiceMailbox::SaveEntry |
|
134 // ----------------------------------------------------------------------------- |
|
135 // |
|
136 TInt CVoiceMailbox::SaveEntry( |
|
137 const CVoiceMailboxEntry & aEntry ) |
|
138 { |
|
139 SMC_MOCK_METHOD1( TInt, const CVoiceMailboxEntry &, aEntry ) |
|
140 } |
|
141 |
|
142 |
|
143 // ----------------------------------------------------------------------------- |
|
144 // CVoiceMailbox::QueryNewEntry |
|
145 // ----------------------------------------------------------------------------- |
|
146 // |
|
147 TInt CVoiceMailbox::QueryNewEntry( |
|
148 const TVoiceMailboxParams & aParams, |
|
149 CVoiceMailboxEntry * & aEntry ) |
|
150 { |
|
151 SMC_MOCK_METHOD2( TInt, const TVoiceMailboxParams &, aParams, |
|
152 CVoiceMailboxEntry *, aEntry ) |
|
153 } |
|
154 |
|
155 |
|
156 // ----------------------------------------------------------------------------- |
|
157 // CVoiceMailbox::QueryChangeEntry |
|
158 // ----------------------------------------------------------------------------- |
|
159 // |
|
160 TInt CVoiceMailbox::QueryChangeEntry( |
|
161 const TVoiceMailboxParams & aParams, |
|
162 CVoiceMailboxEntry * & aEntry ) |
|
163 { |
|
164 SMC_MOCK_METHOD2( TInt, const TVoiceMailboxParams &, aParams, |
|
165 CVoiceMailboxEntry *, aEntry ) |
|
166 } |
|
167 |
|
168 |
|
169 // ----------------------------------------------------------------------------- |
|
170 // CVoiceMailbox::QueryVmbxType |
|
171 // ----------------------------------------------------------------------------- |
|
172 // |
|
173 TInt CVoiceMailbox::QueryVmbxType( |
|
174 TVoiceMailboxParams & aParams ) |
|
175 { |
|
176 SMC_MOCK_METHOD1( TInt, TVoiceMailboxParams &, aParams ) |
|
177 } |
|
178 |
|
179 |
|
180 // ----------------------------------------------------------------------------- |
|
181 // CVoiceMailbox::NotifyVmbxNumberChangeL |
|
182 // ----------------------------------------------------------------------------- |
|
183 // |
|
184 void CVoiceMailbox::NotifyVmbxNumberChangeL( |
|
185 MVoiceMailboxObserver & aObserver, |
|
186 const TBool aNotifyOnActiveLineOnly ) |
|
187 { |
|
188 SMC_MOCK_METHOD2( void, MVoiceMailboxObserver &, aObserver, |
|
189 const TBool, aNotifyOnActiveLineOnly ) |
|
190 } |
|
191 |
|
192 |
|
193 // ----------------------------------------------------------------------------- |
|
194 // CVoiceMailbox::NotifyVmbxNumberChangeCancel |
|
195 // ----------------------------------------------------------------------------- |
|
196 // |
|
197 void CVoiceMailbox::NotifyVmbxNumberChangeCancel( ) |
|
198 { |
|
199 SMC_MOCK_METHOD0( void ) |
|
200 } |
|
201 |
|
202 |
|
203 // ----------------------------------------------------------------------------- |
|
204 // CVoiceMailbox::CheckConfiguration |
|
205 // ----------------------------------------------------------------------------- |
|
206 // |
|
207 TBool CVoiceMailbox::CheckConfiguration( |
|
208 const TVoiceMailboxParams & aParams, |
|
209 const TInt aFlags ) |
|
210 { |
|
211 SMC_MOCK_METHOD2( TBool, const TVoiceMailboxParams &, aParams, |
|
212 const TInt, aFlags ) |
|
213 } |
|
214 |
|
215 |
|
216 // ----------------------------------------------------------------------------- |
|
217 // CVoiceMailbox::GetServiceIds |
|
218 // ----------------------------------------------------------------------------- |
|
219 // |
|
220 TInt CVoiceMailbox::GetServiceIds( |
|
221 RIdArray & aProfileIds ) const |
|
222 { |
|
223 SMC_MOCK_METHOD1( TInt, RIdArray &, aProfileIds ) |
|
224 } |
|
225 |
|
226 |
|
227 // ----------------------------------------------------------------------------- |
|
228 // CVoiceMailbox::SaveProvisionedEntry |
|
229 // ----------------------------------------------------------------------------- |
|
230 // |
|
231 TInt CVoiceMailbox::SaveProvisionedEntry( |
|
232 const CVoiceMailboxEntry & aEntry ) |
|
233 { |
|
234 SMC_MOCK_METHOD1( TInt, const CVoiceMailboxEntry &, aEntry ) |
|
235 } |
|
236 |
|
237 |