iaupdate/IAD/ui/inc/iaupdateuicontroller.h
branchGCC_SURGE
changeset 56 afe7195bb6c3
parent 52 92f864ef0288
child 77 d1838696558c
equal deleted inserted replaced
41:0410b3201a77 56:afe7195bb6c3
    26 #include "iaupdateuidefines.h"
    26 #include "iaupdateuidefines.h"
    27 #include "iaupdatecontroller.h"
    27 #include "iaupdatecontroller.h"
    28 #include "iaupdatecontrollerobserver.h"
    28 #include "iaupdatecontrollerobserver.h"
    29 #include "iaupdatenodeobserver.h"
    29 #include "iaupdatenodeobserver.h"
    30 #include "iaupdatewaitdialogobserver.h"
    30 #include "iaupdatewaitdialogobserver.h"
       
    31 #include "iaupdatedialogobserver.h"
    31 #include "iaupdatestarterobserver.h"
    32 #include "iaupdatestarterobserver.h"
    32 #include "iaupdateroaminghandlerobserver.h"
    33 #include "iaupdateroaminghandlerobserver.h"
    33 #include "iaupdaterefreshobserver.h"
    34 #include "iaupdaterefreshobserver.h"
    34 #include "iaupdateresultsinfo.h"
    35 #include "iaupdateresultsinfo.h"
    35 #include "iaupdateversion.h"
    36 #include "iaupdateversion.h"
    46 class CIAUpdateRefreshHandler;
    47 class CIAUpdateRefreshHandler;
    47 class MIAUpdateUiControllerObserver;
    48 class MIAUpdateUiControllerObserver;
    48 class MIAUpdateHistory;
    49 class MIAUpdateHistory;
    49 class MIAUpdateFwNode;
    50 class MIAUpdateFwNode;
    50 class IAUpdateWaitDialog;
    51 class IAUpdateWaitDialog;
       
    52 class IAUpdateDialogUtil;
    51 
    53 
    52 class QString;
    54 class QString;
    53 class CIAUpdateNodeId;
    55 class CIAUpdateNodeId;
    54 class CEikonEnv;
    56 class CEikonEnv;
       
    57 class HbAction;
    55 
    58 
    56 
    59 
    57 // CLASS DECLARATION
    60 // CLASS DECLARATION
    58 /**
    61 /**
    59  *  CIAUpdateUiController controls update flow in UI  
    62  *  CIAUpdateUiController controls update flow in UI  
    64     public MIAUpdateControllerObserver,
    67     public MIAUpdateControllerObserver,
    65     public MIAUpdateNodeObserver,
    68     public MIAUpdateNodeObserver,
    66     public MIAUpdateWaitDialogObserver,
    69     public MIAUpdateWaitDialogObserver,
    67     public MIAUpdateStarterObserver,
    70     public MIAUpdateStarterObserver,
    68     public MIAUpdateRoamingHandlerObserver,
    71     public MIAUpdateRoamingHandlerObserver,
    69     public MIAUpdateRefreshObserver
    72     public MIAUpdateRefreshObserver,
       
    73     public IAUpdateDialogObserver
    70     {
    74     {
    71            
    75            
    72 public: //new functions
    76 public: //new functions
    73 
    77 
    74     /**
    78     /**
   236     CIAUpdateParameters* ParamsReadAndRemoveFileL();
   240     CIAUpdateParameters* ParamsReadAndRemoveFileL();
   237     
   241     
   238     TBool ForcedRefresh() const;
   242     TBool ForcedRefresh() const;
   239       
   243       
   240     void SetForcedRefresh( TBool aForcedRefresh );
   244     void SetForcedRefresh( TBool aForcedRefresh );
       
   245     
       
   246     /**
       
   247      *  Set node list to normal state after update. 
       
   248      */
       
   249     void RefreshNodeList();
       
   250     
       
   251     
   241     /**
   252     /**
   242      * Is client role "testing"
   253      * Is client role "testing"
   243      *
   254      *
   244      * @return ETrue when client's role is "testing"
   255      * @return ETrue when client's role is "testing"
   245      **/
   256      **/
   328     
   339     
   329     /**
   340     /**
   330      * This is called when the dialog is  closed.
   341      * This is called when the dialog is  closed.
   331      */
   342      */
   332      void HandleWaitDialogCancel();   
   343      void HandleWaitDialogCancel();   
       
   344      
       
   345 private: // From IAUpdateDialogObserver     
       
   346          
       
   347      void dialogFinished(HbAction *action);   
   333     
   348     
   334 
   349 
   335 private: // From MIAUpdateRefreshObserver   
   350 private: // From MIAUpdateRefreshObserver   
   336 
   351 
   337      void HandleUiRefreshL();
   352      void HandleUiRefreshL();
   352      */
   367      */
   353     CIAUpdateUiController( MIAUpdateUiControllerObserver& aObserver );
   368     CIAUpdateUiController( MIAUpdateUiControllerObserver& aObserver );
   354 
   369 
   355 
   370 
   356 private: // new functions
   371 private: // new functions
       
   372     
       
   373     void AgreementHandledL();
   357 
   374 
   358     /**
   375     /**
   359      * Called when refreshing updates list is completed.
   376      * Called when refreshing updates list is completed.
   360      *
   377      *
   361      * @param aNodes An array of nodes
   378      * @param aNodes An array of nodes
   544         ESendingReport,
   561         ESendingReport,
   545         EUiRefreshing,
   562         EUiRefreshing,
   546         ESelfUpdating
   563         ESelfUpdating
   547         };
   564         };
   548 
   565 
       
   566     enum TDialogState
       
   567         {
       
   568         ENoDialog,
       
   569         EAgreement,
       
   570         EInsufficientMemory  
       
   571         };
       
   572     
       
   573     
   549     MIAUpdateUiControllerObserver& iObserver;
   574     MIAUpdateUiControllerObserver& iObserver;
   550 
   575 
   551     MIAUpdateController* iController;
   576     MIAUpdateController* iController;
   552     
   577     
   553     RPointerArray< MIAUpdateNode > iNodes;   
   578     RPointerArray< MIAUpdateNode > iNodes;   
   557     RPointerArray< MIAUpdateFwNode > iFwNodes;   
   582     RPointerArray< MIAUpdateFwNode > iFwNodes;   
   558    
   583    
   559     RPointerArray<CIAUpdateNodeId> iPreviousSelections;
   584     RPointerArray<CIAUpdateNodeId> iPreviousSelections;
   560     
   585     
   561     RPointerArray<MIAUpdateNode> iServicePackNodes;
   586     RPointerArray<MIAUpdateNode> iServicePackNodes;
       
   587     
       
   588     IAUpdateDialogUtil *mDialogUtil;  
   562  
   589  
   563     IAUpdateWaitDialog *mWaitDialog;
   590     IAUpdateWaitDialog *mWaitDialog;
   564     
   591     
   565     CIAUpdateProgressDialog* iProgressDialog;
   592     CIAUpdateProgressDialog* iProgressDialog;
   566     
   593     
   584     
   611     
   585     IAUpdateUiDefines::TIAUpdateUiRequestType iRequestType;
   612     IAUpdateUiDefines::TIAUpdateUiRequestType iRequestType;
   586     
   613     
   587     TState iState;
   614     TState iState;
   588     
   615     
       
   616     TDialogState iDialogState;
       
   617     
   589     TBool iClosingAllowedByClient;
   618     TBool iClosingAllowedByClient;
   590     
   619     
   591     CIAUpdateUiConfigData* iConfigData;
   620     CIAUpdateUiConfigData* iConfigData;
   592     
   621     
   593     CIAUpdateParameters* iParams;
   622     CIAUpdateParameters* iParams;
   603     TBool iOffConfigurated;
   632     TBool iOffConfigurated;
   604     
   633     
   605     TBool iForcedRefresh;
   634     TBool iForcedRefresh;
   606         
   635         
   607     TBool iTestRole;
   636     TBool iTestRole;
       
   637     
       
   638     HbAction *mPrimaryAction;
   608 
   639 
   609     };
   640     };
   610 
   641 
   611 #endif // IAUPDATEUICONTROLLER_H
   642 #endif // IAUPDATEUICONTROLLER_H
   612 
   643