Location:
f32file.h
Link against: efsrv.lib
CFileBase
Supported from 5.0
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.
|
Defined in CFileBase
:
AbbreviatedPath()
, CFileBase()
, CurrentEntry()
, FullPath()
, GetLastError()
, GetMoreInfoAboutError()
, SetObserver()
Inherited from CBase
:
operator new()
protected: CFileBase(RFs& anFs);
Protected default C++ constructor. The class is intended only as an abstract base for other classes.
|
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.
|
const TEntry& CurrentEntry();
Returns the entry currently being processed.
|
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.
|
TPtrC FullPath();
Gets the full path of the file or directory currently being processed. The full path includes the drive letter, path and filename.
|
TInt GetLastError();
Gets the latest error code returned during a CFileMan
operation. This function may be called from
MFileManObserver::NotifyFileManEnded()
.
|
TFileManError GetMoreInfoAboutError();
Gets additional information about the latest error returned during
aCFileMan
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
byGetLastError()
.
|