--- a/filebrowser/ui/inc/enginewrapper.h Fri Jun 11 16:29:34 2010 +0100
+++ b/filebrowser/ui/inc/enginewrapper.h Thu Jul 22 16:33:59 2010 +0100
@@ -34,6 +34,7 @@
class SearchAttributes;
class SearchResults;
class FileBrowserView;
+class HbProgressDialog;
class QModelIndex;
@@ -55,9 +56,10 @@
/**
* class that is used for communicating between Symbian and Qt code.
*/
-class EngineWrapper : MFileBrowserUI {
+class EngineWrapper : public QObject, public MFileBrowserUI
+{
+ Q_OBJECT
public:
-
/**
* Constructor
*/
@@ -79,6 +81,15 @@
void ShowInformationNote(const TDesC &aDescText, const TDesC &aDescTitle);
void ShowErrorNote(const TDesC& aDescText, TBool aNoTimeout = EFalse);
void ShowConfirmationNote(const TDesC& aDescText, TBool aNoTimeout = EFalse);
+
+ void ShowProgressDialog(const TDesC& aDescText, TInt aMinimum, TInt aMaximum);
+ void CancelProgressDialog();
+ void SetProgressValue(TInt aValue);
+
+ void ShowWaitDialog(const TDesC& aText);
+ void CancelWaitDialog();
+ void ProcessEvents();
+
TBool ShowConfirmationQuery(const TDesC& aDescText);
public:
@@ -95,6 +106,7 @@
void startExecutingCommands(const QString &aCommandsExecutionMessage);
void refreshView();
+ inline TListingMode listingMode() { return mEngine->FileUtils()->ListingMode(); }
// TBool IsCurrentDriveReadOnly();
// TBool IsCurrentItemDirectory();
void moveUpOneLevel();
@@ -158,14 +170,22 @@
quint32 getDebugMask();
void toolsSetDebugMask(quint32 aDbgMask);
+ void toolsWriteAllFiles();
+
void showFileCheckSums(const QModelIndex &aIndex, TFileBrowserCmdFileChecksums checksumType);
+private slots:
+ void progressDialogCancelled();
+ void waitDialogCancelled();
+
private:
// FB engine
CEngine *mEngine;
// List of found files results for Ui
QStringList mFilesFound;
FileBrowserSettings mSettings;
+ HbProgressDialog *mProgressDialog;
+ HbProgressDialog *mWaitDialog;
};
#endif //ENGINEWRAPPER_H