filebrowser/ui/inc/enginewrapper.h
changeset 28 4cc0d1a608c1
parent 27 271e901a9423
child 51 b048e15729d6
equal deleted inserted replaced
27:271e901a9423 28:4cc0d1a608c1
    79 public: // from MFileBrowserUI
    79 public: // from MFileBrowserUI
    80     /* Functions that are called from engine: */
    80     /* Functions that are called from engine: */
    81     void ShowInformationNote(const TDesC &aDescText, const TDesC &aDescTitle);
    81     void ShowInformationNote(const TDesC &aDescText, const TDesC &aDescTitle);
    82     void ShowErrorNote(const TDesC& aDescText, TBool aNoTimeout = EFalse);
    82     void ShowErrorNote(const TDesC& aDescText, TBool aNoTimeout = EFalse);
    83     void ShowConfirmationNote(const TDesC& aDescText, TBool aNoTimeout = EFalse);
    83     void ShowConfirmationNote(const TDesC& aDescText, TBool aNoTimeout = EFalse);
       
    84 
       
    85     void ShowProgressDialog(const TDesC& aDescText, TInt aMinimum, TInt aMaximum);
       
    86     void CancelProgressDialog();
       
    87     void SetProgressValue(TInt aValue);
       
    88 
    84     void ShowWaitDialog(const TDesC& aText);
    89     void ShowWaitDialog(const TDesC& aText);
    85     void CancelWaitDialog();
    90     void CancelWaitDialog();
    86     void ProcessEvents();
    91     void ProcessEvents();
       
    92 
    87     TBool ShowConfirmationQuery(const TDesC& aDescText);
    93     TBool ShowConfirmationQuery(const TDesC& aDescText);
    88 
    94 
    89 public: 
    95 public: 
    90     /* Functions that are called from UI */
    96     /* Functions that are called from UI */
    91     bool searchFiles();
    97     bool searchFiles();
    98 
   104 
    99     void saveSettings(bool aNotifyModules = true);
   105     void saveSettings(bool aNotifyModules = true);
   100 
   106 
   101     void startExecutingCommands(const QString &aCommandsExecutionMessage);
   107     void startExecutingCommands(const QString &aCommandsExecutionMessage);
   102     void refreshView();
   108     void refreshView();
       
   109     inline TListingMode listingMode() { return mEngine->FileUtils()->ListingMode(); }
   103 //    TBool IsCurrentDriveReadOnly();
   110 //    TBool IsCurrentDriveReadOnly();
   104 //    TBool IsCurrentItemDirectory();
   111 //    TBool IsCurrentItemDirectory();
   105     void moveUpOneLevel();
   112     void moveUpOneLevel();
   106     void moveDownToDirectory(const QModelIndex& index);
   113     void moveDownToDirectory(const QModelIndex& index);
   107     int clipboardCut(const QModelIndexList &aSelectionIndices);
   114     int clipboardCut(const QModelIndexList &aSelectionIndices);
   166     void toolsWriteAllFiles();
   173     void toolsWriteAllFiles();
   167 
   174 
   168     void showFileCheckSums(const QModelIndex &aIndex, TFileBrowserCmdFileChecksums checksumType);
   175     void showFileCheckSums(const QModelIndex &aIndex, TFileBrowserCmdFileChecksums checksumType);
   169 
   176 
   170 private slots:
   177 private slots:
       
   178         void progressDialogCancelled();
   171         void waitDialogCancelled();
   179         void waitDialogCancelled();
   172 
   180 
   173 private:
   181 private:
   174     // FB engine
   182     // FB engine
   175     CEngine *mEngine;
   183     CEngine *mEngine;
   176     // List of found files results for Ui
   184     // List of found files results for Ui
   177     QStringList mFilesFound;
   185     QStringList mFilesFound;
   178     FileBrowserSettings mSettings;
   186     FileBrowserSettings mSettings;
       
   187     HbProgressDialog *mProgressDialog;
   179     HbProgressDialog *mWaitDialog;
   188     HbProgressDialog *mWaitDialog;
   180     };
   189     };
   181 
   190 
   182 #endif //ENGINEWRAPPER_H
   191 #endif //ENGINEWRAPPER_H