62
|
1 |
/*
|
|
2 |
* Copyright (c) 2007 - 2010 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 |
MPhoneDialerController* aController )
|
|
35 |
{
|
|
36 |
CDialer* self = new( ELeave )CDialer ( );
|
|
37 |
CleanupStack::PushL( self );
|
|
38 |
self->ConstructL( aContainer , aRect, aController );
|
|
39 |
CleanupStack::Pop(); // self
|
|
40 |
return self;
|
|
41 |
}
|
|
42 |
|
|
43 |
// ---------------------------------------------------------------------------
|
|
44 |
// CDialer::~CDialer
|
|
45 |
//
|
|
46 |
// Destructor
|
|
47 |
// ---------------------------------------------------------------------------
|
|
48 |
//
|
|
49 |
EXPORT_C CDialer::~CDialer()
|
|
50 |
{
|
|
51 |
// Empty
|
|
52 |
}
|
|
53 |
|
|
54 |
// ---------------------------------------------------------------------------
|
|
55 |
// CDialer::ConstructL
|
|
56 |
//
|
|
57 |
// Symbian OS two phased constructor for phone dialer more.
|
|
58 |
// ---------------------------------------------------------------------------
|
|
59 |
//
|
|
60 |
void CDialer::ConstructL(
|
|
61 |
const CCoeControl& aContainer,
|
|
62 |
const TRect& aRect,
|
|
63 |
MPhoneDialerController* /*aController*/ )
|
|
64 |
{
|
|
65 |
// set window
|
|
66 |
SetContainerWindowL( aContainer );
|
|
67 |
SetParent( const_cast<CCoeControl*>(&aContainer) );
|
|
68 |
SetRect( aRect );
|
|
69 |
}
|
|
70 |
|
|
71 |
// ---------------------------------------------------------------------------
|
|
72 |
// CDialer::CDialer
|
|
73 |
//
|
|
74 |
// C++ default constructor
|
|
75 |
// ---------------------------------------------------------------------------
|
|
76 |
//
|
|
77 |
CDialer::CDialer()
|
|
78 |
{
|
|
79 |
// Empty
|
|
80 |
}
|
|
81 |
|
|
82 |
// -----------------------------------------------------------------------------
|
|
83 |
// CDialer::NumberEntry
|
|
84 |
//
|
|
85 |
// Return pointer to MNumberEntry interface.
|
|
86 |
// -----------------------------------------------------------------------------
|
|
87 |
//
|
|
88 |
EXPORT_C MNumberEntry* CDialer::NumberEntry()
|
|
89 |
{
|
|
90 |
return this;
|
|
91 |
}
|
|
92 |
|
|
93 |
// -----------------------------------------------------------------------------
|
|
94 |
// CDialer::SetNumberEntryObserver
|
|
95 |
//
|
|
96 |
// -----------------------------------------------------------------------------
|
|
97 |
//
|
|
98 |
EXPORT_C void CDialer::SetNumberEntryObserver( MNumberEntryObserver& /*aObserver*/ )
|
|
99 |
{
|
|
100 |
// Empty
|
|
101 |
}
|
|
102 |
|
|
103 |
// -----------------------------------------------------------------------------
|
|
104 |
// CDialer::SetControllerL
|
|
105 |
// -----------------------------------------------------------------------------
|
|
106 |
//
|
|
107 |
EXPORT_C void CDialer::SetControllerL( MPhoneDialerController* /*aController*/ )
|
|
108 |
{
|
|
109 |
// Empty
|
|
110 |
}
|
|
111 |
|
|
112 |
// ---------------------------------------------------------------------------
|
|
113 |
// CDialer::Controller
|
|
114 |
// ---------------------------------------------------------------------------
|
|
115 |
//
|
|
116 |
EXPORT_C MPhoneDialerController* CDialer::Controller()
|
|
117 |
{
|
|
118 |
return NULL;
|
|
119 |
}
|
|
120 |
|
|
121 |
// -----------------------------------------------------------------------------
|
|
122 |
// CDialer::GetEasyDialingInterface
|
|
123 |
// -----------------------------------------------------------------------------
|
|
124 |
//
|
|
125 |
EXPORT_C CDialingExtensionInterface* CDialer::GetEasyDialingInterface() const
|
|
126 |
{
|
|
127 |
return NULL;
|
|
128 |
}
|
|
129 |
|
|
130 |
// ---------------------------------------------------------------------------
|
|
131 |
// CDialer::UpdateToolbar
|
|
132 |
// ---------------------------------------------------------------------------
|
|
133 |
//
|
|
134 |
EXPORT_C void CDialer::UpdateToolbar()
|
|
135 |
{
|
|
136 |
// empty
|
|
137 |
}
|
|
138 |
|
|
139 |
// ---------------------------------------------------------------------------
|
|
140 |
// CDialer::RelayoutAndDraw
|
|
141 |
// ---------------------------------------------------------------------------
|
|
142 |
//
|
|
143 |
EXPORT_C void CDialer::RelayoutAndDraw()
|
|
144 |
{
|
|
145 |
// Empty
|
|
146 |
}
|
|
147 |
|
|
148 |
// Methods from MNumberEntry
|
|
149 |
|
|
150 |
// ---------------------------------------------------------------------------
|
|
151 |
// CDialer::CreateNumberEntry
|
|
152 |
//
|
|
153 |
// Creates number entry in phone dialer mode. In video DTMF mode
|
|
154 |
// only sets CBA.
|
|
155 |
// ---------------------------------------------------------------------------
|
|
156 |
//
|
|
157 |
void CDialer::CreateNumberEntry()
|
|
158 |
{
|
|
159 |
// Empty
|
|
160 |
}
|
|
161 |
|
|
162 |
// ---------------------------------------------------------------------------
|
|
163 |
// CDialer::GetNumberEntry
|
|
164 |
//
|
|
165 |
// ---------------------------------------------------------------------------
|
|
166 |
//
|
|
167 |
CCoeControl* CDialer::GetNumberEntry( ) const
|
|
168 |
{
|
|
169 |
return NULL;
|
|
170 |
}
|
|
171 |
|
|
172 |
// ---------------------------------------------------------------------------
|
|
173 |
// CDialer::IsNumberEntryUsed
|
|
174 |
//
|
|
175 |
// ---------------------------------------------------------------------------
|
|
176 |
//
|
|
177 |
TBool CDialer::IsNumberEntryUsed( ) const
|
|
178 |
{
|
|
179 |
return EFalse;
|
|
180 |
}
|
|
181 |
|
|
182 |
// ---------------------------------------------------------------------------
|
|
183 |
// CDialer::SetNumberEntryVisible
|
|
184 |
//
|
|
185 |
// ---------------------------------------------------------------------------
|
|
186 |
//
|
|
187 |
void CDialer::SetNumberEntryVisible( const TBool& /*aVisibility */)
|
|
188 |
{
|
|
189 |
// Empty
|
|
190 |
}
|
|
191 |
|
|
192 |
// ---------------------------------------------------------------------------
|
|
193 |
// CDialer::SetTextToNumberEntry
|
|
194 |
//
|
|
195 |
// ---------------------------------------------------------------------------
|
|
196 |
//
|
|
197 |
void CDialer::SetTextToNumberEntry( const TDesC& /*aDesC */)
|
|
198 |
{
|
|
199 |
// Empty
|
|
200 |
}
|
|
201 |
|
|
202 |
// ---------------------------------------------------------------------------
|
|
203 |
// CDialer::GetTextFromNumberEntry
|
|
204 |
//
|
|
205 |
// ---------------------------------------------------------------------------
|
|
206 |
//
|
|
207 |
void CDialer::GetTextFromNumberEntry( TDes& aDesC )
|
|
208 |
{
|
|
209 |
aDesC = KNullDesC();
|
|
210 |
}
|
|
211 |
|
|
212 |
// ---------------------------------------------------------------------------
|
|
213 |
// CDialer::RemoveNumberEntry
|
|
214 |
//
|
|
215 |
// ---------------------------------------------------------------------------
|
|
216 |
//
|
|
217 |
void CDialer::RemoveNumberEntry( )
|
|
218 |
{
|
|
219 |
iIsUsed = EFalse;
|
|
220 |
}
|
|
221 |
|
|
222 |
// ---------------------------------------------------------------------------
|
|
223 |
// CDialer::ChangeEditorMode
|
|
224 |
//
|
|
225 |
// ---------------------------------------------------------------------------
|
|
226 |
//
|
|
227 |
TInt CDialer::ChangeEditorMode( TBool /*aDefaultMode */)
|
|
228 |
{
|
|
229 |
return KErrNotSupported;
|
|
230 |
}
|
|
231 |
|
|
232 |
// ---------------------------------------------------------------------------
|
|
233 |
// CDialer::OpenVKBL
|
|
234 |
//
|
|
235 |
// ---------------------------------------------------------------------------
|
|
236 |
//
|
|
237 |
void CDialer::OpenVkbL()
|
|
238 |
{
|
|
239 |
// Empty
|
|
240 |
}
|
|
241 |
|
|
242 |
// ---------------------------------------------------------------------------
|
|
243 |
// CDialer::GetEditorMode
|
|
244 |
//
|
|
245 |
// ---------------------------------------------------------------------------
|
|
246 |
//
|
|
247 |
TInt CDialer::GetEditorMode() const
|
|
248 |
{
|
|
249 |
return KErrNotSupported;
|
|
250 |
}
|
|
251 |
|
|
252 |
// ---------------------------------------------------------------------------
|
|
253 |
// CDialer::ResetEditorToDefaultValues
|
|
254 |
//
|
|
255 |
// ---------------------------------------------------------------------------
|
|
256 |
//
|
|
257 |
void CDialer::ResetEditorToDefaultValues()
|
|
258 |
{
|
|
259 |
// Empty
|
|
260 |
}
|
|
261 |
|
|
262 |
// ---------------------------------------------------------------------------
|
|
263 |
// CDialer::SetNumberEntryPromptText
|
|
264 |
//
|
|
265 |
// ---------------------------------------------------------------------------
|
|
266 |
//
|
|
267 |
void CDialer::SetNumberEntryPromptText( const TDesC& /*aPromptText*/ )
|
|
268 |
{
|
|
269 |
// Empty
|
|
270 |
}
|
|
271 |
|
|
272 |
// ---------------------------------------------------------------------------
|
|
273 |
// CDialer::EnableTactileFeedback
|
|
274 |
//
|
|
275 |
// ---------------------------------------------------------------------------
|
|
276 |
//
|
|
277 |
void CDialer::EnableTactileFeedback( const TBool /*aEnable*/ )
|
|
278 |
{
|
|
279 |
// Empty
|
|
280 |
}
|
|
281 |
|
|
282 |
// ---------------------------------------------------------
|
|
283 |
// CDialer::HandleQwertyModeChange
|
|
284 |
// ---------------------------------------------------------
|
|
285 |
//
|
|
286 |
EXPORT_C void CDialer::HandleQwertyModeChange( TInt /*aMode*/ )
|
|
287 |
{
|
|
288 |
// Empty
|
|
289 |
}
|
|
290 |
|
|
291 |
// ---------------------------------------------------------
|
|
292 |
// CDialer::HandleKeyboardLayoutChange
|
|
293 |
// ---------------------------------------------------------
|
|
294 |
//
|
|
295 |
EXPORT_C void CDialer::HandleKeyboardLayoutChange()
|
|
296 |
{
|
|
297 |
// Empty
|
|
298 |
}
|
|
299 |
|
|
300 |
// ---------------------------------------------------------------------------
|
|
301 |
// CDialer::HandleControlEventL
|
|
302 |
// ---------------------------------------------------------------------------
|
|
303 |
//
|
|
304 |
void CDialer::HandleControlEventL( CCoeControl* /*aControl*/, TCoeEvent /*aEventType*/ )
|
|
305 |
{
|
|
306 |
// Empty
|
|
307 |
}
|
|
308 |
|
|
309 |
|
|
310 |
// Functions from CCoeControl
|
|
311 |
|
|
312 |
// ---------------------------------------------------------------------------
|
|
313 |
// CDialer::SizeChanged
|
|
314 |
//
|
|
315 |
// Called by framework when the view size is changed
|
|
316 |
//
|
|
317 |
// ---------------------------------------------------------------------------
|
|
318 |
//
|
|
319 |
void CDialer::SizeChanged()
|
|
320 |
{
|
|
321 |
// Empty
|
|
322 |
}
|
|
323 |
|
|
324 |
// ---------------------------------------------------------------------------
|
|
325 |
// CDialer::PositionChanged
|
|
326 |
// ---------------------------------------------------------------------------
|
|
327 |
//
|
|
328 |
void CDialer::PositionChanged()
|
|
329 |
{
|
|
330 |
// Empty
|
|
331 |
}
|
|
332 |
|
|
333 |
// ---------------------------------------------------------------------------
|
|
334 |
// CDialer::CountComponentControls
|
|
335 |
//
|
|
336 |
// Returns contained controls in phone dialer mode or in video dtmf mode.
|
|
337 |
// ---------------------------------------------------------------------------
|
|
338 |
//
|
|
339 |
TInt CDialer::CountComponentControls() const
|
|
340 |
{
|
|
341 |
return 0;
|
|
342 |
}
|
|
343 |
|
|
344 |
// ---------------------------------------------------------------------------
|
|
345 |
// CDialer::ComponentControl(TInt aIndex) const
|
|
346 |
//
|
|
347 |
// Returns contained control by given index.
|
|
348 |
// ---------------------------------------------------------------------------
|
|
349 |
//
|
|
350 |
CCoeControl* CDialer::ComponentControl( TInt /*aIndex*/ ) const
|
|
351 |
{
|
|
352 |
return NULL;
|
|
353 |
}
|
|
354 |
|
|
355 |
// ---------------------------------------------------------------------------
|
|
356 |
// CDialer::Draw
|
|
357 |
// ---------------------------------------------------------------------------
|
|
358 |
//
|
|
359 |
void CDialer::Draw( const TRect& /*aRect*/ ) const
|
|
360 |
{
|
|
361 |
}
|
|
362 |
|
|
363 |
// ---------------------------------------------------------------------------
|
|
364 |
// CDialer::FocusChanged
|
|
365 |
// ---------------------------------------------------------------------------
|
|
366 |
//
|
|
367 |
void CDialer::FocusChanged(TDrawNow /*aDrawNow*/)
|
|
368 |
{
|
|
369 |
}
|
|
370 |
|
|
371 |
// ---------------------------------------------------------------------------
|
|
372 |
// CDialer::PrepareForFocusGainL
|
|
373 |
//
|
|
374 |
// ---------------------------------------------------------------------------
|
|
375 |
//
|
|
376 |
void CDialer::PrepareForFocusGainL( )
|
|
377 |
{
|
|
378 |
}
|
|
379 |
|
|
380 |
// ---------------------------------------------------------------------------
|
|
381 |
// CDialer::HandleResourceChange
|
|
382 |
//
|
|
383 |
// ---------------------------------------------------------------------------
|
|
384 |
//
|
|
385 |
void CDialer::HandleResourceChange( TInt aType )
|
|
386 |
{
|
|
387 |
CCoeControl::HandleResourceChange( aType );
|
|
388 |
}
|
|
389 |
|
|
390 |
// -----------------------------------------------------------------------------
|
|
391 |
// CDialer::HandlePointerEventL
|
|
392 |
//
|
|
393 |
// -----------------------------------------------------------------------------
|
|
394 |
//
|
|
395 |
void CDialer::HandlePointerEventL( const TPointerEvent& aPointerEvent )
|
|
396 |
{
|
|
397 |
// Calling base class implementation
|
|
398 |
CCoeControl::HandlePointerEventL(aPointerEvent);
|
|
399 |
}
|
|
400 |
|
|
401 |
// ---------------------------------------------------------------------------
|
|
402 |
// CDialer::MakeVisible
|
|
403 |
// ---------------------------------------------------------------------------
|
|
404 |
//
|
|
405 |
void CDialer::MakeVisible( TBool /*aVisible*/ )
|
|
406 |
{
|
|
407 |
}
|
|
408 |
|
|
409 |
// Private methods
|
|
410 |
|
|
411 |
|
|
412 |
// -----------------------------------------------------------------------------
|
|
413 |
// CDialer::LoadResourceL
|
|
414 |
//
|
|
415 |
// -----------------------------------------------------------------------------
|
|
416 |
//
|
|
417 |
void CDialer::LoadResourceL()
|
|
418 |
{
|
|
419 |
// Empty
|
|
420 |
}
|
|
421 |
|
|
422 |
// -----------------------------------------------------------------------------
|
|
423 |
// CDialer::UnLoadResources
|
|
424 |
//
|
|
425 |
// -----------------------------------------------------------------------------
|
|
426 |
//
|
|
427 |
void CDialer::UnLoadResources()
|
|
428 |
{
|
|
429 |
// Empty
|
|
430 |
}
|
|
431 |
|
|
432 |
// ---------------------------------------------------------------------------
|
|
433 |
// CDialer::ComponentControlForDialerMode
|
|
434 |
//
|
|
435 |
// Returns contained control by given index in ohonedialer mode.
|
|
436 |
//
|
|
437 |
// ---------------------------------------------------------------------------
|
|
438 |
//
|
|
439 |
CCoeControl* CDialer::ComponentControlForDialerMode( const TInt /*aIndex*/ ) const
|
|
440 |
{
|
|
441 |
return NULL;
|
|
442 |
}
|
|
443 |
|
|
444 |
// ---------------------------------------------------------------------------
|
|
445 |
// CDialer::EdwinState
|
|
446 |
//
|
|
447 |
// Returns edwin state of the editor.
|
|
448 |
//
|
|
449 |
// ---------------------------------------------------------------------------
|
|
450 |
//
|
|
451 |
CAknEdwinState* CDialer::EdwinState() const
|
|
452 |
{
|
|
453 |
return NULL;
|
|
454 |
}
|
|
455 |
|
|
456 |
// ---------------------------------------------------------------------------
|
|
457 |
// CDialer::UpdateEdwinState
|
|
458 |
//
|
|
459 |
// ---------------------------------------------------------------------------
|
|
460 |
//
|
|
461 |
void CDialer::UpdateEdwinState( TEditorType /* aType */ )
|
|
462 |
{
|
|
463 |
// Empty
|
|
464 |
}
|
|
465 |
|
|
466 |
// ---------------------------------------------------------------------------
|
|
467 |
// CDialer::OnPeninputUiDeactivated
|
|
468 |
//
|
|
469 |
// Gets called when the virtual keyboard editor is closed.
|
|
470 |
// ---------------------------------------------------------------------------
|
|
471 |
//
|
|
472 |
void CDialer::OnPeninputUiDeactivated()
|
|
473 |
{
|
|
474 |
// Empty
|
|
475 |
}
|
|
476 |
|
|
477 |
// ---------------------------------------------------------------------------
|
|
478 |
// CDialer::OnPeninputUiActivated
|
|
479 |
//
|
|
480 |
// Gets called when the virtual keyboard editor is opened.
|
|
481 |
// ---------------------------------------------------------------------------
|
|
482 |
//
|
|
483 |
void CDialer::OnPeninputUiActivated()
|
|
484 |
{
|
|
485 |
// Empty
|
|
486 |
}
|
|
487 |
// End of File
|