equal
deleted
inserted
replaced
22 #include <e32base.h> |
22 #include <e32base.h> |
23 #include <f32file.h> |
23 #include <f32file.h> |
24 #include <w32std.h> |
24 #include <w32std.h> |
25 #include <badesca.h> |
25 #include <badesca.h> |
26 #include <coedef.h> |
26 #include <coedef.h> |
27 #include <AknServerApp.h> |
|
28 #include <msvapi.h> |
27 #include <msvapi.h> |
29 #include <AknProgressDialog.h> |
|
30 #include <tz.h> |
28 #include <tz.h> |
31 #include "FB.hrh" |
29 #include "FB.hrh" |
32 |
30 |
33 _LIT(KIRAppPath, "z:\\sys\\bin\\irapp.exe"); |
31 _LIT(KIRAppPath, "z:\\sys\\bin\\irapp.exe"); |
34 _LIT(KBTAppPath, "z:\\sys\\bin\\btui.exe"); |
32 _LIT(KBTAppPath, "z:\\sys\\bin\\btui.exe"); |
38 |
36 |
39 |
37 |
40 // FORWARD DECLARATIONS |
38 // FORWARD DECLARATIONS |
41 class CEngine; |
39 class CEngine; |
42 class CFileBrowserFileOps; |
40 class CFileBrowserFileOps; |
43 class CAknIconArray; |
|
44 class TAknsItemID; |
|
45 class CDocumentHandler; |
41 class CDocumentHandler; |
46 //class CAknWaitDialog; |
|
47 //class CAknProgressDialog; |
|
48 class CEikProgressInfo; |
42 class CEikProgressInfo; |
49 class CFBFileOpClient; |
43 class CFBFileOpClient; |
50 //class CAknProgressDialog; |
|
51 class CEikProgressInfo; |
44 class CEikProgressInfo; |
52 class CAknOpenFileService; |
|
53 class CMessageDigest; |
45 class CMessageDigest; |
54 |
46 |
55 // CLASS DECLARATIONS |
47 // CLASS DECLARATIONS |
56 |
48 |
57 class TSearchAttributes |
49 class TSearchAttributes |
180 |
172 |
181 typedef CArrayFixSeg<TCommand> CCommandArray; |
173 typedef CArrayFixSeg<TCommand> CCommandArray; |
182 |
174 |
183 |
175 |
184 |
176 |
185 class CFileBrowserFileUtils : public CActive, public MAknServerAppExitObserver, public MMsvSessionObserver//, public MProgressDialogCallback |
177 class CFileBrowserFileUtils : public CActive, public MMsvSessionObserver |
186 { |
178 { |
187 private: |
179 private: |
188 enum TState // active object states |
180 enum TState // active object states |
189 { |
181 { |
190 EIdle = 0, // do nothing |
182 EIdle = 0, // do nothing |
206 |
198 |
207 private: // from CActive |
199 private: // from CActive |
208 void RunL(); |
200 void RunL(); |
209 TInt RunError(TInt aError); |
201 TInt RunError(TInt aError); |
210 void DoCancel(); |
202 void DoCancel(); |
211 |
|
212 private: // from MAknServerAppExitObserver |
|
213 void HandleServerAppExit(TInt aReason); |
|
214 |
203 |
215 private: // from MMsvSessionObserver |
204 private: // from MMsvSessionObserver |
216 void HandleSessionEventL(TMsvSessionEvent aEvent, TAny* aArg1, TAny* aArg2, TAny* aArg3); |
205 void HandleSessionEventL(TMsvSessionEvent aEvent, TAny* aArg1, TAny* aArg2, TAny* aArg3); |
217 |
206 |
218 public: //from MProgressDialogCallback |
207 public: //from MProgressDialogCallback |
344 |
333 |
345 private: |
334 private: |
346 TState iState; |
335 TState iState; |
347 CEngine* iEngine; |
336 CEngine* iEngine; |
348 CFileBrowserFileOps* iFileOps; |
337 CFileBrowserFileOps* iFileOps; |
349 // CAknWaitDialog* iWaitDialog; |
338 |
350 TBool isWaitDialog; |
339 TBool isWaitDialog; |
351 TBool isProgressDialog; |
340 TBool isProgressDialog; |
352 // CAknProgressDialog* iProgressDialog; |
341 |
353 CEikProgressInfo* iProgressInfo; |
342 CEikProgressInfo* iProgressInfo; |
354 CCommandArray* iCommandArray; |
343 CCommandArray* iCommandArray; |
355 TInt iCurrentEntry; |
344 TInt iCurrentEntry; |
356 TInt iSucceededOperations; |
345 TInt iSucceededOperations; |
357 TInt iFailedOperations; |
346 TInt iFailedOperations; |
373 TClipBoardMode iClipBoardMode; |
362 TClipBoardMode iClipBoardMode; |
374 CFileEntryList* iClipBoardList; |
363 CFileEntryList* iClipBoardList; |
375 CFileEntryList* iCurrentSelectionList; |
364 CFileEntryList* iCurrentSelectionList; |
376 TSearchAttributes iSearchAttributes; |
365 TSearchAttributes iSearchAttributes; |
377 CDocumentHandler* iDocHandler; |
366 CDocumentHandler* iDocHandler; |
378 CAknOpenFileService* iOpenFileService; |
367 |
379 RFile iMsgStoreWalkFile; |
368 RFile iMsgStoreWalkFile; |
380 TInt iPrevFolderIndex; |
369 TInt iPrevFolderIndex; |
381 TFileName iPrevFolderName; |
370 TFileName iPrevFolderName; |
382 RTz iTz; |
371 RTz iTz; |
383 TSearchResults iFileSearchResults; |
372 TSearchResults iFileSearchResults; |