iaupdate/IAD/backgroundchecker/inc/iaupdatebgrefreshtimer.h
changeset 60 245df5276b97
parent 53 ae54820ef82c
equal deleted inserted replaced
53:ae54820ef82c 60:245df5276b97
    30 #include "iaupdatebginternalfilehandler.h"
    30 #include "iaupdatebginternalfilehandler.h"
    31 #include "iaupdatebgcontrollerfile.h"
    31 #include "iaupdatebgcontrollerfile.h"
    32 #include "iaupdatebgsoftnotification.h"
    32 #include "iaupdatebgsoftnotification.h"
    33 #include "iaupdatebgcheckermode.h"
    33 #include "iaupdatebgcheckermode.h"
    34 
    34 
       
    35 #include "iaupdatebgnotifyhandler.h"
       
    36 
    35 // FORWARD DECLARATIONS
    37 // FORWARD DECLARATIONS
    36 class CIAUpdate;
    38 class CIAUpdate;
    37 class CIAUpdateParameters;
    39 class CIAUpdateParameters;
    38 class CInternalFileHandler;
    40 class CInternalFileHandler;
    39 class CIdleObserver;
    41 class CIdleObserver;
    47  */
    49  */
    48 
    50 
    49 class CIAUpdateBGTimer : public CTimer, 
    51 class CIAUpdateBGTimer : public CTimer, 
    50                  public MIAUpdateObserver, 
    52                  public MIAUpdateObserver, 
    51                  public MCenRepNotifyHandlerCallback, 
    53                  public MCenRepNotifyHandlerCallback, 
    52                  public MIAUpdateBGSoftNotificationCallBack 
    54                  public MIAUpdateBGSoftNotificationCallBack,
       
    55                  public MIAUpdateBGNotifyObserver
    53             
    56             
    54     {
    57     {
    55     public:
    58     public:
    56    
    59    
    57          static CIAUpdateBGTimer* NewL();  
    60          static CIAUpdateBGTimer* NewL();  
    80         void UpdateQueryComplete( TInt aErrorCode, TBool aUpdateNow );
    83         void UpdateQueryComplete( TInt aErrorCode, TBool aUpdateNow );
    81    
    84    
    82     public: //MReminderTimerCallBack
    85     public: //MReminderTimerCallBack
    83 
    86 
    84         void ReminderTimerCallBack();
    87         void ReminderTimerCallBack();
       
    88     
       
    89     private: // From MIAUpdateBGNotifyObserver   
       
    90 
       
    91          void HandleIndicatorRemoveL();
    85         
    92         
    86     private:
    93     private:
    87     
    94     
    88         CIAUpdateBGTimer();
    95         CIAUpdateBGTimer();
    89 
    96 
   133         
   140         
   134         TIAUpdateBGMode ModeL();
   141         TIAUpdateBGMode ModeL();
   135 
   142 
   136         TInt SetModeL( TIAUpdateBGMode aMode );
   143         TInt SetModeL( TIAUpdateBGMode aMode );
   137         
   144         
       
   145         TInt NrOfIndicatorEntries();
       
   146 
       
   147         TInt SetNrOfIndicatorEntriesL( TInt aEntries );
       
   148         
   138         TInt RetryTimesL();
   149         TInt RetryTimesL();
   139 
   150 
   140         TInt SetRetryTimesL( TInt aRetry );
   151         TInt SetRetryTimesL( TInt aRetry );
   141           
   152           
   142         void StartIaupdateL() const;
   153         void StartIaupdateL() const;
   171         TInt iLastRunLength;
   182         TInt iLastRunLength;
   172         CIAUpdateBGControllerFile* iControllerFile;
   183         CIAUpdateBGControllerFile* iControllerFile;
   173         CIAUpdateBGInternalFileHandler* iInternalFile;
   184         CIAUpdateBGInternalFileHandler* iInternalFile;
   174         TIAUpdateBGMode iMode;
   185         TIAUpdateBGMode iMode;
   175         CIAUpdateBGSoftNotification* iSoftNotification;
   186         CIAUpdateBGSoftNotification* iSoftNotification;
       
   187         
       
   188         CIAUpdateBGNotifyHandler* iIndicatorNotifyHandler;
   176     };        
   189     };        
   177 
   190 
   178 #endif //IAUPDATEBGREFRESHTIMER_H
   191 #endif //IAUPDATEBGREFRESHTIMER_H