wlanutilities/wlansniffer/aiplugin/src/wsfaiplugin.cpp
branchRCL_3
changeset 20 858c6c491d0e
parent 18 981afc7d3841
equal deleted inserted replaced
18:981afc7d3841 20:858c6c491d0e
   550                 {
   550                 {
   551                 iAnimationPeriodic->Cancel();
   551                 iAnimationPeriodic->Cancel();
   552                 delete iAnimationPeriodic;
   552                 delete iAnimationPeriodic;
   553                 iAnimationPeriodic = NULL;
   553                 iAnimationPeriodic = NULL;
   554                 }
   554                 }
       
   555             iPublishNetworkStatusText = ETrue;
   555             iAiModel->InitializeRefreshAnimation();
   556             iAiModel->InitializeRefreshAnimation();
   556             iAnimationPeriodic = CPeriodic::NewL(
   557             iAnimationPeriodic = CPeriodic::NewL(
   557                     CActive::EPriorityStandard );
   558                     CActive::EPriorityStandard );
   558                         
   559                         
   559             iAnimationPeriodic->Start(
   560             iAnimationPeriodic->Start(
   591         iAnimationPeriodic->Cancel();
   592         iAnimationPeriodic->Cancel();
   592         delete iAnimationPeriodic;
   593         delete iAnimationPeriodic;
   593         iAnimationPeriodic = NULL;
   594         iAnimationPeriodic = NULL;
   594         }
   595         }
   595 
   596 
       
   597     iPublishNetworkStatusText = ETrue;
   596     iAiModel->InitializeConnectingAnimation();
   598     iAiModel->InitializeConnectingAnimation();
   597     iAnimationPeriodic = CPeriodic::NewL(
   599     iAnimationPeriodic = CPeriodic::NewL(
   598                                     CActive::EPriorityStandard );
   600                                     CActive::EPriorityStandard );
   599                 
   601                 
   600     iAnimationPeriodic->Start(
   602     iAnimationPeriodic->Start(
   837 // ---------------------------------------------------------------------------
   839 // ---------------------------------------------------------------------------
   838 // CWsfAiPlugin::PublishStatusIconL
   840 // CWsfAiPlugin::PublishStatusIconL
   839 // ---------------------------------------------------------------------------
   841 // ---------------------------------------------------------------------------
   840 //
   842 //
   841 void CWsfAiPlugin::PublishStatusIconL( CArrayFix<TInt>* aPublishIconArray, 
   843 void CWsfAiPlugin::PublishStatusIconL( CArrayFix<TInt>* aPublishIconArray, 
   842                                     CEikLabel* /*aText1*/ )
   844                                        CEikLabel* aText1 )
   843     {
   845     {
   844     LOG_ENTERFN( "CWsfAiPlugin::PublishStatusIconL" );
   846     LOG_ENTERFN( "CWsfAiPlugin::PublishStatusIconL" );
   845     TBool published( EFalse );
   847     TBool published( EFalse );
   846     TInt iconId( 0 );
   848     TInt iconId( 0 );
   847 
   849 
   856         // Publish Status icon: EAiWizardContentStatusIcon
   858         // Publish Status icon: EAiWizardContentStatusIcon
   857         iconId = aPublishIconArray->At( 0 );
   859         iconId = aPublishIconArray->At( 0 );
   858         published = PublishIconL( observer, 
   860         published = PublishIconL( observer, 
   859                                   EAiWizardContentStatusIcon,
   861                                   EAiWizardContentStatusIcon,
   860                                   iconId ) || published;
   862                                   iconId ) || published;
       
   863         
       
   864         if ( iPublishNetworkStatusText && aText1 )
       
   865             {
       
   866             iPublishNetworkStatusText = EFalse;
       
   867             HBufC *statusText = aText1->Text()->AllocLC();
       
   868             published = PublishText( observer, 
       
   869                                      EAiWizardContentNetworkStatus,
       
   870                                      *statusText ) || published;
       
   871             CleanupStack::PopAndDestroy( statusText );
       
   872             }
       
   873         
   861         // If we published something then commit, 
   874         // If we published something then commit, 
   862         // otherwise cancel transaction
   875         // otherwise cancel transaction
   863         if ( published )
   876         if ( published )
   864             {
   877             {
   865             published = EFalse;
   878             published = EFalse;