filebrowser/ui/inc/enginewrapper.h
changeset 19 4b22a598b890
parent 17 4f2773374eff
child 23 c9bf25a20c9f
equal deleted inserted replaced
17:4f2773374eff 19:4b22a598b890
    32 
    32 
    33 class CEngine;
    33 class CEngine;
    34 class SearchAttributes;
    34 class SearchAttributes;
    35 class SearchResults;
    35 class SearchResults;
    36 class FileBrowserView;
    36 class FileBrowserView;
       
    37 class HbProgressDialog;
    37 
    38 
    38 class QModelIndex;
    39 class QModelIndex;
    39 
    40 
    40 class OverwriteOptions
    41 class OverwriteOptions
    41 {
    42 {
    53 };
    54 };
    54 
    55 
    55 /**
    56 /**
    56  * class that is used for communicating between Symbian and Qt code.
    57  * class that is used for communicating between Symbian and Qt code.
    57  */
    58  */
    58 class EngineWrapper : MFileBrowserUI {
    59 class EngineWrapper : public QObject, public MFileBrowserUI
       
    60 {
       
    61     Q_OBJECT
    59 public:
    62 public:
    60     
       
    61     /**
    63     /**
    62      * Constructor
    64      * Constructor
    63      */
    65      */
    64     EngineWrapper();
    66     EngineWrapper();
    65     
    67     
    77 public: // from MFileBrowserUI
    79 public: // from MFileBrowserUI
    78     /* Functions that are called from engine: */
    80     /* Functions that are called from engine: */
    79     void ShowInformationNote(const TDesC &aDescText, const TDesC &aDescTitle);
    81     void ShowInformationNote(const TDesC &aDescText, const TDesC &aDescTitle);
    80     void ShowErrorNote(const TDesC& aDescText, TBool aNoTimeout = EFalse);
    82     void ShowErrorNote(const TDesC& aDescText, TBool aNoTimeout = EFalse);
    81     void ShowConfirmationNote(const TDesC& aDescText, TBool aNoTimeout = EFalse);
    83     void ShowConfirmationNote(const TDesC& aDescText, TBool aNoTimeout = EFalse);
       
    84     void ShowWaitDialog(const TDesC& aText);
       
    85     void CancelWaitDialog();
       
    86     void ProcessEvents();
    82     TBool ShowConfirmationQuery(const TDesC& aDescText);
    87     TBool ShowConfirmationQuery(const TDesC& aDescText);
    83 
    88 
    84 public: 
    89 public: 
    85     /* Functions that are called from UI */
    90     /* Functions that are called from UI */
    86     bool searchFiles();
    91     bool searchFiles();
   156     void ToolsErrorSimulateException(int aExceptionCode);
   161     void ToolsErrorSimulateException(int aExceptionCode);
   157 
   162 
   158     quint32 getDebugMask();
   163     quint32 getDebugMask();
   159     void toolsSetDebugMask(quint32 aDbgMask);
   164     void toolsSetDebugMask(quint32 aDbgMask);
   160 
   165 
       
   166     void toolsWriteAllFiles();
       
   167 
   161     void showFileCheckSums(const QModelIndex &aIndex, TFileBrowserCmdFileChecksums checksumType);
   168     void showFileCheckSums(const QModelIndex &aIndex, TFileBrowserCmdFileChecksums checksumType);
       
   169 
       
   170 private slots:
       
   171         void waitDialogCancelled();
   162 
   172 
   163 private:
   173 private:
   164     // FB engine
   174     // FB engine
   165     CEngine *mEngine;
   175     CEngine *mEngine;
   166     // List of found files results for Ui
   176     // List of found files results for Ui
   167     QStringList mFilesFound;
   177     QStringList mFilesFound;
   168     FileBrowserSettings mSettings;
   178     FileBrowserSettings mSettings;
       
   179     HbProgressDialog *mWaitDialog;
   169     };
   180     };
   170 
   181 
   171 #endif //ENGINEWRAPPER_H
   182 #endif //ENGINEWRAPPER_H