filemanager/src/inc/fmserviceutils/private/symbian/fmserviceutilshandler.h
changeset 49 81668a704644
parent 47 12b82dc0e8db
equal deleted inserted replaced
47:12b82dc0e8db 49:81668a704644
    27 
    27 
    28 // INCLUDES
    28 // INCLUDES
    29 #include <e32base.h>
    29 #include <e32base.h>
    30 #include <f32file.h>
    30 #include <f32file.h>
    31 
    31 
       
    32 /*!
       
    33     \class MServiceUtilsObserver 
       
    34     \brief The class MServiceUtilsObserver provide event to notify CloseApp complete
       
    35 */
       
    36 class MServiceUtilsObserver
       
    37 {
       
    38 public:
       
    39     // called when CloseAppsL operation complete
       
    40     virtual void handleCloseAppCompleteL( TInt err ) = 0;
       
    41 };
    32 
    42 
    33 // FORWARD DECLARATIONS
    43 // FORWARD DECLARATIONS
    34 class CBaBackupSessionWrapper;
    44 class CBaBackupSessionWrapper;
    35 
    45 
    36 /*!
    46 /*!
    46     virtual ~CFmServiceUtilsHandler();
    56     virtual ~CFmServiceUtilsHandler();
    47 
    57 
    48 public: // New methods
    58 public: // New methods
    49     void CloseAppsL();
    59     void CloseAppsL();
    50     void RestartAppsL();
    60     void RestartAppsL();
    51 
    61     void setObserver( MServiceUtilsObserver *observer );
       
    62     
    52 private: // From CActive
    63 private: // From CActive
    53     void DoCancel();
    64     void DoCancel();
    54     void RunL();
    65     void RunL();
    55     TInt RunError( TInt aError );
    66     TInt RunError( TInt aError );
    56 
    67 
    57 private:
    68 private:
    58 
    69 
    59     CFmServiceUtilsHandler();
    70     CFmServiceUtilsHandler();
    60     void ConstructL();
    71     void ConstructL();
    61     void StartWait();
       
    62     
    72     
    63 private:    // Data
    73 private:    // Data
    64     /**
    74     /**
    65      * Last process error
    75      * Last process error
    66      */
    76      */
    78 
    88 
    79     /**
    89     /**
    80      * Wait is used to change asynchronous function to synchronous function
    90      * Wait is used to change asynchronous function to synchronous function
    81      */
    91      */
    82     CActiveSchedulerWait iWait;
    92     CActiveSchedulerWait iWait;
       
    93     
       
    94     MServiceUtilsObserver *iObserver;
    83     };
    95     };
    84 
    96 
    85 #endif
    97 #endif
    86             
    98             
    87 // End of File
    99 // End of File