|
||
class CFileBase : public CBase;
Abstract base class for file management.
It provides functions to set an observer for the derived class CFileMan
, and to get information about the entry being processed.
CBase
- Base class for all classes to be instantiated on the heap
CFileBase
- Abstract base class for file management
Defined in CFileBase
:
AbbreviatedPath()
Gets the abbreviated path of the file or directory currently being processedCFileBase()
Protected default constructorCompleteOperationL()
Called from RunL to perform tidy up after an operationConstructL()
Second phase constructorCurrentEntry()
Gets the entry currently being processedDoOperationL()
Called from RunL to perform the requested operationFullPath()
Gets the full path of the file or directory currently being processedGetLastError()
Gets the latest error code returned during a CFileMan operationGetMoreInfoAboutError()
Gets additional information about the latest error returned during a CFileMan operationRunInSeparateThreadL()
Creates a separate thread to run the commandRunL()
Executes a commandSetObserver()
Sets the observeriCurrentEntry
iDirList
iErrorInfo
iFManThread
iFs
iFsOld
iLastError
iMatchEntry
iNumberOfFilesProcessed
iObserver
iScanner
iSessionPath
iSrcFile
iStatus
iSwitches
iSynchronizer
~CFileBase()
DestructorInherited from CBase
:
Delete()
Deletes the specified objectExtension_()
Extension functionoperator new()
Initialises the object to binary zeroesCFileMan
Offers file management services which accept the use of wildcards; synchronous and asynchronousprotected: IMPORT_C CFileBase(RFs &anFs);
Protected default constructor.
Note that the class is intended only as an abstract base for other classes.
|
protected: IMPORT_C ~CFileBase();
Destructor.
Frees resources prior to destruction of the object.
IMPORT_C void SetObserver(MFileManObserver *anObserver);
Sets the observer.
Use this function to provide CFileMan
with an MFileManObserver
, or, if one already exists, to change the observer.
|
CFileMan
Offers file management services which accept the use of wildcards; synchronous and asynchronousMFileManObserver
Provides notification of the progress of synchronous or asynchronous file management operationsIMPORT_C const TEntry &CurrentEntry();
Gets the entry currently being processed.
|
IMPORT_C TPtrC AbbreviatedPath();
Gets the abbreviated path of the file or directory currently being processed.
The abbreviated path is its path relative to the top level directory specified in the operation.
|
IMPORT_C TPtrC FullPath();
Gets the full path of the file or directory currently being processed.
The full path includes the drive letter, path and filename.
|
IMPORT_C TInt GetLastError();
Gets the latest error code returned during a CFileMan
operation.
This function may be called from MFileManObserver::NotifyFileManEnded()
.
|
IMPORT_C TFileManError GetMoreInfoAboutError();
Gets additional information about the latest error returned during a CFileMan
operation.
For example, if a rename fails, this function can be used to report whether the source or target name caused the problem.
This information supplements that provided GetLastError()
.
|
CFileMan
Offers file management services which accept the use of wildcards; synchronous and asynchronousCFileBase::GetLastError()
Gets the latest error code returned during a CFileMan operationCapability: | Dependent | the capabilities required by this method, of the abstract class CFileBase, will be dependent on and provided by the concrete-class implementation of the DoOperationL method |
protected: IMPORT_C void RunL();
Executes a command.
protected: IMPORT_C void RunInSeparateThreadL(TThreadFunction aThreadFunction);
Creates a separate thread to run the command.
|
protected: inline virtual void CompleteOperationL();
Called from RunL to perform tidy up after an operation.
CFileMan
Offers file management services which accept the use of wildcards; synchronous and asynchronousprotected: virtual void DoOperationL()=0;
Called from RunL to perform the requested operation.
CFileMan
Offers file management services which accept the use of wildcards; synchronous and asynchronousprotected: TInt iNumberOfFilesProcessed;