iaupdate/IAD/updater/inc/iaupdaterdialog.h
changeset 53 ae54820ef82c
parent 29 26b6f0522fd8
equal deleted inserted replaced
52:92f864ef0288 53:ae54820ef82c
    23 //  INCLUDES
    23 //  INCLUDES
    24 #include <e32base.h>
    24 #include <e32base.h>
    25 #include <f32file.h>
    25 #include <f32file.h>
    26 #include <barsc.h>
    26 #include <barsc.h>
    27 
    27 
       
    28 #include <hbdeviceprogressdialogsymbian.h>
       
    29 
    28 // FORWARD DECLARATIONS
    30 // FORWARD DECLARATIONS
    29 class MIAUpdaterCancelObserver;
    31 class MIAUpdaterCancelObserver;
    30 
       
    31 /**
    32 /**
    32 * Class for showing the global note dialog when installing self update.
    33 * Class for showing the global note dialog when installing self update.
    33 * 
       
    34 *  @code   
       
    35 *  @endcode
       
    36 *  @lib 
       
    37 *  @since S60 
       
    38 */
    34 */
    39 class CIAUpdaterDialog : public CActive
    35 class CIAUpdaterDialog : public CBase,
       
    36                          public MHbDeviceProgressDialogObserver
    40     {
    37     {
    41 public:  
    38 public:  
    42         
    39         
    43     /**
    40     /**
    44      * Two-phased constructor.
    41      * Two-phased constructor.
    45      */
    42      */
    46     static CIAUpdaterDialog* NewL( RFs& aFs, MIAUpdaterCancelObserver& aObserver ); 
    43     static CIAUpdaterDialog* NewL( MIAUpdaterCancelObserver& aObserver );
    47 
       
    48     /**
    44     /**
    49      * Two-phased constructor.
    45      * Two-phased constructor.
    50      */
    46      */
    51     static CIAUpdaterDialog* NewLC( RFs& aFs, MIAUpdaterCancelObserver& aObserver );
    47     static CIAUpdaterDialog* NewLC( MIAUpdaterCancelObserver& aObserver );
    52 
    48 
    53             
    49             
    54     /**
    50     /**
    55      * Destructor.
    51      * Destructor.
    56      */
    52      */
    71     /**
    67     /**
    72      * Cancel global waiting note (after installing).
    68      * Cancel global waiting note (after installing).
    73      */
    69      */
    74     void CancelWaitingNoteL();
    70     void CancelWaitingNoteL();
    75 
    71 
       
    72     /**
       
    73      * From base class MHbDeviceProgressDialogObserver
       
    74      */
       
    75     void ProgressDialogCancelled(
       
    76         const CHbDeviceProgressDialogSymbian* aProgressDialog);
       
    77     
       
    78     /**
       
    79     * From base class MHbDeviceProgressDialogObserver
       
    80     */
       
    81     void ProgressDialogClosed(
       
    82          const CHbDeviceProgressDialogSymbian* aProgressDialog);
       
    83 
       
    84 
    76 
    85 
    77 private:
    86 private:
    78 
    87 
    79     /**
    88     /**
    80      * Constructor.
    89      * Constructor.
    81      */  
    90      */  
    82     CIAUpdaterDialog( RFs& aFs, MIAUpdaterCancelObserver& aObserver );
    91     CIAUpdaterDialog( MIAUpdaterCancelObserver& aObserver );
    83      
    92      
    84     /**
    93     /**
    85      * 2nd phase constructor.
    94      * 2nd phase constructor.
    86      */
    95      */
    87     void ConstructL();
    96     void ConstructL();
    88 
    97 
    89 
    98     
    90     /**
    99     /**
    91      * Read resource string.
   100      * Destroy wait note.
    92      * @since 
       
    93      * @param aResourceId Id of the resource.
       
    94      * @return Resource buffer.
       
    95      */
   101      */
    96     HBufC* ReadResourceLC( TInt aResourceId );    
   102     void CIAUpdaterDialog::DestroyGlobalWaitNote();
    97         
   103     
    98 private: // from CActive
       
    99 
       
   100     /**
       
   101      * Cancels async request 
       
   102      * @see CActive::DoCancel
       
   103      *
       
   104      */
       
   105     void DoCancel();
       
   106 
       
   107     /**
       
   108      * When the server side has finished operation, the CActive object will
       
   109      * be informed about it, and as a result RunL will be called. This function
       
   110      * well inform the observer that the operation has been completed.
       
   111      * @see CActive::RunL
       
   112      *
       
   113      */
       
   114     void RunL();
       
   115 
   104 
   116 private: // data
   105 private: // data
   117 
   106 
   118     // Resource file.
   107     /**
   119     //RResourceFile iResourceFile;
   108      * Not owned, install observer.
   120 
   109      */
   121     // File server handle.        
   110     MIAUpdaterCancelObserver* iObserver; 
   122     RFs& iFs;        
   111     /**
   123                    
   112     * Own, Global wait note.
   124     //CAknGlobalNote* iNote;
   113     */
       
   114     CHbDeviceProgressDialogSymbian* iGlobalWaitNote;
   125     
   115     
   126     // Dialog id for canceling dialog. 
   116     /**
   127     TInt iNoteId;
   117     * Own, resouce of global note.
   128         
   118     */
   129     MIAUpdaterCancelObserver* iObserver; //not owned
   119     HBufC* iGlobalResource;
       
   120     
       
   121     /**
       
   122      * Check Load Success .ts file successfully or not
       
   123      */
       
   124     TBool iIsResolverSuccess;
   130         
   125         
   131     };
   126     };
   132 
   127 
   133 #endif      // CIAUPDATERDIALOG_H   
   128 #endif      // CIAUPDATERDIALOG_H   
   134             
   129