idlefw/plugins/devicestatus/src/aibtsappublisher.cpp
branchRCL_3
changeset 9 d0529222e3f0
parent 0 79c6a41cd166
equal deleted inserted replaced
4:1a2a00e78665 9:d0529222e3f0
    80     SetActive();
    80     SetActive();
    81     }
    81     }
    82 
    82 
    83 
    83 
    84 void CAiBTSAPPublisher::Subscribe( MAiContentObserver& /*aObserver*/,
    84 void CAiBTSAPPublisher::Subscribe( MAiContentObserver& /*aObserver*/,
    85 								    MAiPropertyExtension& aExtension,
    85 								    CHsContentPublisher& aExtension,
    86                                     MAiPublishPrioritizer& aPrioritizer,
    86                                     MAiPublishPrioritizer& aPrioritizer,
    87                                     MAiPublisherBroadcaster& aBroadcaster )
    87                                     MAiPublisherBroadcaster& aBroadcaster )
    88     {
    88     {
    89     iExtension = &aExtension;
    89     iExtension = &aExtension;
    90     iPrioritizer = &aPrioritizer;
    90     iPrioritizer = &aPrioritizer;
    93 
    93 
    94 
    94 
    95 void CAiBTSAPPublisher::RefreshL( TBool aClean )
    95 void CAiBTSAPPublisher::RefreshL( TBool aClean )
    96     {
    96     {
    97     iSuccess = EFalse;
    97     iSuccess = EFalse;
       
    98     
       
    99     if ( iSuspended )
       
   100         {
       
   101         return;
       
   102         }
       
   103     
    98     if( aClean )
   104     if( aClean )
    99         {
   105         {
   100         iPrioritizer->TryToCleanL( *iBroadcaster,
   106         iPrioritizer->TryToCleanL( *iBroadcaster,
   101         							EAiDeviceStatusContentNetworkIdentity,
   107         							EAiDeviceStatusContentNetworkIdentity,
   102         							EAiBTSAP );
   108         							EAiBTSAP );
   163     }
   169     }
   164 
   170 
   165 
   171 
   166 TBool CAiBTSAPPublisher::RefreshL( TInt aContentId, TBool aClean )
   172 TBool CAiBTSAPPublisher::RefreshL( TInt aContentId, TBool aClean )
   167 	{
   173 	{
   168     if( aContentId == EAiDeviceStatusContentNetworkIdentity )
   174     if ( aContentId == EAiDeviceStatusContentNetworkIdentity )
   169         {
   175         {
       
   176         iSuspended = EFalse;
       
   177         
   170    	    RefreshL( aClean );
   178    	    RefreshL( aClean );
   171         if( iSuccess )
   179         
       
   180    	    if ( iSuccess )
   172 	        {
   181 	        {
   173 	        return ETrue;
   182 	        return ETrue;
   174 	        }
   183 	        }
   175         }
   184         }
       
   185     
   176     return EFalse;
   186     return EFalse;
   177 	}
   187 	}
   178 
   188 
       
   189 TBool CAiBTSAPPublisher::SuspendL( TInt aContentId, TBool /*aClean*/ )
       
   190     {
       
   191     if ( aContentId == EAiDeviceStatusContentNetworkIdentity )
       
   192         {
       
   193         iSuspended = ETrue;
       
   194         
       
   195         return ETrue;
       
   196         }
       
   197     
       
   198     return EFalse;
       
   199     }
   179 
   200 
   180 TBool CAiBTSAPPublisher::RefreshContentWithPriorityL( TInt aContentId,
   201 TBool CAiBTSAPPublisher::RefreshContentWithPriorityL( TInt aContentId,
   181                                                         TInt aPriority )
   202                                                         TInt aPriority )
   182 	{
   203 	{
   183 	if( aContentId == EAiDeviceStatusContentNetworkIdentity &&
   204 	if( aContentId == EAiDeviceStatusContentNetworkIdentity &&