filemanager/src/filemanager/src/operationservice/fmoperationresultprocesser.h
changeset 16 ada7962b4308
parent 14 1957042d8c7e
child 21 15299bc55001
child 37 15bc28c9dd51
equal deleted inserted replaced
14:1957042d8c7e 16:ada7962b4308
    19 #define FMOPERATIONRESULTPROCESSER_H
    19 #define FMOPERATIONRESULTPROCESSER_H
    20 #include <QObject>
    20 #include <QObject>
    21 
    21 
    22 class FmOperationBase;
    22 class FmOperationBase;
    23 class FmOperationService;
    23 class FmOperationService;
    24 class HbProgressNote;
    24 class HbProgressDialog;
    25 
    25 
    26 class FmOperationResultProcesser :
    26 class FmOperationResultProcesser :
    27     public QObject
    27     public QObject
    28 {
    28 {
    29 Q_OBJECT
    29 Q_OBJECT
    30 public:
    30 public:
    31     explicit FmOperationResultProcesser( FmOperationService* );
    31     explicit FmOperationResultProcesser( FmOperationService* );
    32     ~FmOperationResultProcesser(void);
    32     ~FmOperationResultProcesser(void);
    33 
    33 
    34     void onAskForRename( FmOperationBase* operationBase, const QString &srcFile, QString *destFile );
    34     void onAskForRename( FmOperationBase* operationBase, const QString &srcFile, QString *destFile );
       
    35     void onAskForReplace( FmOperationBase* operationBase, const QString &srcFile, const QString &destFile, bool *isAccepted );
    35     void onNotifyWaiting( FmOperationBase* operationBase, bool cancelable );
    36     void onNotifyWaiting( FmOperationBase* operationBase, bool cancelable );
    36     void onNotifyPreparing( FmOperationBase* operationBase, bool cancelable );
    37     void onNotifyPreparing( FmOperationBase* operationBase, bool cancelable );
    37     void onNotifyStart( FmOperationBase* operationBase, bool cancelable, int maxSteps );
    38     void onNotifyStart( FmOperationBase* operationBase, bool cancelable, int maxSteps );
    38     void onNotifyProgress( FmOperationBase* operationBase, int currentStep );
    39     void onNotifyProgress( FmOperationBase* operationBase, int currentStep );
    39 
    40 
    51     void finishProgress();
    52     void finishProgress();
    52     void cancelProgress();
    53     void cancelProgress();
    53     void failAndCloseProgress();
    54     void failAndCloseProgress();
    54 private:
    55 private:
    55     FmOperationService *mOperationService;
    56     FmOperationService *mOperationService;
    56     HbProgressNote *mNote;
    57     HbProgressDialog *mNote;
    57 };
    58 };
    58 
    59 
    59 #endif
    60 #endif