notepad/notepad1/inc/NpdViewerDialog.h
branchRCL_3
changeset 48 bf573002ff72
parent 30 d68a4b5d5885
child 67 1539a383d7b6
equal deleted inserted replaced
36:9c5b1510919f 48:bf573002ff72
    19 #ifndef NPDVIEWERDIALOG_H
    19 #ifndef NPDVIEWERDIALOG_H
    20 #define NPDVIEWERDIALOG_H
    20 #define NPDVIEWERDIALOG_H
    21 
    21 
    22 // INCLUDES
    22 // INCLUDES
    23 #include <charconv.h>
    23 #include <charconv.h>
    24 #include "NpdDialogBase.h"
       
    25 #include <centralrepository.h>
    24 #include <centralrepository.h>
    26 #include <cenrepnotifyhandler.h>
    25 #include <cenrepnotifyhandler.h>
    27 #include <itemfinderobserver.h>
    26 #include <itemfinderobserver.h>
       
    27 #include "NpdDialogBase.h"
       
    28 #include "NpdLoadFileAO.h"
    28 
    29 
    29 // FORWARD DECLARATIONS
    30 // FORWARD DECLARATIONS
    30 class CNotepadRichTextEditor;
    31 class CNotepadRichTextEditor;
    31 class CEikDialog;
    32 class CEikDialog;
    32 class CSendUi;
    33 class CSendUi;
    41 *  
    42 *  
    42 * @see CNotepadDialogBase
    43 * @see CNotepadDialogBase
    43 */
    44 */
    44 class CNotepadViewerDialog : public CNotepadDialogBase,
    45 class CNotepadViewerDialog : public CNotepadDialogBase,
    45                              public MCenRepNotifyHandlerCallback,
    46                              public MCenRepNotifyHandlerCallback,
    46                              public MAknItemFinderObserver
    47                              public MAknItemFinderObserver,
       
    48                              public MProgressDialogCallback,
       
    49                              public MNotepadLoadFileObserver
    47 
    50 
    48     {
    51     {
    49     public: // Constructor and destructor
    52     public: // Constructor and destructor
    50 
    53 
    51         /**
    54         /**
   220         
   223         
   221         void HandleFindItemEventL(
   224         void HandleFindItemEventL(
   222                 const CItemFinder::CFindItemExt& aItem,
   225                 const CItemFinder::CFindItemExt& aItem,
   223                 MAknItemFinderObserver::TEventFlag aEvent,
   226                 MAknItemFinderObserver::TEventFlag aEvent,
   224                 TUint aFlags );
   227                 TUint aFlags );
   225 
   228     
       
   229     public: // From MProgressDialogCallback       
       
   230         void DialogDismissedL( TInt aButtonId );
       
   231         
       
   232     public: // From MNotepadLoadFileObserver   
       
   233         /**
       
   234         * Notify the observer that load file completed.
       
   235         * @param aErrCode the result of load file completed.
       
   236         * @since 5.2
       
   237         */
       
   238         void NotifyCompletedL( TInt aErrCode );
   226 
   239 
   227     private: // New function
   240     private: // New function
   228 
   241 
   229         /**
   242         /**
   230         * Show "Attachement saved" note.
   243         * Show "Attachement saved" note.
   309         
   322         
   310         /**
   323         /**
   311         * Called in callback function to exit the dialog
   324         * Called in callback function to exit the dialog
   312         */
   325         */
   313         void ExitDialogOnTimerExpireL();
   326         void ExitDialogOnTimerExpireL();
       
   327         
       
   328         /**
       
   329         * Clean the progress dialog
       
   330         * @since 5.2
       
   331         */
       
   332         void CleanProgressDialogL(); 
       
   333         
       
   334         /**
       
   335         * load the file step by step
       
   336         * @param aFile  the file object to load
       
   337         * @since 5.2
       
   338         */
       
   339         void LoadFileByStepsL(RFile& aFile);
   314 
   340 
   315     private: // Data
   341     private: // Data
   316 
   342 
   317         enum TNotepadViewerFlags
   343         enum TNotepadViewerFlags
   318             {
   344             {
   354         // Central Repository session
   380         // Central Repository session
   355         CRepository* iCenRepSession;
   381         CRepository* iCenRepSession;
   356         // Notifier to listen changes of offline state
   382         // Notifier to listen changes of offline state
   357         CCenRepNotifyHandler* iNotifier;
   383         CCenRepNotifyHandler* iNotifier;
   358         CPeriodic*  iPeriodicTimer;
   384         CPeriodic*  iPeriodicTimer;
       
   385         
       
   386         // Own: Active object for load file asynchronous
       
   387         CNotepadLoadFileAO* iLoadFileAO;
       
   388                
       
   389         // Own: Progress dialog for load file
       
   390         CAknProgressDialog* iProgressDialogLoadfile;
       
   391         
   359     };
   392     };
   360 
   393 
   361 #endif // NPDVIEWERDIALOG_H
   394 #endif // NPDVIEWERDIALOG_H
   362 
   395 
   363 // End of File
   396 // End of File