| class CFileBase : public CBase |
| Public Member Functions | |
|---|---|
| IMPORT_C TPtrC | AbbreviatedPath() |
| IMPORT_C const TEntry & | CurrentEntry() |
| IMPORT_C TPtrC | FullPath() |
| IMPORT_C TInt | GetLastError() |
| IMPORT_C TFileManError | GetMoreInfoAboutError() |
| IMPORT_C void | SetObserver(MFileManObserver *) |
| Protected Member Functions | |
|---|---|
| CFileBase(RFs &) | |
| ~CFileBase() | |
| void | CompleteOperationL() |
| IMPORT_C void | ConstructL() |
| void | DoOperationL() |
| IMPORT_C void | RunInSeparateThreadL(TThreadFunction) |
| IMPORT_C void | RunL() |
| IMPORT_C | CFileBase | ( | RFs & | anFs | ) | [protected] |
Protected default constructor.
Note that the class is intended only as an abstract base for other classes.
| RFs & anFs | File server session. |
| IMPORT_C | ~CFileBase | ( | ) | [protected] |
Destructor.
Frees resources prior to destruction of the object.
| 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.
| void | CompleteOperationL | ( | ) | [protected, inline, virtual] |
Called from RunL to perform tidy up after an operation.
| void | DoOperationL | ( | ) | [protected, pure virtual] |
Called from RunL to perform the requested 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().
| IMPORT_C void | RunInSeparateThreadL | ( | TThreadFunction | aThreadFunction | ) | [protected] |
Creates a separate thread to run the command.
| TThreadFunction aThreadFunction | The thread function. |
| IMPORT_C void | RunL | ( | ) | [protected] |
Executes a command.
| 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.
| MFileManObserver * anObserver | File management observer. |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.