idlefw/plugins/wrtdataplugin/src/wrtdata.cpp
branchRCL_3
changeset 23 ace62b58f4b2
parent 16 b276298d5729
equal deleted inserted replaced
22:1b207dd38b72 23:ace62b58f4b2
   128 // CWrtData::UpdatePublisherStatusL
   128 // CWrtData::UpdatePublisherStatusL
   129 // ---------------------------------------------------------------------------
   129 // ---------------------------------------------------------------------------
   130 //
   130 //
   131 void CWrtData::UpdatePublisherStatusL()
   131 void CWrtData::UpdatePublisherStatusL()
   132     {
   132     {
   133      // Resent the plugin status to publisher
   133     if ( !iPlugin->IsStopped() )
   134     CLiwDefaultList* actions= CLiwDefaultList::NewLC();
   134         {
   135     actions->AppendL( TLiwVariant( KActive ));
   135          // Resent the plugin status to publisher
   136      if ( iPlugin->IsActive() )
   136         CLiwDefaultList* actions= CLiwDefaultList::NewLC();
   137          {
   137         actions->AppendL( TLiwVariant( KActive ));
   138          actions->AppendL( TLiwVariant( KResume ) );
   138          if ( iPlugin->IsActive() )
   139          }
   139              {
   140      else
   140              actions->AppendL( TLiwVariant( KResume ) );
   141          {
   141              }
   142          actions->AppendL( TLiwVariant( KSuspend ));
   142          else
   143          }
   143              {
   144       // forward the network status if it uses.
   144              actions->AppendL( TLiwVariant( KSuspend ));
   145     if ( iPlugin->NetworkStatus() == CWrtDataPlugin::EOnline )
   145              }
   146         {
   146           // forward the network status if it uses.
   147         actions->AppendL( TLiwVariant( KOnLine ));
   147         if ( iPlugin->NetworkStatus() == CWrtDataPlugin::EOnline )
   148         }
   148             {
   149     else if ( iPlugin->NetworkStatus() == CWrtDataPlugin::EOffline )
   149             actions->AppendL( TLiwVariant( KOnLine ));
   150         {
   150             }
   151         actions->AppendL( TLiwVariant(  KOffLine));
   151         else if ( iPlugin->NetworkStatus() == CWrtDataPlugin::EOffline )
   152         }
   152             {
   153 
   153             actions->AppendL( TLiwVariant(  KOffLine));
   154     ReSendNotificationL( actions );
   154             }
   155     CleanupStack::PopAndDestroy( actions );
   155     
       
   156         ReSendNotificationL( actions );
       
   157         CleanupStack::PopAndDestroy( actions );
       
   158         }
   156     }
   159     }
   157 
   160 
   158 // ---------------------------------------------------------------------------
   161 // ---------------------------------------------------------------------------
   159 // CWrtData::PublishInitialDataL
   162 // CWrtData::PublishInitialDataL
   160 // ---------------------------------------------------------------------------
   163 // ---------------------------------------------------------------------------