21
|
1 |
/*
|
|
2 |
* Copyright (c) 2002-2008 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
|
5 |
* under the terms of "Eclipse Public License v1.0""
|
|
6 |
* which accompanies this distribution, and is available
|
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description: Base class for all file manager views
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
#ifndef CFILEMANAGERVIEWBASE_H
|
|
21 |
#define CFILEMANAGERVIEWBASE_H
|
|
22 |
|
|
23 |
|
|
24 |
// INCLUDES
|
|
25 |
#include <aknview.h>
|
|
26 |
#include <AknServerApp.h>
|
|
27 |
#include <AknWaitDialog.h>
|
|
28 |
#include <apparc.h>
|
|
29 |
#include <MFileManagerProcessObserver.h>
|
|
30 |
#include <TFileManagerDriveInfo.h>
|
|
31 |
|
|
32 |
|
|
33 |
// FORWARD DECLARATIONS
|
|
34 |
class CFileManagerContainerBase;
|
|
35 |
class CFileManagerEngine;
|
|
36 |
class CFileManagerActiveExecute;
|
|
37 |
class CEikMenuBar;
|
|
38 |
class CFileManagerActiveDelete;
|
|
39 |
class CFileManagerItemProperties;
|
|
40 |
class CAknQueryDialog;
|
|
41 |
class CAknWaitNoteWrapper;
|
|
42 |
class CFileManagerFeatureManager;
|
|
43 |
class MAknServerAppExitObserver;
|
|
44 |
|
|
45 |
|
|
46 |
// Defines maximum media password length in Unicode
|
|
47 |
const TUint KFmgrMaxMediaPassword = KMaxMediaPassword / 2; // Because of Unicode
|
|
48 |
// CLASS DECLARATION
|
|
49 |
/**
|
|
50 |
* Base class for all views in File Manager applicaiton
|
|
51 |
*/
|
|
52 |
class CFileManagerViewBase : public CAknView,
|
|
53 |
public MProgressDialogCallback,
|
|
54 |
public MFileManagerProcessObserver,
|
|
55 |
public MAknServerAppExitObserver
|
|
56 |
{
|
|
57 |
protected:
|
|
58 |
/**
|
|
59 |
* Return value enumeration for CmdOpenL to indicate what
|
|
60 |
* kind of item was opened or if there was an error during
|
|
61 |
* opening.
|
|
62 |
*/
|
|
63 |
enum TFileManagerOpenResult
|
|
64 |
{
|
|
65 |
EFolderOpened,
|
|
66 |
EFileOpened,
|
|
67 |
EOpenError
|
|
68 |
};
|
|
69 |
public: // Constructors and destructor
|
|
70 |
/**
|
|
71 |
* Two-phased constructor.
|
|
72 |
*/
|
|
73 |
static CFileManagerViewBase* NewLC();
|
|
74 |
|
|
75 |
/**
|
|
76 |
* Timer calls this in order to update the progress bar.
|
|
77 |
* @param aPtr pointer to object where is function to be call
|
|
78 |
* when timer expires.
|
|
79 |
* @return positive number if timer needs to be activated again
|
|
80 |
* 0 if timer is not needed any more.
|
|
81 |
*/
|
|
82 |
static TInt UpdateProgressBar( TAny* aPtr );
|
|
83 |
|
|
84 |
/**
|
|
85 |
* Timer calls this in order to start refresh progress dialog.
|
|
86 |
* @param aPtr pointer to object where is function to be call
|
|
87 |
* when timer expires.
|
|
88 |
* @return positive number if timer needs to be activated again
|
|
89 |
* 0 if timer is not needed any more.
|
|
90 |
*/
|
|
91 |
static TInt RefreshProgressDelayedStart( TAny* aPtr );
|
|
92 |
|
|
93 |
/**
|
|
94 |
* Stores current index
|
|
95 |
* @return ETrue if storing successfull
|
|
96 |
* EFalse if storing not succesfull
|
|
97 |
*/
|
|
98 |
TBool StoreIndex();
|
|
99 |
|
|
100 |
/**
|
|
101 |
* Nulls everything which is related to progress bar
|
|
102 |
*/
|
|
103 |
void ClearProgressBarL();
|
|
104 |
|
|
105 |
/**
|
|
106 |
* @return Current process in app
|
|
107 |
*/
|
|
108 |
MFileManagerProcessObserver::TFileManagerProcess CurrentProcess();
|
|
109 |
|
|
110 |
/**
|
|
111 |
* Destructor.
|
|
112 |
*/
|
|
113 |
virtual ~CFileManagerViewBase();
|
|
114 |
|
|
115 |
public: // From MProgressDialogCallback
|
|
116 |
void DialogDismissedL( TInt aButtonId );
|
|
117 |
|
|
118 |
public://MAknServerAppExitObserver
|
|
119 |
/**
|
|
120 |
* @see MAknServerAppExitObserver
|
|
121 |
*/
|
|
122 |
void HandleServerAppExit( TInt aReason );
|
|
123 |
|
|
124 |
public: // From MFileManagerProcessObserver
|
|
125 |
/**
|
|
126 |
* @see MFileManagerProcessObserver
|
|
127 |
*/
|
|
128 |
void ProcessFinishedL( TInt aError, const TDesC& aName );
|
|
129 |
|
|
130 |
/**
|
|
131 |
* @see MFileManagerProcessObserver
|
|
132 |
*/
|
|
133 |
void ProcessAdvanceL( TInt aValue );
|
|
134 |
|
|
135 |
/**
|
|
136 |
* @see MFileManagerProcessObserver
|
|
137 |
*/
|
|
138 |
void ProcessStartedL(
|
|
139 |
MFileManagerProcessObserver::TFileManagerProcess aProcess,
|
|
140 |
TInt aFinalValue );
|
|
141 |
|
|
142 |
/**
|
|
143 |
* @see MFileManagerProcessObserver
|
|
144 |
*/
|
|
145 |
TBool ProcessQueryOverWriteL(
|
|
146 |
const TDesC& aOldName,
|
|
147 |
TDes& aNewName,
|
|
148 |
TFileManagerProcess aProcess );
|
|
149 |
|
|
150 |
/**
|
|
151 |
* @see MFileManagerProcessObserver
|
|
152 |
*/
|
|
153 |
TBool ProcessQueryRenameL(
|
|
154 |
const TDesC& aOldName,
|
|
155 |
TDes& aNewName,
|
|
156 |
TFileManagerProcess aProcess );
|
|
157 |
|
|
158 |
/**
|
|
159 |
* @see MFileManagerProcessObserver
|
|
160 |
*/
|
|
161 |
void RefreshStartedL();
|
|
162 |
|
|
163 |
/**
|
|
164 |
* @see MFileManagerProcessObserver
|
|
165 |
*/
|
|
166 |
void RefreshStoppedL();
|
|
167 |
|
|
168 |
/**
|
|
169 |
* @see MFileManagerProcessObserver
|
|
170 |
*/
|
|
171 |
void ShowWaitDialogL( MAknBackgroundProcess& aProcess);
|
|
172 |
|
|
173 |
/**
|
|
174 |
* @see MFileManagerProcessObserver
|
|
175 |
*/
|
|
176 |
void Error( TInt aError );
|
|
177 |
|
|
178 |
/**
|
|
179 |
* @see MFileManagerProcessObserver
|
|
180 |
*/
|
|
181 |
TInt NotifyL( TFileManagerNotify aType, TInt aData, const TDesC& aName );
|
|
182 |
|
|
183 |
public:
|
|
184 |
|
|
185 |
/*
|
|
186 |
* When view needs refresh, this is called.
|
|
187 |
*/
|
|
188 |
virtual void DirectoryChangedL() = 0;
|
|
189 |
|
|
190 |
/*
|
|
191 |
* Checks if refresh is in progress
|
|
192 |
*/
|
|
193 |
TBool IsRefreshInProgress();
|
|
194 |
|
|
195 |
/**
|
|
196 |
* Handles errors caused by file or folder deletion outside
|
|
197 |
* file manager while file manager is in foreground.
|
|
198 |
* @param aError Error code.
|
|
199 |
* @return ETrue if error was handled. Otherwise EFalse.
|
|
200 |
*/
|
|
201 |
TBool HandleFileNotFoundL( TInt aError );
|
|
202 |
|
|
203 |
/**
|
|
204 |
* Handles screen layout changes
|
|
205 |
*/
|
|
206 |
virtual void ScreenDeviceChanged();
|
|
207 |
|
|
208 |
#ifdef RD_FILE_MANAGER_BACKUP
|
|
209 |
void StartSchBackupL();
|
|
210 |
|
|
211 |
void SchBackupFinishedL();
|
|
212 |
#endif // RD_FILE_MANAGER_BACKUP
|
|
213 |
|
|
214 |
/**
|
|
215 |
* Updates cba
|
|
216 |
*/
|
|
217 |
virtual void UpdateCbaL();
|
|
218 |
|
|
219 |
/**
|
|
220 |
* Notifies foreground status change
|
|
221 |
*/
|
|
222 |
virtual void NotifyForegroundStatusChange( TBool aForeground );
|
|
223 |
|
|
224 |
protected: // From CAknView
|
|
225 |
/**
|
|
226 |
* @see CAknView
|
|
227 |
*/
|
|
228 |
void DoActivateL(
|
|
229 |
const TVwsViewId& aPrevViewId,
|
|
230 |
TUid aCustomMessageId,
|
|
231 |
const TDesC8& aCustomMessage);
|
|
232 |
|
|
233 |
/**
|
|
234 |
* @see CAknView
|
|
235 |
*/
|
|
236 |
void DoDeactivate();
|
|
237 |
|
|
238 |
/**
|
|
239 |
* @see CAknView
|
|
240 |
*/
|
|
241 |
void HandleCommandL( TInt aCommand );
|
|
242 |
|
|
243 |
/**
|
|
244 |
* @see CAknView
|
|
245 |
*/
|
|
246 |
void DynInitMenuPaneL(TInt aResourceId, CEikMenuPane* aMenuPane);
|
|
247 |
|
|
248 |
/**
|
|
249 |
* @see CAknView
|
|
250 |
*/
|
|
251 |
void ProcessCommandL( TInt aCommand );
|
|
252 |
|
|
253 |
protected: // New methods
|
|
254 |
|
|
255 |
/**
|
|
256 |
* Returns a container class that is derived from
|
|
257 |
* CFileManagerContainerBase. This is provided for derived
|
|
258 |
* classes to create their own type of containers.
|
|
259 |
* @return Newly created container.
|
|
260 |
*/
|
|
261 |
virtual CFileManagerContainerBase* CreateContainerL() = 0;
|
|
262 |
|
|
263 |
/**
|
|
264 |
* Executes open command. Opens currently selected item in
|
|
265 |
* list.
|
|
266 |
* @return Code that tells if opened item was folder or
|
|
267 |
* file. EOpenError is returned if there was an
|
|
268 |
* error during open.
|
|
269 |
*/
|
|
270 |
TFileManagerOpenResult CmdOpenL();
|
|
271 |
|
|
272 |
/**
|
|
273 |
* Executes delete command to delete current item
|
|
274 |
* or if there are marked items, all of them are deleted.
|
|
275 |
*/
|
|
276 |
void CmdDeleteL();
|
|
277 |
|
|
278 |
/**
|
|
279 |
* Creates new folder to currently active directory.
|
|
280 |
*/
|
|
281 |
void CmdNewFolderL();
|
|
282 |
|
|
283 |
/**
|
|
284 |
* Renames currently active item.
|
|
285 |
*/
|
|
286 |
void CmdRenameL();
|
|
287 |
|
|
288 |
/**
|
|
289 |
* Moves current item to folder that is queried using
|
|
290 |
* Common File Dialogs. If there are marked items, all of
|
|
291 |
* them are moved.
|
|
292 |
*/
|
|
293 |
void CmdMoveToFolderL();
|
|
294 |
|
|
295 |
/**
|
|
296 |
* Copies current item to folder that is queried using
|
|
297 |
* Common File Dialogs. If there are marked items, all of
|
|
298 |
* them are copied.
|
|
299 |
*/
|
|
300 |
void CmdCopyToFolderL();
|
|
301 |
|
|
302 |
/**
|
|
303 |
* Shows info popup dialog that contains information
|
|
304 |
* about currently active item.
|
|
305 |
*/
|
|
306 |
void CmdViewInfoL();
|
|
307 |
|
|
308 |
/**
|
|
309 |
* Shows memory status popup dialog that contains
|
|
310 |
* information about current memory status of the
|
|
311 |
* active memory.
|
|
312 |
*/
|
|
313 |
void CmdMemoryStateL();
|
|
314 |
|
|
315 |
/**
|
|
316 |
* Executes find command.
|
|
317 |
*/
|
|
318 |
void CmdFindL();
|
|
319 |
|
|
320 |
/**
|
|
321 |
* Receives file via infrared to currently active
|
|
322 |
* folder.
|
|
323 |
*/
|
|
324 |
void CmdReceiveViaIRL();
|
|
325 |
|
|
326 |
/**
|
|
327 |
* Runs move or copy operation. Parameter aToFolder is the destination
|
|
328 |
* of operation.
|
|
329 |
* @param aOperation Operation to execute.
|
|
330 |
* @param aToFolder Destination folder of the operation.
|
|
331 |
*/
|
|
332 |
void RunOperationL(
|
|
333 |
MFileManagerProcessObserver::TFileManagerProcess aOperation,
|
|
334 |
const TDesC& aToFolder );
|
|
335 |
|
|
336 |
/**
|
|
337 |
* Gets reference to drive info.
|
|
338 |
*/
|
|
339 |
TFileManagerDriveInfo& DriveInfo() const;
|
|
340 |
|
|
341 |
/**
|
|
342 |
* Refreshes drive info.
|
|
343 |
*/
|
|
344 |
void RefreshDriveInfoL();
|
|
345 |
|
|
346 |
void StartProcessL(
|
|
347 |
MFileManagerProcessObserver::TFileManagerProcess aProcess,
|
|
348 |
TInt aValue = KErrNotFound );
|
|
349 |
|
|
350 |
void CmdUnlockDriveL();
|
|
351 |
|
|
352 |
void CmdFormatDriveL();
|
|
353 |
|
|
354 |
// void CmdRenameDriveL();
|
|
355 |
//
|
|
356 |
// void CmdSetDrivePasswordL();
|
|
357 |
//
|
|
358 |
// void CmdChangeDrivePasswordL();
|
|
359 |
//
|
|
360 |
// void CmdRemoveDrivePasswordL();
|
|
361 |
//
|
|
362 |
// void CmdMemoryCardDetailsL();
|
|
363 |
|
|
364 |
TInt UpdatePassword(
|
|
365 |
TInt aDrive, const TDesC& aOldPwd, const TDesC& aPwd );
|
|
366 |
|
|
367 |
TInt UnlockRemovePasswordL( TInt aDrive, TBool aRemove );
|
|
368 |
|
|
369 |
/**
|
|
370 |
* Sets remote drive connection state.
|
|
371 |
*
|
|
372 |
* @param aState ETrue to connect, EFalse to disconnect.
|
|
373 |
*/
|
|
374 |
void SetRemoteDriveConnectionStateL( TBool aState );
|
|
375 |
|
|
376 |
/**
|
|
377 |
* Opens remote drive setting view.
|
|
378 |
*
|
|
379 |
* @param aDriveName Name of the remote drive.
|
|
380 |
*/
|
|
381 |
void OpenRemoteDriveSettingsL(
|
|
382 |
const TDesC& aDriveName = KNullDesC );
|
|
383 |
|
|
384 |
/**
|
|
385 |
* Checks if item is on disconnected remote drive.
|
|
386 |
*
|
|
387 |
* @param aProp Item properties.
|
|
388 |
* @return ETrue if item is on disconnect drive. Otherwise EFalse.
|
|
389 |
*/
|
|
390 |
TBool IsDisconnectedRemoteDrive(
|
|
391 |
CFileManagerItemProperties& aProp );
|
|
392 |
|
|
393 |
/**
|
|
394 |
* Performs remote drive menu filtering.
|
|
395 |
*
|
|
396 |
* @param aMenuPane Menu instance to be filtered.
|
|
397 |
*/
|
|
398 |
void RemoteDriveCommonFilteringL( CEikMenuPane& aMenuPane );
|
|
399 |
|
|
400 |
/**
|
|
401 |
* Renames current drive.
|
|
402 |
*
|
|
403 |
* @param aForceDefaultName ETrue to offer the default name by force.
|
|
404 |
*/
|
|
405 |
void RenameDriveL( TBool aForceDefaultName );
|
|
406 |
|
|
407 |
/**
|
|
408 |
* Handles refresh directory command.
|
|
409 |
*/
|
|
410 |
void CmdRefreshDirectoryL();
|
|
411 |
|
|
412 |
/**
|
|
413 |
* Shows eject query.
|
|
414 |
*/
|
|
415 |
void ShowEjectQueryL();
|
|
416 |
|
|
417 |
/**
|
|
418 |
* Launches progress dialog with given final and initial values.
|
|
419 |
* aOperation parameter is used to determine what resource
|
|
420 |
* should be used when displaying dialog.
|
|
421 |
* @param aFinalValue Final value of the created progress dialog.
|
|
422 |
* @param aInitialValue Initial value of the created progress dialog.
|
|
423 |
* @param aOperation Operation that this progress dialog represents
|
|
424 |
* @param aImmediatelyVisible Dialog is immediately visible if ETrue
|
|
425 |
*/
|
|
426 |
void LaunchProgressDialogL(
|
|
427 |
TInt64 aFinalValue,
|
|
428 |
TInt64 aInitialValue,
|
|
429 |
MFileManagerProcessObserver::TFileManagerProcess aOperation,
|
|
430 |
TBool aImmediatelyVisible = EFalse );
|
|
431 |
|
|
432 |
TBool AskPathL( TDes& aPath, TInt aTextId );
|
|
433 |
|
|
434 |
void SetCbaMskTextL( const TInt aTextId );
|
|
435 |
|
|
436 |
void UpdateCommonCbaL();
|
|
437 |
|
|
438 |
TBool IsDriveAvailable( const TDesC& aPath ) const;
|
|
439 |
|
|
440 |
TBool IsDriveAvailable( const TInt aDrive ) const;
|
|
441 |
|
|
442 |
TBool DriveReadOnlyMmcL( const TInt aDrive ) const;
|
|
443 |
|
|
444 |
TBool DriveReadOnlyMmcL( const TDesC& aFullPath ) const;
|
|
445 |
|
|
446 |
TBool CheckPhoneState() const;
|
|
447 |
|
|
448 |
TBool StopProgressDialogAndStoreValues();
|
|
449 |
|
|
450 |
void CmdSortL( TInt aCommand );
|
|
451 |
|
|
452 |
CFileManagerFeatureManager& FeatureManager() const;
|
|
453 |
|
|
454 |
void ShowDiskSpaceErrorL( const TDesC& aFolder );
|
|
455 |
|
|
456 |
/**
|
|
457 |
* Sets given media password string to empty and zero fills it.
|
|
458 |
*
|
|
459 |
* @param aPwd Media password to clean up.
|
|
460 |
*/
|
|
461 |
static void EmptyPwd( TDes& aPwd );
|
|
462 |
|
|
463 |
/**
|
|
464 |
* Converts chars to media password.
|
|
465 |
*
|
|
466 |
* @param aWord Password to convert in Unicode.
|
|
467 |
* @param aConverted Converted password.
|
|
468 |
*/
|
|
469 |
static void ConvertCharsToPwd( const TDesC& aWord, TDes8& aConverted );
|
|
470 |
|
|
471 |
/**
|
|
472 |
* Gets drive information at current position.
|
|
473 |
*
|
|
474 |
* @param aInfo Stores drive information.
|
|
475 |
* @return Drive identifier or KErrNotFound.
|
|
476 |
*/
|
|
477 |
TInt DriveInfoAtCurrentPosL( TFileManagerDriveInfo& aInfo );
|
|
478 |
|
|
479 |
protected:
|
|
480 |
|
|
481 |
/**
|
|
482 |
* C++ default constructor.
|
|
483 |
*/
|
|
484 |
CFileManagerViewBase();
|
|
485 |
|
|
486 |
/**
|
|
487 |
* By default Symbian 2nd phase constructor is private.
|
|
488 |
*/
|
|
489 |
virtual void ConstructL( TInt aResId );
|
|
490 |
|
|
491 |
private: // New methods
|
|
492 |
/**
|
|
493 |
* Constructs an array that contains the indices
|
|
494 |
* of marked items.
|
|
495 |
* @return Array of marked items.
|
|
496 |
*/
|
|
497 |
CArrayFixFlat<TInt>* MarkedArrayLC();
|
|
498 |
|
|
499 |
/**
|
|
500 |
* Gets paths of marked sendable files
|
|
501 |
* @param Reference to get size of the sendable files
|
|
502 |
* @return Array of sendable file items
|
|
503 |
*/
|
|
504 |
CArrayFixFlat<TInt>* GetSendFilesLC( TInt& aSize );
|
|
505 |
|
|
506 |
/**
|
|
507 |
* Filters Edit menu in aMenuPane.
|
|
508 |
*/
|
|
509 |
void MarkMenuFilteringL( CEikMenuPane& aMenuPane );
|
|
510 |
|
|
511 |
/**
|
|
512 |
* Creates a send ui query
|
|
513 |
*/
|
|
514 |
void SendUiQueryL();
|
|
515 |
|
|
516 |
/**
|
|
517 |
* Timer calls this for updating the progress bar.
|
|
518 |
*/
|
|
519 |
void DoUpdateProgressBar();
|
|
520 |
|
|
521 |
/**
|
|
522 |
* Returns true if all or any focused item or marked items are protected.
|
|
523 |
*
|
|
524 |
* The 'all' or 'any' mode of operation is controlled by the aMode parameter.
|
|
525 |
*
|
|
526 |
* @param aMode controls the 'all' or 'any' mode. ETrue = 'all'.
|
|
527 |
* @return ETrue all chosen items are protected
|
|
528 |
* EFalse at least one of the items are not protected
|
|
529 |
*/
|
|
530 |
TBool AreChosenFilesProtectedL( TBool aMode );
|
|
531 |
|
|
532 |
/**
|
|
533 |
* Creates and displayes the Context sensitive menu
|
|
534 |
*/
|
|
535 |
void ShowContextSensitiveMenuL();
|
|
536 |
|
|
537 |
/**
|
|
538 |
* Adds SendUi option to option menu
|
|
539 |
*/
|
|
540 |
void AddSendOptionL(
|
|
541 |
CEikMenuPane& aMenuPane,
|
|
542 |
const TInt aCommandIdAfter );
|
|
543 |
|
|
544 |
/**
|
|
545 |
* Check is delete condition ok for given item
|
|
546 |
*/
|
|
547 |
TBool DeleteStatusNotOkL(
|
|
548 |
CFileManagerItemProperties& aProp,
|
|
549 |
TInt aSelectionCount ) const;
|
|
550 |
|
|
551 |
/**
|
|
552 |
* Deletes focused or marked items from current listbox
|
|
553 |
*/
|
|
554 |
void DeleteItemsL( TInt aIndex );
|
|
555 |
|
|
556 |
/**
|
|
557 |
* Checks if given index has InfoUrl.
|
|
558 |
* @param aIndex given index
|
|
559 |
* @return ETrue if given index has InfoUrl,
|
|
560 |
* EFalse otherwise.
|
|
561 |
*/
|
|
562 |
TBool HasInfoUrlL( TInt aIndex );
|
|
563 |
|
|
564 |
/**
|
|
565 |
* Opens InfoUrl of given index in browser.
|
|
566 |
* @param aIndex given index
|
|
567 |
*/
|
|
568 |
void OpenInfoUrlL( TInt aIndex );
|
|
569 |
|
|
570 |
/**
|
|
571 |
* Checks file rights and shows note if expired.
|
|
572 |
* @param aFullPath File to check
|
|
573 |
* @return ETrue if rights are valid
|
|
574 |
* EFalse if rights are expired
|
|
575 |
*/
|
|
576 |
TBool CheckFileRightsAndInformIfExpiredL( const TDesC& aFullPath );
|
|
577 |
|
|
578 |
/**
|
|
579 |
* Filters memory store menu in aMenuPane.
|
|
580 |
*/
|
|
581 |
void MemoryStoreMenuFilteringL( CEikMenuPane& aMenuPane );
|
|
582 |
|
|
583 |
/**
|
|
584 |
* Filters organise menu in aMenuPane.
|
|
585 |
*/
|
|
586 |
void OrganiseMenuFilteringL( CEikMenuPane& aMenuPane );
|
|
587 |
|
|
588 |
/**
|
|
589 |
* Filters details menu in aMenuPane.
|
|
590 |
*/
|
|
591 |
void DetailsMenuFilteringL( CEikMenuPane& aMenuPane );
|
|
592 |
//
|
|
593 |
// /**
|
|
594 |
// * Filters memory card menu in aMenuPane.
|
|
595 |
// */
|
|
596 |
// void MemoryCardMenuFilteringL( CEikMenuPane& aMenuPane );
|
|
597 |
//
|
|
598 |
// /**
|
|
599 |
// * Filters memory card password menu in aMenuPane.
|
|
600 |
// */
|
|
601 |
// void MemoryCardPasswordMenuFilteringL( CEikMenuPane& aMenuPane );
|
|
602 |
|
|
603 |
/**
|
|
604 |
* Filters context sensitive menu in aMenuPane.
|
|
605 |
*/
|
|
606 |
void ContextSensitiveMenuFilteringL( CEikMenuPane& aMenuPane );
|
|
607 |
|
|
608 |
/**
|
|
609 |
* Launches progress bar
|
|
610 |
*/
|
|
611 |
void LaunchProgressBarL(
|
|
612 |
TInt aDialogId,
|
|
613 |
TInt aTextId,
|
|
614 |
TInt64 aFinalValue,
|
|
615 |
TInt64 aInitialValue,
|
|
616 |
TBool aPeriodic,
|
|
617 |
TBool aImmediatelyVisible );
|
|
618 |
|
|
619 |
/**
|
|
620 |
* Starts refresh progress dialog
|
|
621 |
*/
|
|
622 |
void RefreshProgressDelayedStartL();
|
|
623 |
|
|
624 |
void CheckPostponedDirectoryRefresh();
|
|
625 |
|
|
626 |
void DenyDirectoryRefresh( TBool aDeny );
|
|
627 |
|
|
628 |
void SortMenuFilteringL( CEikMenuPane& aMenuPane );
|
|
629 |
|
|
630 |
void DoProcessFinishedL( TInt aError, const TDesC& aName );
|
|
631 |
|
|
632 |
void DoLaunchProgressDialogAsync();
|
|
633 |
|
|
634 |
static TInt LaunchProgressDialogAsync( TAny* aPtr );
|
|
635 |
|
|
636 |
TInt FilesCountInSearchField();
|
|
637 |
|
|
638 |
protected: // Data
|
|
639 |
/// Own: Container that this view handles.
|
|
640 |
CFileManagerContainerBase* iContainer;
|
|
641 |
/// Ref: Reference to File Manager engine.
|
|
642 |
CFileManagerEngine& iEngine;
|
|
643 |
/// Own: Progress dialog for iActiveExec
|
|
644 |
CAknProgressDialog* iProgressDialog;
|
|
645 |
/// Own: Progress dialog for iActiveExec
|
|
646 |
CAknProgressDialog* iProgressDialogRefresh;
|
|
647 |
/// Ref: Progress info of iProgressDialog
|
|
648 |
CEikProgressInfo* iProgressInfo;
|
|
649 |
/// Own: Active object that executes copy and move operations
|
|
650 |
CFileManagerActiveExecute* iActiveExec;
|
|
651 |
/// Own: Array of marked items in listbox
|
|
652 |
CArrayFixFlat<TInt>* iMarkedArray;
|
|
653 |
/// Currently active process
|
|
654 |
MFileManagerProcessObserver::TFileManagerProcess iActiveProcess;
|
|
655 |
/// Own: Popup menu for showing context sensitive menu
|
|
656 |
CEikMenuBar* iPopupMenu;
|
|
657 |
/// Own: This is used to update the progress bar
|
|
658 |
CPeriodic* iPeriodic;
|
|
659 |
// This is for progress bar
|
|
660 |
TInt64 iTotalTransferredBytes;
|
|
661 |
// This is for progress bar(in order to support over 2Gb files)
|
|
662 |
// Own: for wait note wrapper, delete items
|
|
663 |
CFileManagerActiveDelete* iActiveDelete;
|
|
664 |
// current listbox index
|
|
665 |
TInt iIndex;
|
|
666 |
// Own: Timer object to start refresh progress dialog
|
|
667 |
CPeriodic* iRefreshProgressDelayedStart;
|
|
668 |
// Own: Indicates that scheduled backup is pending
|
|
669 |
TBool iSchBackupPending;
|
|
670 |
// Own: Eject query dialog
|
|
671 |
CAknQueryDialog* iEjectQueryDialog;
|
|
672 |
// Own: Indicates if eject has been done
|
|
673 |
TBool iEjectDone;
|
|
674 |
// Own: Stores current progress value
|
|
675 |
TInt64 iProgressCurrentValue;
|
|
676 |
// Own: Stores final progress value
|
|
677 |
TInt64 iProgressFinalValue;
|
|
678 |
// Own: Denies directory refresh during query until selected operation gets started
|
|
679 |
TBool iDirectoryRefreshDenied;
|
|
680 |
// Own: Indicates postponed directory refresh
|
|
681 |
TBool iDirectoryRefreshPostponed;
|
|
682 |
// Own: For wait note stepping
|
|
683 |
CAknWaitNoteWrapper* iWaitNoteWrapper;
|
|
684 |
// Own: Indicates if there's a SendUi popup query dialog
|
|
685 |
TBool iSendUiPopupOpened;
|
|
686 |
|
|
687 |
};
|
|
688 |
|
|
689 |
#endif // CFILEMANAGERVIEWBASE_H
|
|
690 |
|
|
691 |
// End of File
|