filebrowser/ui/inc/enginewrapper.h
changeset 51 b048e15729d6
parent 28 4cc0d1a608c1
equal deleted inserted replaced
44:5db69f4c3d06 51:b048e15729d6
    16 */
    16 */
    17 
    17 
    18 #ifndef ENGINEWRAPPER_H
    18 #ifndef ENGINEWRAPPER_H
    19 #define ENGINEWRAPPER_H
    19 #define ENGINEWRAPPER_H
    20 
    20 
    21 #include "driveentry.h"
    21 #include "fbdriveentry.h"
    22 #include "fileentry.h"
    22 #include "fbfileentry.h"
    23 #include "filebrowsersettings.h"
    23 #include "filebrowsersettings.h"
    24 
    24 
    25 #include "engine.h"
    25 #include "engine.h"
    26 #include "FBFileUtils.h"
    26 #include "FBFileUtils.h"
    27 #include "FB.hrh"
    27 #include "FB.hrh"
    89     void ShowWaitDialog(const TDesC& aText);
    89     void ShowWaitDialog(const TDesC& aText);
    90     void CancelWaitDialog();
    90     void CancelWaitDialog();
    91     void ProcessEvents();
    91     void ProcessEvents();
    92 
    92 
    93     TBool ShowConfirmationQuery(const TDesC& aDescText);
    93     TBool ShowConfirmationQuery(const TDesC& aDescText);
       
    94     void NotifyModelHasChanged();
    94 
    95 
    95 public: 
    96 public: 
    96     /* Functions that are called from UI */
    97     /* Functions that are called from UI */
    97     bool searchFiles();
    98     bool searchFiles();
    98     SearchAttributes getFileSearchAttributes();
    99     SearchAttributes getFileSearchAttributes();
   120     void deleteItems(const QModelIndexList& aSelectionIndices);
   121     void deleteItems(const QModelIndexList& aSelectionIndices);
   121     bool selectionHasDirs();
   122     bool selectionHasDirs();
   122     void rename(const QModelIndex& aIndex, const QString aNewName);
   123     void rename(const QModelIndex& aIndex, const QString aNewName);
   123     void touch(bool aRecurse);
   124     void touch(bool aRecurse);
   124     void properties(const QModelIndex &aCurrentItemIndex, QStringList &aPropertyList, QString &aTitleText);
   125     void properties(const QModelIndex &aCurrentItemIndex, QStringList &aPropertyList, QString &aTitleText);
       
   126     void setAttributes(quint32 &, quint32 &, bool &);
   125 
   127 
   126     bool openAppArc(QString fileName);
   128     bool openAppArc(QString fileName);
   127     bool openDocHandler(QString fileName, bool embeddedVal = false);
   129     bool openDocHandler(QString fileName, bool embeddedVal = false);
   128 
   130 
   129     bool isDriveListViewActive();
   131     bool isDriveListViewActive();
   130     bool isCurrentDriveReadOnly();
   132     bool isCurrentDriveReadOnly();
   131     bool isClipBoardListInUse();
   133     bool isClipBoardListInUse();
   132     int itemCount() const;
   134     int itemCount() const;
   133     DriveEntry getDriveEntry(const QModelIndex& aIndex) const;
   135     FbDriveEntry getDriveEntry(const QModelIndex& aIndex) const;
   134     FileEntry getFileEntry(const QModelIndex& aIndex) const;
   136     FbFileEntry getFileEntry(const QModelIndex& aIndex) const;
   135 	
   137 	
   136     const CArrayFix<TInt> *convertSelectionList(const QModelIndexList &aSelectionIndices);
   138     const CArrayFix<TInt> *convertSelectionList(const QModelIndexList &aSelectionIndices);
   137     void setCurrentSelection(const QModelIndexList &aSelectionIndices);
   139     void setCurrentSelection(const QModelIndexList &aSelectionIndices);
   138     bool isDestinationEntriesExists(const QModelIndexList &aSelectionIndices, QString aTargetDir);
   140     bool isDestinationEntriesExists(const QModelIndexList &aSelectionIndices, QString aTargetDir);
   139     bool targetExists(const QModelIndex& aIndex, const QString aNewName);
   141     bool targetExists(const QModelIndex& aIndex, const QString aNewName);
   172 
   174 
   173     void toolsWriteAllFiles();
   175     void toolsWriteAllFiles();
   174 
   176 
   175     void showFileCheckSums(const QModelIndex &aIndex, TFileBrowserCmdFileChecksums checksumType);
   177     void showFileCheckSums(const QModelIndex &aIndex, TFileBrowserCmdFileChecksums checksumType);
   176 
   178 
       
   179     TClipBoardMode getClipBoardMode() { return mEngine->FileUtils()->GetClipBoardMode(); }
       
   180 
       
   181 signals:
       
   182     void fileSystemDataChanged();
       
   183 
   177 private slots:
   184 private slots:
   178         void progressDialogCancelled();
   185         void progressDialogCancelled();
   179         void waitDialogCancelled();
   186         void waitDialogCancelled();
   180 
   187 
   181 private:
   188 private: