iaupdate/IAD/backgroundchecker/src/iaupdatebgrefreshtimer.cpp
changeset 55 ac7f90a6ff4c
parent 50 c6e8afe0ba85
child 69 b18a4bf55ddb
equal deleted inserted replaced
50:c6e8afe0ba85 55:ac7f90a6ff4c
    78     
    78     
    79     iInternalFile = CIAUpdateBGInternalFileHandler::NewL();
    79     iInternalFile = CIAUpdateBGInternalFileHandler::NewL();
    80     
    80     
    81     iSoftNotification = CIAUpdateBGSoftNotification::NewL( this ); 
    81     iSoftNotification = CIAUpdateBGSoftNotification::NewL( this ); 
    82     
    82     
       
    83     iIndicatorNotifyHandler = CIAUpdateBGNotifyHandler::NewL();
       
    84     
    83     // loc: initialize localisation text loader
    85     // loc: initialize localisation text loader
    84     /*
    86     /*
    85     TBool res = HbTextResolverSymbian::Init(KLocFile, KLocFilePath);
    87     TBool res = HbTextResolverSymbian::Init(KLocFile, KLocFilePath);
    86     if ( res != KErrNone )
    88     if ( res != KErrNone )
    87         {
    89         {
   107 
   109 
   108     delete iIAUpdateCRSession; 
   110     delete iIAUpdateCRSession; 
   109     delete iControllerFile;
   111     delete iControllerFile;
   110     delete iInternalFile;
   112     delete iInternalFile;
   111     delete iSoftNotification;
   113     delete iSoftNotification;
       
   114     delete iIndicatorNotifyHandler;
   112     
   115     
   113     }
   116     }
   114 
   117 
   115 // ----------------------------------------------------------
   118 // ----------------------------------------------------------
   116 // CIAUpdateBGTimer::StartProcessL()
   119 // CIAUpdateBGTimer::StartProcessL()
   117 // ----------------------------------------------------------
   120 // ----------------------------------------------------------
   118 void CIAUpdateBGTimer::StartProcessL()
   121 void CIAUpdateBGTimer::StartProcessL()
   119     {
   122     {
   120     FLOG("[bgchecker] StartProcessL");
   123     FLOG("[bgchecker] StartProcessL");
   121         
   124     
       
   125     // start listening indicator remove
       
   126     iIndicatorNotifyHandler->StartListeningL( this );
       
   127     
       
   128     
   122     iMode = ModeL();
   129     iMode = ModeL();
   123     
   130     
   124     switch ( iMode )
   131     switch ( iMode )
   125         {
   132         {
   126         case EFirstTimeMode:
   133         case EFirstTimeMode:
  1562         {
  1569         {
  1563         delete iSoftNotification;
  1570         delete iSoftNotification;
  1564         iSoftNotification = NULL;
  1571         iSoftNotification = NULL;
  1565         }
  1572         }
  1566     
  1573     
       
  1574     if ( iIndicatorNotifyHandler )
       
  1575         {
       
  1576         delete iIndicatorNotifyHandler;
       
  1577         iIndicatorNotifyHandler = NULL;
       
  1578         }
       
  1579     
  1567     CActiveScheduler::Stop();
  1580     CActiveScheduler::Stop();
  1568         
  1581         
  1569     FLOG("[bgchecker] Shutdown() end");
  1582     FLOG("[bgchecker] Shutdown() end");
  1570     }
  1583     }   
       
  1584 // ---------------------------------------------------------------------------
       
  1585 // CIAUpdateBGTimer::HandleIndicatorRemoveL()
       
  1586 // ---------------------------------------------------------------------------
       
  1587 //
       
  1588 void CIAUpdateBGTimer::HandleIndicatorRemoveL() 
       
  1589     {
       
  1590     // remove indicator from indicator menu
       
  1591     iSoftNotification->RemoveIndicatorL();
       
  1592     
       
  1593     //clear nr of indicator entries in internal file
       
  1594     SetNrOfIndicatorEntriesL( 0 );
       
  1595     }
       
  1596 
  1571 // End of file
  1597 // End of file