Location:
f32file.h
Link against: efsrv.lib
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()
, CFileBase()
, CompleteOperationL()
, ConstructL()
, CurrentEntry()
, DoOperationL()
, FullPath()
, GetLastError()
, GetMoreInfoAboutError()
, RunInSeparateThreadL()
, RunL()
, SetObserver()
, iCurrentEntry
, iDirList
, iErrorInfo
, iFManThread
, iFs
, iFsOld
, iLastError
, iMatchEntry
, iNumberOfFilesProcessed
, iObserver
, iScanner
, iSessionPath
, iSrcFile
, iStatus
, iSwitches
, iSynchronizer
, ~CFileBase()
Inherited from CBase
:
Delete()
,
Extension_()
,
operator new()
protected: 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.
|
IMPORT_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()
.
|
Capability: | 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.
protected: virtual void DoOperationL()=0;
Called from RunL to perform the requested operation.
protected: TInt iNumberOfFilesProcessed;