class CWriteFaxFile : public CBase |
Creates and open a fax file for writing.
The class provides the functionality to create a fax file, to commit pages to the fax file, to abort and delete the file, and to close the file. The ability to add individual fax pages to the store is provided through the CWriteFaxPages data member, which is created when the file is opened.
In pre-v5.1 releases of Symbian OS, the import library was faxst2.lib.
Public Member Functions | |
---|---|
~CWriteFaxFile() | |
IMPORT_C void | AbortWrite() |
IMPORT_C void | Close() |
IMPORT_C void | CommitL() |
IMPORT_C CWriteFaxFile * | NewL() |
IMPORT_C void | OpenL(const TDesC &, TInt) |
Protected Member Functions | |
---|---|
CWriteFaxFile() | |
void | ConstructL() |
void | DoOpenL(TInt) |
Public Attributes | |
---|---|
CWriteFaxPages * | iWriteFaxPages |
Private Attributes | |
---|---|
TFileName | iFileName |
CDirectFileStore * | iFileStore |
RFs | iFs |
IMPORT_C | ~CWriteFaxFile | ( | ) |
Destructor.
Closes the session with the file server, and frees all resources owned by the object, prior to its destruction.
IMPORT_C void | AbortWrite | ( | ) |
Aborts the creation of the fax store file, and then deletes the file.
IMPORT_C void | Close | ( | ) |
Closes the fax file, and deletes the resources owned by the object.
IMPORT_C void | CommitL | ( | ) |
Commits the current fax page created using the CWriteFaxPages API to the fax file.
IMPORT_C CWriteFaxFile * | NewL | ( | ) | [static] |
Constructs a CWriteFaxFile object, which offers the public API for creating a fax store file.
As part of the construction process, the object opens a session with the file server.
IMPORT_C void | OpenL | ( | const TDesC & | aFileName, |
TInt | aMaxScanLinesInBand | |||
) |
Creates and opens a fax file for writing.
The function also allocates memory to create a CWriteFaxPages object which is pointed to by the class data member. This object defines the API for writing pages to the file store.
Fax files which have been opened should be paired with a Close() function.
CWriteFaxPages * | iWriteFaxPages |
A pointer to the object which can be used to add pages to the file. Memory is allocated for the object when the file is opened.
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.