|
1 /* |
|
2 * Copyright (c) 2007 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: Implementation of dialer stub. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // INCLUDE FILES |
|
20 #include "cdialer.h" |
|
21 |
|
22 #include <aknenv.h> |
|
23 |
|
24 // ========================= MEMBER FUNCTIONS ================================ |
|
25 |
|
26 // --------------------------------------------------------------------------- |
|
27 // CDialer::NewL |
|
28 // |
|
29 // Symbian OS two phased constructor for telephony phone dialer mode |
|
30 // --------------------------------------------------------------------------- |
|
31 // |
|
32 EXPORT_C CDialer* CDialer::NewL( const CCoeControl& aContainer, |
|
33 const TRect& aRect ) |
|
34 { |
|
35 CDialer* self = new( ELeave )CDialer ( ); |
|
36 CleanupStack::PushL( self ); |
|
37 self->ConstructL( aContainer , aRect ); |
|
38 CleanupStack::Pop(); // self |
|
39 return self; |
|
40 } |
|
41 |
|
42 // Destructor |
|
43 EXPORT_C CDialer::~CDialer() |
|
44 { |
|
45 // Empty |
|
46 } |
|
47 |
|
48 // --------------------------------------------------------------------------- |
|
49 // CDialer::ConstructL |
|
50 // |
|
51 // Symbian OS two phased constructor for phone dialer more. |
|
52 // --------------------------------------------------------------------------- |
|
53 // |
|
54 void CDialer::ConstructL( |
|
55 const CCoeControl& aContainer, |
|
56 const TRect& aRect ) |
|
57 { |
|
58 // set window |
|
59 SetContainerWindowL( aContainer ); |
|
60 SetParent( const_cast<CCoeControl*>(&aContainer) ); |
|
61 iParentControl = &aContainer; |
|
62 SetRect( aRect ); |
|
63 } |
|
64 |
|
65 // Constructor |
|
66 CDialer::CDialer( ) : |
|
67 iEikEnv( *CEikonEnv::Static() ) |
|
68 { |
|
69 // Empty |
|
70 } |
|
71 |
|
72 // ----------------------------------------------------------------------------- |
|
73 // CDialer::NumberEntry |
|
74 // |
|
75 // Return pointer to MNumberEntry interface. |
|
76 // ----------------------------------------------------------------------------- |
|
77 // |
|
78 EXPORT_C MNumberEntry* CDialer::NumberEntry() |
|
79 { |
|
80 return this; |
|
81 } |
|
82 |
|
83 // ----------------------------------------------------------------------------- |
|
84 // CDialer::SetNumberEntryObserver |
|
85 // |
|
86 // ----------------------------------------------------------------------------- |
|
87 // |
|
88 EXPORT_C void CDialer::SetNumberEntryObserver( MNumberEntryObserver& /*aObserver*/ ) |
|
89 { |
|
90 // Empty |
|
91 } |
|
92 |
|
93 |
|
94 // Methods from MNumberEntry |
|
95 |
|
96 // --------------------------------------------------------------------------- |
|
97 // CDialer::CreateNumberEntry |
|
98 // |
|
99 // Creates number entry in phone dialer mode. In video DTMF mode |
|
100 // only sets CBA. |
|
101 // --------------------------------------------------------------------------- |
|
102 // |
|
103 void CDialer::CreateNumberEntry() |
|
104 { |
|
105 // Empty |
|
106 } |
|
107 |
|
108 |
|
109 // --------------------------------------------------------------------------- |
|
110 // CDialer::GetNumberEntry |
|
111 // |
|
112 // --------------------------------------------------------------------------- |
|
113 // |
|
114 CCoeControl* CDialer::GetNumberEntry( ) const |
|
115 { |
|
116 return NULL; |
|
117 } |
|
118 |
|
119 // --------------------------------------------------------------------------- |
|
120 // CDialer::IsNumberEntryUsed |
|
121 // |
|
122 // --------------------------------------------------------------------------- |
|
123 // |
|
124 TBool CDialer::IsNumberEntryUsed( ) const |
|
125 { |
|
126 return EFalse; |
|
127 } |
|
128 |
|
129 // --------------------------------------------------------------------------- |
|
130 // CDialer::SetNumberEntryVisible |
|
131 // |
|
132 // --------------------------------------------------------------------------- |
|
133 // |
|
134 void CDialer::SetNumberEntryVisible( const TBool& /*aVisibility */) |
|
135 { |
|
136 // Empty |
|
137 } |
|
138 |
|
139 |
|
140 // --------------------------------------------------------------------------- |
|
141 // CDialer::SetTextToNumberEntry |
|
142 // |
|
143 // --------------------------------------------------------------------------- |
|
144 // |
|
145 void CDialer::SetTextToNumberEntry( const TDesC& /*aDesC */) |
|
146 { |
|
147 // Empty |
|
148 } |
|
149 |
|
150 // --------------------------------------------------------------------------- |
|
151 // CDialer::GetTextFromNumberEntry |
|
152 // |
|
153 // --------------------------------------------------------------------------- |
|
154 // |
|
155 void CDialer::GetTextFromNumberEntry( TDes& aDesC ) |
|
156 { |
|
157 aDesC = KNullDesC(); |
|
158 } |
|
159 |
|
160 // --------------------------------------------------------------------------- |
|
161 // CDialer::RemoveNumberEntry |
|
162 // |
|
163 // --------------------------------------------------------------------------- |
|
164 // |
|
165 void CDialer::RemoveNumberEntry( ) |
|
166 { |
|
167 iIsUsed = EFalse; |
|
168 } |
|
169 |
|
170 // --------------------------------------------------------------------------- |
|
171 // CDialer::ChangeEditorMode |
|
172 // |
|
173 // --------------------------------------------------------------------------- |
|
174 // |
|
175 TInt CDialer::ChangeEditorMode( TBool /*aDefaultMode */) |
|
176 { |
|
177 return KErrNotSupported; |
|
178 } |
|
179 |
|
180 // --------------------------------------------------------------------------- |
|
181 // CDialer::OpenVKBL |
|
182 // |
|
183 // --------------------------------------------------------------------------- |
|
184 // |
|
185 void CDialer::OpenVkbL() |
|
186 { |
|
187 // Empty |
|
188 } |
|
189 |
|
190 // --------------------------------------------------------------------------- |
|
191 // CDialer::GetEditorMode |
|
192 // |
|
193 // --------------------------------------------------------------------------- |
|
194 // |
|
195 TInt CDialer::GetEditorMode() const |
|
196 { |
|
197 return KErrNotSupported; |
|
198 } |
|
199 |
|
200 // --------------------------------------------------------------------------- |
|
201 // CDialer::ResetEditorToDefaultValues |
|
202 // |
|
203 // --------------------------------------------------------------------------- |
|
204 // |
|
205 void CDialer::ResetEditorToDefaultValues() |
|
206 { |
|
207 // Empty |
|
208 } |
|
209 |
|
210 // --------------------------------------------------------------------------- |
|
211 // CDialer::SetNumberEntryPromptText |
|
212 // |
|
213 // --------------------------------------------------------------------------- |
|
214 // |
|
215 void CDialer::SetNumberEntryPromptText( const TDesC& /*aPromptText*/ ) |
|
216 { |
|
217 // Empty |
|
218 } |
|
219 |
|
220 // --------------------------------------------------------------------------- |
|
221 // CDialer::EnableTactileFeedback |
|
222 // |
|
223 // --------------------------------------------------------------------------- |
|
224 // |
|
225 void CDialer::EnableTactileFeedback( const TBool /*aEnable*/ ) |
|
226 { |
|
227 // Empty |
|
228 } |
|
229 // Functions from CCoeControl |
|
230 |
|
231 // --------------------------------------------------------------------------- |
|
232 // CDialer::SizeChanged |
|
233 // |
|
234 // Called by framework when the view size is changed |
|
235 // |
|
236 // --------------------------------------------------------------------------- |
|
237 // |
|
238 void CDialer::SizeChanged() |
|
239 { |
|
240 // Empty |
|
241 } |
|
242 |
|
243 // --------------------------------------------------------------------------- |
|
244 // CDialer::PositionChanged |
|
245 // --------------------------------------------------------------------------- |
|
246 // |
|
247 void CDialer::PositionChanged() |
|
248 { |
|
249 // Empty |
|
250 } |
|
251 |
|
252 // --------------------------------------------------------------------------- |
|
253 // CDialer::CountComponentControls |
|
254 // |
|
255 // Returns contained controls in phone dialer mode or in video dtmf mode. |
|
256 // --------------------------------------------------------------------------- |
|
257 // |
|
258 TInt CDialer::CountComponentControls() const |
|
259 { |
|
260 return 0; |
|
261 } |
|
262 |
|
263 |
|
264 // --------------------------------------------------------------------------- |
|
265 // CDialer::ComponentControl(TInt aIndex) const |
|
266 // |
|
267 // Returns contained control by given index. |
|
268 // --------------------------------------------------------------------------- |
|
269 // |
|
270 CCoeControl* CDialer::ComponentControl( TInt /*aIndex*/ ) const |
|
271 { |
|
272 return NULL; |
|
273 } |
|
274 |
|
275 // --------------------------------------------------------------------------- |
|
276 // CDialer::Draw |
|
277 // --------------------------------------------------------------------------- |
|
278 // |
|
279 void CDialer::Draw( const TRect& /*aRect*/ ) const |
|
280 { |
|
281 } |
|
282 |
|
283 // --------------------------------------------------------------------------- |
|
284 // CDialer::FocusChanged |
|
285 // --------------------------------------------------------------------------- |
|
286 // |
|
287 void CDialer::FocusChanged(TDrawNow /*aDrawNow*/) |
|
288 { |
|
289 } |
|
290 |
|
291 // --------------------------------------------------------------------------- |
|
292 // CDialer::PrepareForFocusGainL |
|
293 // |
|
294 // --------------------------------------------------------------------------- |
|
295 // |
|
296 void CDialer::PrepareForFocusGainL( ) |
|
297 { |
|
298 } |
|
299 |
|
300 // --------------------------------------------------------------------------- |
|
301 // CDialer::HandleResourceChange |
|
302 // |
|
303 // --------------------------------------------------------------------------- |
|
304 // |
|
305 void CDialer::HandleResourceChange( TInt aType ) |
|
306 { |
|
307 CCoeControl::HandleResourceChange( aType ); |
|
308 } |
|
309 |
|
310 // ----------------------------------------------------------------------------- |
|
311 // CDialer::HandlePointerEventL |
|
312 // |
|
313 // ----------------------------------------------------------------------------- |
|
314 // |
|
315 void CDialer::HandlePointerEventL( const TPointerEvent& aPointerEvent ) |
|
316 { |
|
317 // Calling base class implementation |
|
318 CCoeControl::HandlePointerEventL(aPointerEvent); |
|
319 } |
|
320 |
|
321 // --------------------------------------------------------------------------- |
|
322 // CDialer::MakeVisible |
|
323 // --------------------------------------------------------------------------- |
|
324 // |
|
325 void CDialer::MakeVisible( TBool /*aVisible*/ ) |
|
326 { |
|
327 } |
|
328 |
|
329 // Private methods |
|
330 |
|
331 |
|
332 // ----------------------------------------------------------------------------- |
|
333 // CDialer::LoadResourceL |
|
334 // |
|
335 // ----------------------------------------------------------------------------- |
|
336 // |
|
337 void CDialer::LoadResourceL() |
|
338 { |
|
339 // Empty |
|
340 } |
|
341 |
|
342 // ----------------------------------------------------------------------------- |
|
343 // CDialer::UnLoadResources |
|
344 // |
|
345 // ----------------------------------------------------------------------------- |
|
346 // |
|
347 void CDialer::UnLoadResources() |
|
348 { |
|
349 // Empty |
|
350 } |
|
351 |
|
352 // --------------------------------------------------------------------------- |
|
353 // CDialer::ComponentControlForDialerMode |
|
354 // |
|
355 // Returns contained control by given index in ohonedialer mode. |
|
356 // |
|
357 // --------------------------------------------------------------------------- |
|
358 // |
|
359 CCoeControl* CDialer::ComponentControlForDialerMode( const TInt /*aIndex*/ ) const |
|
360 { |
|
361 return NULL; |
|
362 } |
|
363 |
|
364 // --------------------------------------------------------------------------- |
|
365 // CDialer::EdwinState |
|
366 // |
|
367 // Returns edwin state of the editor. |
|
368 // |
|
369 // --------------------------------------------------------------------------- |
|
370 // |
|
371 CAknEdwinState* CDialer::EdwinState() |
|
372 { |
|
373 return NULL; |
|
374 } |
|
375 |
|
376 // --------------------------------------------------------------------------- |
|
377 // CDialer::UpdateVkbEditorFlagsL |
|
378 // |
|
379 // --------------------------------------------------------------------------- |
|
380 // |
|
381 void CDialer::UpdateVkbEditorFlagsL() |
|
382 { |
|
383 // Empty |
|
384 } |
|
385 |
|
386 // End of File |