|
1 /* |
|
2 * Copyright (c) 2002-2004 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: Xuikon control adapter source file |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // System includes |
|
20 #include <AknUtils.h> |
|
21 |
|
22 // User includes |
|
23 #include "xncontroladapter.h" |
|
24 #include "xncontroladapterimpl.h" |
|
25 #include "xnproperty.h" |
|
26 #include "xnnodepluginif.h" |
|
27 #include "xnnode.h" |
|
28 #include "xnuiengine.h" |
|
29 #include "xncomponent.h" |
|
30 #include "xncomponentnodeimpl.h" |
|
31 #include "xntype.h" |
|
32 |
|
33 #include "xnviewnodeimpl.h" |
|
34 #include "xneditmode.h" |
|
35 |
|
36 // Constants |
|
37 const TInt KLongTapStartDelay( 500000 ); // 0.5s |
|
38 const TInt KLongTapTimeDelay( 1500000 ); // 1.5s |
|
39 |
|
40 // ----------------------------------------------------------------------------- |
|
41 // CreateLongTapDetectorL |
|
42 // Checks wheter longtap detector is needed for this node |
|
43 // ----------------------------------------------------------------------------- |
|
44 // |
|
45 static TBool CreateLongTapDetectorL( CXnNode& aNode ) |
|
46 { |
|
47 if ( AknLayoutUtils::PenEnabled() ) |
|
48 { |
|
49 if ( aNode.Type()->Type() == KMenuBarNode ) |
|
50 { |
|
51 RPointerArray< CXnNode >& children( aNode.Children() ); |
|
52 |
|
53 for ( TInt i = 0; i < children.Count(); i++ ) |
|
54 { |
|
55 CXnProperty* prop( children[i]->GetPropertyL( |
|
56 XnPropertyNames::common::KLongTap ) ); |
|
57 |
|
58 if ( prop && prop->StringValue() == XnPropertyNames::KTrue ) |
|
59 { |
|
60 return ETrue; |
|
61 } |
|
62 } |
|
63 } |
|
64 else |
|
65 { |
|
66 CXnProperty* prop( aNode.GetPropertyL( |
|
67 XnPropertyNames::common::KLongTap ) ); |
|
68 |
|
69 if ( prop && prop->StringValue() == XnPropertyNames::KTrue ) |
|
70 { |
|
71 return ETrue; |
|
72 } |
|
73 } |
|
74 } |
|
75 |
|
76 return EFalse; |
|
77 } |
|
78 |
|
79 // ============================ MEMBER FUNCTIONS =============================== |
|
80 |
|
81 // ----------------------------------------------------------------------------- |
|
82 // CXnControlAdapter::NewL |
|
83 // Two-phased constructor. Can leave. |
|
84 // ----------------------------------------------------------------------------- |
|
85 // |
|
86 EXPORT_C CXnControlAdapter* CXnControlAdapter::NewL( CXnNodePluginIf& aNode ) |
|
87 { |
|
88 CXnControlAdapter* self = new ( ELeave ) CXnControlAdapter; |
|
89 CleanupStack::PushL( self ); |
|
90 self->ConstructL( aNode ); |
|
91 CleanupStack::Pop(); |
|
92 return self; |
|
93 } |
|
94 |
|
95 // ----------------------------------------------------------------------------- |
|
96 // CXnControlAdapter::~CXnControlAdapter |
|
97 // Destructor. |
|
98 // ----------------------------------------------------------------------------- |
|
99 // |
|
100 EXPORT_C CXnControlAdapter::~CXnControlAdapter() |
|
101 { |
|
102 delete iImpl; |
|
103 delete iLongTapDetector; |
|
104 } |
|
105 |
|
106 // ----------------------------------------------------------------------------- |
|
107 // CXnControlAdapter::CXnControlAdapter |
|
108 // C++ default constructor. Must not leave. |
|
109 // ----------------------------------------------------------------------------- |
|
110 // |
|
111 EXPORT_C CXnControlAdapter::CXnControlAdapter() |
|
112 { |
|
113 } |
|
114 |
|
115 // ----------------------------------------------------------------------------- |
|
116 // CXnControlAdapter::ConstructL |
|
117 // 2nd phase constructor. Can leave. |
|
118 // ----------------------------------------------------------------------------- |
|
119 // |
|
120 EXPORT_C void CXnControlAdapter::ConstructL( CXnNodePluginIf& aNode ) |
|
121 { |
|
122 iImpl = CXnControlAdapterImpl::NewL( aNode, *this, SystemGc() ); |
|
123 |
|
124 if ( CreateLongTapDetectorL( aNode.Node() ) ) |
|
125 { |
|
126 iLongTapDetector = CAknLongTapDetector::NewL( this ); |
|
127 |
|
128 iLongTapDetector->SetTimeDelayBeforeAnimation( KLongTapStartDelay ); |
|
129 iLongTapDetector->SetLongTapDelay( KLongTapTimeDelay ); |
|
130 iCurrentLongTapStartDelay = KLongTapStartDelay; |
|
131 iCurrentLongTapTimeDelay = KLongTapTimeDelay; |
|
132 } |
|
133 |
|
134 CCoeControl::MakeVisible( EFalse ); |
|
135 } |
|
136 |
|
137 // ----------------------------------------------------------------------------- |
|
138 // CXnControlAdapter::SetComponent |
|
139 // Sets component object to adapter. |
|
140 // ----------------------------------------------------------------------------- |
|
141 // |
|
142 EXPORT_C void CXnControlAdapter::SetComponent( CXnComponent* aComponent ) |
|
143 { |
|
144 iImpl->SetComponent( aComponent ); |
|
145 } |
|
146 |
|
147 // ----------------------------------------------------------------------------- |
|
148 // CXnControlAdapter::Component |
|
149 // Returns component attached to this adapter |
|
150 // ----------------------------------------------------------------------------- |
|
151 // |
|
152 CXnComponent* CXnControlAdapter::Component() const |
|
153 { |
|
154 return const_cast< CXnComponent* >( iImpl->Component() ); |
|
155 } |
|
156 |
|
157 // ----------------------------------------------------------------------------- |
|
158 // CXnControlAdapter::Component |
|
159 // Gets component object from adapter. |
|
160 // ----------------------------------------------------------------------------- |
|
161 // |
|
162 EXPORT_C CXnComponent* CXnControlAdapter::Component() |
|
163 { |
|
164 return iImpl->Component(); |
|
165 } |
|
166 |
|
167 // ----------------------------------------------------------------------------- |
|
168 // CXnControlAdapter::OfferKeyEventL |
|
169 // Handles key events. |
|
170 // ----------------------------------------------------------------------------- |
|
171 // |
|
172 EXPORT_C TKeyResponse CXnControlAdapter::OfferKeyEventL( |
|
173 const TKeyEvent& aKeyEvent, |
|
174 TEventCode aType ) |
|
175 { |
|
176 return iImpl->OfferKeyEventL( aKeyEvent, aType ); |
|
177 } |
|
178 |
|
179 // ----------------------------------------------------------------------------- |
|
180 // CXnControlAdapter::HandleControlEventL |
|
181 // Handles control events. |
|
182 // ----------------------------------------------------------------------------- |
|
183 // |
|
184 EXPORT_C void CXnControlAdapter::HandleControlEventL( |
|
185 CCoeControl* /*aControl*/, |
|
186 TCoeEvent /*aEventType*/ ) |
|
187 { |
|
188 } |
|
189 |
|
190 // ----------------------------------------------------------------------------- |
|
191 // CXnControlAdapter::HandleLongTapEventL |
|
192 // Handles the long tap events. |
|
193 // ----------------------------------------------------------------------------- |
|
194 // |
|
195 EXPORT_C void CXnControlAdapter::HandleLongTapEventL( |
|
196 const TPoint& aPenEventLocation, |
|
197 const TPoint& aPenEventScreenLocation ) |
|
198 { |
|
199 CXnNode* node( &Component()->Node()->Node() ); |
|
200 |
|
201 CXnUiEngine* engine( node->UiEngine() ); |
|
202 |
|
203 engine->DisableRenderUiLC(); |
|
204 |
|
205 iImpl->HandleLongTapEventL( aPenEventLocation, aPenEventScreenLocation ); |
|
206 |
|
207 CleanupStack::PopAndDestroy(); // DisableRenderUiLC; |
|
208 } |
|
209 |
|
210 // ----------------------------------------------------------------------------- |
|
211 // CXnControlAdapter::EnableLongTapAnimation |
|
212 // Handles the long tap events. |
|
213 // ----------------------------------------------------------------------------- |
|
214 // |
|
215 EXPORT_C void CXnControlAdapter::EnableLongTapAnimation( const TBool aAnimation ) |
|
216 { |
|
217 if ( iLongTapDetector ) |
|
218 { |
|
219 iLongTapDetector->EnableLongTapAnimation( aAnimation ); |
|
220 } |
|
221 } |
|
222 |
|
223 // ----------------------------------------------------------------------------- |
|
224 // CXnControlAdapter::HandlePointerEventL |
|
225 // Handle pointer events |
|
226 // ----------------------------------------------------------------------------- |
|
227 // |
|
228 EXPORT_C void CXnControlAdapter::HandlePointerEventL( |
|
229 const TPointerEvent& aPointerEvent ) |
|
230 { |
|
231 TBool consumed( EFalse ); |
|
232 |
|
233 switch( aPointerEvent.iType ) |
|
234 { |
|
235 case TPointerEvent::EButton1Down: |
|
236 case TPointerEvent::EButton1Up: |
|
237 case TPointerEvent::EDrag: |
|
238 consumed = iImpl->HandlePointerEventL( aPointerEvent ); |
|
239 break; |
|
240 default: |
|
241 break; |
|
242 } |
|
243 |
|
244 if ( !consumed ) |
|
245 { |
|
246 CCoeControl::HandlePointerEventL( aPointerEvent ); |
|
247 } |
|
248 } |
|
249 |
|
250 // ----------------------------------------------------------------------------- |
|
251 // CXnControlAdapter::Draw |
|
252 // Draws the control |
|
253 // ----------------------------------------------------------------------------- |
|
254 // |
|
255 EXPORT_C void CXnControlAdapter::Draw( const TRect& aRect ) const |
|
256 { |
|
257 iImpl->Draw( aRect ); |
|
258 } |
|
259 |
|
260 // ----------------------------------------------------------------------------- |
|
261 // CXnControlAdapter::Draw |
|
262 // Draws the control |
|
263 // ----------------------------------------------------------------------------- |
|
264 // |
|
265 EXPORT_C void CXnControlAdapter::Draw( const TRect& aRect, CWindowGc& aGc ) const |
|
266 { |
|
267 iImpl->Draw( aRect, aGc ); |
|
268 } |
|
269 |
|
270 // ----------------------------------------------------------------------------- |
|
271 // CXnControlAdapter::ComponentControl |
|
272 // Return a child control by index |
|
273 // ----------------------------------------------------------------------------- |
|
274 // |
|
275 EXPORT_C CCoeControl* CXnControlAdapter::ComponentControl( TInt aIndex ) const |
|
276 { |
|
277 return iImpl->ComponentControl( aIndex ); |
|
278 } |
|
279 |
|
280 // ----------------------------------------------------------------------------- |
|
281 // CXnControlAdapter::CountComponentControls |
|
282 // Return count of children |
|
283 // ----------------------------------------------------------------------------- |
|
284 // |
|
285 EXPORT_C TInt CXnControlAdapter::CountComponentControls() const |
|
286 { |
|
287 return iImpl->CountComponentControls(); |
|
288 } |
|
289 |
|
290 // ----------------------------------------------------------------------------- |
|
291 // CXnControlAdapter::SetVisible |
|
292 // ----------------------------------------------------------------------------- |
|
293 // |
|
294 EXPORT_C void CXnControlAdapter::SetVisible( TBool aVisible ) |
|
295 { |
|
296 MakeVisible( aVisible ); |
|
297 } |
|
298 |
|
299 // ----------------------------------------------------------------------------- |
|
300 // CXnControlAdapter::AppendChildL |
|
301 // ----------------------------------------------------------------------------- |
|
302 // |
|
303 void CXnControlAdapter::AppendChildL(CXnControlAdapter& aChild, CXnNode& aNode) |
|
304 { |
|
305 iImpl->AppendChildL(aChild, aNode); |
|
306 } |
|
307 |
|
308 // ----------------------------------------------------------------------------- |
|
309 // CXnControlAdapter::IsDrawingAllowed |
|
310 // Checks whether drawing is allowed |
|
311 // ----------------------------------------------------------------------------- |
|
312 // |
|
313 EXPORT_C TBool CXnControlAdapter::IsDrawingAllowed() const |
|
314 { |
|
315 return iImpl->IsDrawingAllowed(); |
|
316 } |
|
317 |
|
318 // ----------------------------------------------------------------------------- |
|
319 // CXnControlAdapter::ContentBitmaps |
|
320 // Gets content bitmaps |
|
321 // ----------------------------------------------------------------------------- |
|
322 // |
|
323 EXPORT_C void CXnControlAdapter::ContentBitmaps( |
|
324 CFbsBitmap*& aBitmap, |
|
325 CFbsBitmap*& aMask ) |
|
326 { |
|
327 iImpl->ContentBitmaps( aBitmap, aMask ); |
|
328 } |
|
329 |
|
330 // ----------------------------------------------------------------------------- |
|
331 // CXnControlAdapter::SetContentBitmaps |
|
332 // Sets content bitmaps |
|
333 // ----------------------------------------------------------------------------- |
|
334 // |
|
335 EXPORT_C void CXnControlAdapter::SetContentBitmaps( |
|
336 CFbsBitmap* aBitmap, |
|
337 CFbsBitmap* aMask ) |
|
338 { |
|
339 iImpl->SetContentBitmaps( aBitmap, aMask ); |
|
340 } |
|
341 |
|
342 // ----------------------------------------------------------------------------- |
|
343 // CXnControlAdapter::SetContentBitmaps |
|
344 // Sets content bitmaps |
|
345 // ----------------------------------------------------------------------------- |
|
346 // |
|
347 EXPORT_C void CXnControlAdapter::SetContentBitmaps( |
|
348 const TDesC& aBitmapUrl, |
|
349 const TDesC& aMaskUrl ) |
|
350 { |
|
351 TRAP_IGNORE( iImpl->SetContentBitmapsL( aBitmapUrl, aMaskUrl ) ); |
|
352 } |
|
353 |
|
354 // ----------------------------------------------------------------------------- |
|
355 // CXnControlAdapter::DrawContentImage |
|
356 // Draws content image |
|
357 // ----------------------------------------------------------------------------- |
|
358 // |
|
359 EXPORT_C void CXnControlAdapter::DrawContentImage() const |
|
360 { |
|
361 iImpl->DrawContentImage(); |
|
362 } |
|
363 |
|
364 // ----------------------------------------------------------------------------- |
|
365 // CXnControlAdapter::SizeChanged |
|
366 // Control size change notification |
|
367 // ----------------------------------------------------------------------------- |
|
368 // |
|
369 EXPORT_C void CXnControlAdapter::SizeChanged() |
|
370 { |
|
371 iImpl->SizeChanged(); |
|
372 } |
|
373 |
|
374 // ----------------------------------------------------------------------------- |
|
375 // CXnControlAdapter::SkinChanged |
|
376 // Skin change notification |
|
377 // ----------------------------------------------------------------------------- |
|
378 // |
|
379 EXPORT_C void CXnControlAdapter::SkinChanged() |
|
380 { |
|
381 TRAP_IGNORE( Component()->Node()->SetDirtyL() ); |
|
382 |
|
383 iImpl->SkinChanged(); |
|
384 } |
|
385 |
|
386 // ----------------------------------------------------------------------------- |
|
387 // CXnControlAdapter::FocusChanged |
|
388 // Focus change notification |
|
389 // ----------------------------------------------------------------------------- |
|
390 // |
|
391 EXPORT_C void CXnControlAdapter::FocusChanged( TDrawNow /*aDrawNow*/ ) |
|
392 { |
|
393 TRAP_IGNORE( iImpl->FocusChangedL( IsFocused() ) ); |
|
394 } |
|
395 |
|
396 // ----------------------------------------------------------------------------- |
|
397 // CXnControlAdapter::LoadBitmap |
|
398 // Load a bitmap from the server. Ownership is transferred. |
|
399 // ----------------------------------------------------------------------------- |
|
400 // |
|
401 EXPORT_C CFbsBitmap* CXnControlAdapter::LoadBitmap( const TDesC& aBitmapUrl ) |
|
402 { |
|
403 return iImpl->LoadBitmap( aBitmapUrl ); |
|
404 } |
|
405 |
|
406 // ----------------------------------------------------------------------------- |
|
407 // CXnControlAdapter::GetBitmapAndMask |
|
408 // Load a bitmap and mask from the server. Ownership is transferred. |
|
409 // ----------------------------------------------------------------------------- |
|
410 // |
|
411 EXPORT_C void CXnControlAdapter::GetBitmapAndMask( |
|
412 const TDesC& aBitmapUrl, |
|
413 const TDesC& aMaskUrl, |
|
414 CFbsBitmap*& aBitmap, |
|
415 CFbsBitmap*& aMask ) |
|
416 { |
|
417 iImpl->GetBitmapAndMask( aBitmapUrl, aMaskUrl, aBitmap, aMask ); |
|
418 } |
|
419 |
|
420 // ----------------------------------------------------------------------------- |
|
421 // CXnControlAdapter::EnterPowerSaveModeL |
|
422 // Enter power save mode |
|
423 // ----------------------------------------------------------------------------- |
|
424 // |
|
425 EXPORT_C void CXnControlAdapter::EnterPowerSaveModeL( TModeEvent aEvent ) |
|
426 { |
|
427 iImpl->StopHighlightAnimation(); |
|
428 DoEnterPowerSaveModeL( aEvent ); |
|
429 } |
|
430 |
|
431 // ----------------------------------------------------------------------------- |
|
432 // CXnControlAdapter::DoEnterPowerSaveModeL |
|
433 // ----------------------------------------------------------------------------- |
|
434 // |
|
435 EXPORT_C void CXnControlAdapter::DoEnterPowerSaveModeL( TModeEvent /* aEvent */ ) |
|
436 { |
|
437 } |
|
438 |
|
439 // ----------------------------------------------------------------------------- |
|
440 // CXnControlAdapter::ExitPowerSaveModeL |
|
441 // Exit power save mode |
|
442 // ----------------------------------------------------------------------------- |
|
443 // |
|
444 EXPORT_C void CXnControlAdapter::ExitPowerSaveModeL( TModeEvent aEvent ) |
|
445 { |
|
446 iImpl->StartHighlightAnimation(); |
|
447 DoExitPowerSaveModeL( aEvent ); |
|
448 } |
|
449 |
|
450 // ----------------------------------------------------------------------------- |
|
451 // CXnControlAdapter::DoExitPowerSaveModeL |
|
452 // ----------------------------------------------------------------------------- |
|
453 // |
|
454 EXPORT_C void CXnControlAdapter::DoExitPowerSaveModeL( TModeEvent /*aEvent*/ ) |
|
455 { |
|
456 } |
|
457 |
|
458 // ----------------------------------------------------------------------------- |
|
459 // CXnControlAdapter::SetLocalUiZoomL |
|
460 // Set local UI zoom level |
|
461 // ----------------------------------------------------------------------------- |
|
462 // |
|
463 EXPORT_C void CXnControlAdapter::SetLocalUiZoomL( TAknUiZoom /*aZoom*/ ) |
|
464 { |
|
465 } |
|
466 |
|
467 // ----------------------------------------------------------------------------- |
|
468 // CXnControlAdapter::HandleScreenDeviceChangedL |
|
469 // ----------------------------------------------------------------------------- |
|
470 // |
|
471 EXPORT_C void CXnControlAdapter::HandleScreenDeviceChangedL() |
|
472 { |
|
473 CXnNode& node( Component()->Node()->Node() ); |
|
474 |
|
475 if ( CreateLongTapDetectorL( node ) ) |
|
476 { |
|
477 if ( !iLongTapDetector ) |
|
478 { |
|
479 iLongTapDetector = CAknLongTapDetector::NewL( this ); |
|
480 } |
|
481 } |
|
482 else |
|
483 { |
|
484 delete iLongTapDetector; |
|
485 iLongTapDetector = NULL; |
|
486 } |
|
487 |
|
488 Component()->Node()->SetDirtyL(); |
|
489 |
|
490 iImpl->HandleScreenDeviceChangedL(); |
|
491 } |
|
492 |
|
493 // ----------------------------------------------------------------------------- |
|
494 // CXnControlAdapter::HandlePropertyChangeL |
|
495 // ----------------------------------------------------------------------------- |
|
496 // |
|
497 EXPORT_C void CXnControlAdapter::HandlePropertyChangeL( CXnProperty* aProperty ) |
|
498 { |
|
499 // Check component focus. |
|
500 CXnComponent* component( iImpl->Component() ); |
|
501 |
|
502 if ( component ) |
|
503 { |
|
504 CXnNodePluginIf* node( component->Node() ); |
|
505 |
|
506 if ( node ) |
|
507 { |
|
508 if ( node->IsFocusedState() ) |
|
509 { |
|
510 iImpl->StartHighlightAnimation(); |
|
511 } |
|
512 else |
|
513 { |
|
514 iImpl->StopHighlightAnimation(); |
|
515 } |
|
516 } |
|
517 } |
|
518 |
|
519 if ( iImpl->UpdateBackgroundImageL( aProperty) == |
|
520 CXnControlAdapterImpl::EPropertyChangeNotConsumed ) |
|
521 { |
|
522 DoHandlePropertyChangeL( aProperty ); |
|
523 } |
|
524 } |
|
525 |
|
526 // ----------------------------------------------------------------------------- |
|
527 // CXnControlAdapter::DoHandlePropertyChangeL |
|
528 // ----------------------------------------------------------------------------- |
|
529 // |
|
530 EXPORT_C void CXnControlAdapter::DoHandlePropertyChangeL( CXnProperty* aProperty ) |
|
531 { |
|
532 iImpl->DoHandlePropertyChangeL( aProperty ); |
|
533 } |
|
534 |
|
535 // ----------------------------------------------------------------------------- |
|
536 // CXnControlAdapter::MeasureAdaptiveContentL |
|
537 // Measures the content dimensions |
|
538 // ----------------------------------------------------------------------------- |
|
539 // |
|
540 EXPORT_C TSize CXnControlAdapter::MeasureAdaptiveContentL( |
|
541 const TSize& aAvailableSize ) |
|
542 { |
|
543 return iImpl->MeasureAdaptiveContentL( aAvailableSize ); |
|
544 } |
|
545 |
|
546 // ----------------------------------------------------------------------------- |
|
547 // CXnControlAdapter::ResetStylusCounter |
|
548 // ----------------------------------------------------------------------------- |
|
549 // |
|
550 EXPORT_C void CXnControlAdapter::ResetStylusCounter() |
|
551 { |
|
552 } |
|
553 |
|
554 // ----------------------------------------------------------------------------- |
|
555 // CXnControlAdapter::SetBlank |
|
556 // |
|
557 // ----------------------------------------------------------------------------- |
|
558 // |
|
559 EXPORT_C void CXnControlAdapter::SetBlank( TBool aBlank ) |
|
560 { |
|
561 iImpl->SetBlank( aBlank ); |
|
562 } |
|
563 |
|
564 // ----------------------------------------------------------------------------- |
|
565 // CXnControlAdapter::LongTapDetector |
|
566 // ----------------------------------------------------------------------------- |
|
567 // |
|
568 EXPORT_C CAknLongTapDetector* CXnControlAdapter::LongTapDetector() const |
|
569 { |
|
570 return iLongTapDetector; |
|
571 } |
|
572 |
|
573 // ----------------------------------------------------------------------------- |
|
574 // CXnControlAdapter::RemoveChildAdapters |
|
575 // ----------------------------------------------------------------------------- |
|
576 // |
|
577 void CXnControlAdapter::RemoveChildAdapters() |
|
578 { |
|
579 iImpl->RemoveChildAdapters(); |
|
580 } |
|
581 |
|
582 // ----------------------------------------------------------------------------- |
|
583 // ----------------------------------------------------------------------------- |
|
584 // |
|
585 RPointerArray<CXnControlAdapter>& CXnControlAdapter::ChildAdapters() |
|
586 { |
|
587 return iImpl->ChildAdapters(); |
|
588 } |
|
589 |
|
590 // ----------------------------------------------------------------------------- |
|
591 // CXnControlAdapter::SetLongTapDelay |
|
592 // ----------------------------------------------------------------------------- |
|
593 // |
|
594 void CXnControlAdapter::SetLongTapDelays( const TInt aStartDelay, |
|
595 const TInt aLongTapDelay ) |
|
596 { |
|
597 if ( iCurrentLongTapTimeDelay != aLongTapDelay) |
|
598 { |
|
599 iLongTapDetector->SetLongTapDelay( aLongTapDelay ); |
|
600 iCurrentLongTapTimeDelay = aLongTapDelay; |
|
601 } |
|
602 if ( iCurrentLongTapStartDelay != aStartDelay ) |
|
603 { |
|
604 iLongTapDetector->SetTimeDelayBeforeAnimation( aStartDelay ); |
|
605 iCurrentLongTapStartDelay = aStartDelay; |
|
606 } |
|
607 } |
|
608 |
|
609 // ----------------------------------------------------------------------------- |
|
610 // CXnControlAdapter::SetDataL |
|
611 // Empty default implemenatation for setting the data stream. |
|
612 // ----------------------------------------------------------------------------- |
|
613 // |
|
614 EXPORT_C void CXnControlAdapter::SetDataL( const TDesC8& /*aData*/, const TDesC& /*aType*/, TInt /*aIndex*/ ) |
|
615 { |
|
616 |
|
617 } |