553 CAknIndicator* aknIndicator = |
553 CAknIndicator* aknIndicator = |
554 static_cast<CAknIndicator*> ( indicatorControl ); |
554 static_cast<CAknIndicator*> ( indicatorControl ); |
555 |
555 |
556 if( aknIndicator ) |
556 if( aknIndicator ) |
557 { |
557 { |
|
558 TInt bitmapIndex = 0; |
|
559 TInt maskIndex = 0 ; |
|
560 CAknIndicator::GetBitmapIndexL( 0, 0, |
|
561 bitmapIndex, maskIndex ); |
|
562 _LIT( |
|
563 KGetBitmapIndexL, |
|
564 "CAknIndicator::GetBitmapIndexL() test" ); |
|
565 AssertTrueL( ETrue, KGetBitmapIndexL ); |
|
566 |
558 aknIndicator->SetIndicatorObserver( NULL ); |
567 aknIndicator->SetIndicatorObserver( NULL ); |
559 _LIT( |
568 _LIT( |
560 KSetIndicatorObserver, |
569 KSetIndicatorObserver, |
561 "CAknIndicator::SetIndicatorObserver() test" ); |
570 "CAknIndicator::SetIndicatorObserver() test" ); |
562 AssertTrueL( ETrue, KSetIndicatorObserver ); |
571 AssertTrueL( ETrue, KSetIndicatorObserver ); |
566 aknIndicator->HandlePointerEventL( pointerEvent ); |
575 aknIndicator->HandlePointerEventL( pointerEvent ); |
567 _LIT( |
576 _LIT( |
568 KHandlePointerEventL, |
577 KHandlePointerEventL, |
569 "CAknIndicator::HandlePointerEventL() test" ); |
578 "CAknIndicator::HandlePointerEventL() test" ); |
570 AssertTrueL( ETrue, KHandlePointerEventL ); |
579 AssertTrueL( ETrue, KHandlePointerEventL ); |
|
580 |
|
581 aknIndicator->PositionChanged(); |
|
582 _LIT( |
|
583 KAknIndicatorPositionChanged, |
|
584 "CAknIndicator::PositionChanged() test" ); |
|
585 AssertTrueL( ETrue, KAknIndicatorPositionChanged ); |
|
586 |
571 } |
587 } |
572 |
588 |
573 |
589 |
574 CleanupStack::PopAndDestroy( indicatorPane ); |
590 CleanupStack::PopAndDestroy( indicatorPane ); |
575 |
591 |
576 |
592 TUid pluginUid = TUid::Uid( KImplUIDPoCIndicatorsPlugin );// |
577 TUid pluginUid = TUid::Uid( KImplUIDMessagingIndicatorsPlugin ); |
|
578 CAknIndicatorPlugin* aknIndicatorPlugin = NULL; |
593 CAknIndicatorPlugin* aknIndicatorPlugin = NULL; |
579 TRAPD(err, |
594 TRAPD(err, |
580 aknIndicatorPlugin = |
595 aknIndicatorPlugin = |
581 CAknIndicatorPlugin::NewL( pluginUid ) |
596 CAknIndicatorPlugin::NewL( pluginUid ) |
582 ); |
597 ); |
583 CleanupStack::PushL( aknIndicatorPlugin ); |
598 CleanupStack::PushL( aknIndicatorPlugin ); |
584 _LIT( KPluginNewL, "CAknIndicatorPlugin::NewL() test" ); |
599 _LIT( KPluginNewL, "CAknIndicatorPlugin::NewL() test" ); |
585 AssertIntL( err, err, KPluginNewL ); |
600 AssertIntL( err, err, KPluginNewL ); |
586 |
601 |
|
602 if( aknIndicatorPlugin ) |
|
603 { |
|
604 TInt textType = 0; |
|
605 aknIndicatorPlugin->TextL( 0, textType ); |
|
606 _LIT( KTextL, "CAknIndicatorPlugin::TextL() test" ); |
|
607 AssertTrueL( ETrue, KTextL ); |
|
608 |
|
609 aknIndicatorPlugin->IconL( 0 ); |
|
610 _LIT( KIconL, "CAknIndicatorPlugin::IconL() test" ); |
|
611 AssertTrueL( ETrue, KIconL ); |
|
612 |
|
613 aknIndicatorPlugin->UpdateL( 0 ); |
|
614 _LIT( KUpdateL, "CAknIndicatorPlugin::UpdateL() test" ); |
|
615 AssertTrueL( ETrue, KUpdateL ); |
|
616 } |
|
617 |
587 CleanupStack::Pop( aknIndicatorPlugin ); |
618 CleanupStack::Pop( aknIndicatorPlugin ); |
588 delete aknIndicatorPlugin; |
619 delete aknIndicatorPlugin; |
589 _LIT( KDestructor, "~CAknIndicatorPlugin() test" ); |
620 _LIT( KDestructor, "~CAknIndicatorPlugin() test" ); |
590 AssertTrueL( ETrue, KDestructor ); |
621 AssertTrueL( ETrue, KDestructor ); |
591 |
622 |