iaupdate/IAD/backgroundchecker/src/iaupdatebgrefreshtimer.cpp
changeset 55 ac7f90a6ff4c
parent 50 c6e8afe0ba85
child 69 b18a4bf55ddb
--- a/iaupdate/IAD/backgroundchecker/src/iaupdatebgrefreshtimer.cpp	Thu Jul 08 20:28:00 2010 +0300
+++ b/iaupdate/IAD/backgroundchecker/src/iaupdatebgrefreshtimer.cpp	Thu Jul 22 14:08:51 2010 +0300
@@ -80,6 +80,8 @@
     
     iSoftNotification = CIAUpdateBGSoftNotification::NewL( this ); 
     
+    iIndicatorNotifyHandler = CIAUpdateBGNotifyHandler::NewL();
+    
     // loc: initialize localisation text loader
     /*
     TBool res = HbTextResolverSymbian::Init(KLocFile, KLocFilePath);
@@ -109,6 +111,7 @@
     delete iControllerFile;
     delete iInternalFile;
     delete iSoftNotification;
+    delete iIndicatorNotifyHandler;
     
     }
 
@@ -118,7 +121,11 @@
 void CIAUpdateBGTimer::StartProcessL()
     {
     FLOG("[bgchecker] StartProcessL");
-        
+    
+    // start listening indicator remove
+    iIndicatorNotifyHandler->StartListeningL( this );
+    
+    
     iMode = ModeL();
     
     switch ( iMode )
@@ -1564,8 +1571,27 @@
         iSoftNotification = NULL;
         }
     
+    if ( iIndicatorNotifyHandler )
+        {
+        delete iIndicatorNotifyHandler;
+        iIndicatorNotifyHandler = NULL;
+        }
+    
     CActiveScheduler::Stop();
         
     FLOG("[bgchecker] Shutdown() end");
+    }   
+// ---------------------------------------------------------------------------
+// CIAUpdateBGTimer::HandleIndicatorRemoveL()
+// ---------------------------------------------------------------------------
+//
+void CIAUpdateBGTimer::HandleIndicatorRemoveL() 
+    {
+    // remove indicator from indicator menu
+    iSoftNotification->RemoveIndicatorL();
+    
+    //clear nr of indicator entries in internal file
+    SetNrOfIndicatorEntriesL( 0 );
     }
+
 // End of file