idlefw/plugins/devicestatus/src/aibtsappublisher.cpp
branchRCL_3
changeset 9 d0529222e3f0
parent 0 79c6a41cd166
--- a/idlefw/plugins/devicestatus/src/aibtsappublisher.cpp	Tue Feb 02 00:23:10 2010 +0200
+++ b/idlefw/plugins/devicestatus/src/aibtsappublisher.cpp	Fri Feb 19 23:07:29 2010 +0200
@@ -82,7 +82,7 @@
 
 
 void CAiBTSAPPublisher::Subscribe( MAiContentObserver& /*aObserver*/,
-								    MAiPropertyExtension& aExtension,
+								    CHsContentPublisher& aExtension,
                                     MAiPublishPrioritizer& aPrioritizer,
                                     MAiPublisherBroadcaster& aBroadcaster )
     {
@@ -95,6 +95,12 @@
 void CAiBTSAPPublisher::RefreshL( TBool aClean )
     {
     iSuccess = EFalse;
+    
+    if ( iSuspended )
+        {
+        return;
+        }
+    
     if( aClean )
         {
         iPrioritizer->TryToCleanL( *iBroadcaster,
@@ -165,17 +171,32 @@
 
 TBool CAiBTSAPPublisher::RefreshL( TInt aContentId, TBool aClean )
 	{
-    if( aContentId == EAiDeviceStatusContentNetworkIdentity )
+    if ( aContentId == EAiDeviceStatusContentNetworkIdentity )
         {
+        iSuspended = EFalse;
+        
    	    RefreshL( aClean );
-        if( iSuccess )
+        
+   	    if ( iSuccess )
 	        {
 	        return ETrue;
 	        }
         }
+    
     return EFalse;
 	}
 
+TBool CAiBTSAPPublisher::SuspendL( TInt aContentId, TBool /*aClean*/ )
+    {
+    if ( aContentId == EAiDeviceStatusContentNetworkIdentity )
+        {
+        iSuspended = ETrue;
+        
+        return ETrue;
+        }
+    
+    return EFalse;
+    }
 
 TBool CAiBTSAPPublisher::RefreshContentWithPriorityL( TInt aContentId,
                                                         TInt aPriority )