equal
deleted
inserted
replaced
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 |
|
85 void ShowProgressDialog(const TDesC& aDescText, TInt aMinimum, TInt aMaximum); |
|
86 void CancelProgressDialog(); |
|
87 void SetProgressValue(TInt aValue); |
|
88 |
|
89 void ShowWaitDialog(const TDesC& aText); |
|
90 void CancelWaitDialog(); |
|
91 void ProcessEvents(); |
|
92 |
82 TBool ShowConfirmationQuery(const TDesC& aDescText); |
93 TBool ShowConfirmationQuery(const TDesC& aDescText); |
83 |
94 |
84 public: |
95 public: |
85 /* Functions that are called from UI */ |
96 /* Functions that are called from UI */ |
86 bool searchFiles(); |
97 bool searchFiles(); |
93 |
104 |
94 void saveSettings(bool aNotifyModules = true); |
105 void saveSettings(bool aNotifyModules = true); |
95 |
106 |
96 void startExecutingCommands(const QString &aCommandsExecutionMessage); |
107 void startExecutingCommands(const QString &aCommandsExecutionMessage); |
97 void refreshView(); |
108 void refreshView(); |
|
109 inline TListingMode listingMode() { return mEngine->FileUtils()->ListingMode(); } |
98 // TBool IsCurrentDriveReadOnly(); |
110 // TBool IsCurrentDriveReadOnly(); |
99 // TBool IsCurrentItemDirectory(); |
111 // TBool IsCurrentItemDirectory(); |
100 void moveUpOneLevel(); |
112 void moveUpOneLevel(); |
101 void moveDownToDirectory(const QModelIndex& index); |
113 void moveDownToDirectory(const QModelIndex& index); |
102 int clipboardCut(const QModelIndexList &aSelectionIndices); |
114 int clipboardCut(const QModelIndexList &aSelectionIndices); |
156 void ToolsErrorSimulateException(int aExceptionCode); |
168 void ToolsErrorSimulateException(int aExceptionCode); |
157 |
169 |
158 quint32 getDebugMask(); |
170 quint32 getDebugMask(); |
159 void toolsSetDebugMask(quint32 aDbgMask); |
171 void toolsSetDebugMask(quint32 aDbgMask); |
160 |
172 |
|
173 void toolsWriteAllFiles(); |
|
174 |
161 void showFileCheckSums(const QModelIndex &aIndex, TFileBrowserCmdFileChecksums checksumType); |
175 void showFileCheckSums(const QModelIndex &aIndex, TFileBrowserCmdFileChecksums checksumType); |
|
176 |
|
177 private slots: |
|
178 void progressDialogCancelled(); |
|
179 void waitDialogCancelled(); |
162 |
180 |
163 private: |
181 private: |
164 // FB engine |
182 // FB engine |
165 CEngine *mEngine; |
183 CEngine *mEngine; |
166 // List of found files results for Ui |
184 // List of found files results for Ui |
167 QStringList mFilesFound; |
185 QStringList mFilesFound; |
168 FileBrowserSettings mSettings; |
186 FileBrowserSettings mSettings; |
|
187 HbProgressDialog *mProgressDialog; |
|
188 HbProgressDialog *mWaitDialog; |
169 }; |
189 }; |
170 |
190 |
171 #endif //ENGINEWRAPPER_H |
191 #endif //ENGINEWRAPPER_H |