![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Section Contents
CBase |
Abstract: CBase behaviour. |
faxstore.h
faxst2.lib
This class allows applications to read and write information from the fax header line data file: including the header line template, a font bitmap, and character offset information. This data can be used to generate a fax header line which contains send-time information in real time. The process is discussed in detail in Fax header line API.
This class is not intended for user derivation.
static CFaxHeaderLines* NewL();
This function constructs a CFaxHeaderLines object, which is used to read and write the fax header line data file.
A pointer to the newly created object. |
static CFaxHeaderLines* NewLC();
This function constructs a CFaxHeaderLines object, which is used to read and write the fax header line data file.
As is usual in EPOC, the only difference between this function and NewL() is that this variant pushes the object to the cleanup stack.
Pointer to the newly created object. |
~CFaxHeaderLines();
This function closes the open header line data file and shuts down the file server session.
A new fax header data file C:\System\faxhead.dat
should be created every time the user identity or phone number changes. The WriteFaxHeaderInfoL() must be invoked first, as it creates/opens the file and adds the font and character offset information to it. WriteRawFontLineL() should then be invoked to add the header line template scan lines, and WriteRawHeaderLineL() should be called to add the font bitmap scan lines.
void WriteFaxHeaderInfoL(TFaxHeaderInfo &aFaxHeaderInfo);
This function creates and opens the fax header data file, and then writes font and character offset information to it.
The font and character offset information is used by the fax server to determine at which position the font bitmap characters should be inserted in the header line template to create the send-time header line for a page.
TFaxHeaderInfo &aFaxHeaderInfo |
The fax header line information to be written to the file. |
void WriteRawFontLineL(const TInt alineNumber,TRawScanLine& aUncompressedDataLine);
This function is used to write header line font bitmap scan lines to the header line data file. It should be called to add every scan line in the font bitmap.
const TInt alineNumber |
The line number of the current scan line. |
TRawScanLine& aUncompressedDataLine |
A reference to a raw font bitmap scan line to be added to the header line data file. |
void WriteRawHeaderLineL(const TInt alineNumber,TRawScanLine& aUncompressedDataLine);
This function is used to write the header line templates scan lines to the header line data file. It should be called to add every scan line in the template.
const TInt alineNumber |
The line number of the current scan line. |
TRawScanLine& aUncompressedDataLine |
A reference to a raw header line template scan line to be added to the header line data file. |
The fax header data file C:\System\faxhead.dat
is read by the fax server, and used to create a new fax header line every time a page is sent.
The ReadFaxHeaderInfoL() is invoked first, as it opens the file and reads the font and character offset information. ReadRawFontLineL() and ReadRawHeaderLineL() are then be called to get the header line template and the font bitmap.
void ReadFaxHeaderInfoL(TFaxHeaderInfo &aFaxHeaderInfo);
This function opens the fax header data file, and then reads font and character offset information from it.
The font and character offset information is used by the fax server to determine at which position the font bitmap characters should be inserted in the header line template to create the send time header line for a page.
TFaxHeaderInfo &aFaxHeaderInfo |
On return, contains header line information from the header data file. |
void ReadRawFontLineL(const TInt alineNumber,TRawScanLine &aUncompressedDataLine);
This function is used to read the font bitmaps scan lines from the header line data file. It should be called to read every scan line in the bitmap.
In normal operation the function is called by the fax server prior to sending a page.
const TInt alineNumber |
The line number to be read. |
TRawScanLine &aUncompressedDataLine |
On return, contains a reference to the raw scan line. |
void ReadRawHeaderLineL(const TInt alineNumber,TRawScanLine &aUncompressedDataLine);
This function is used to read the header line templates scan lines from the header line data file. It should be called to read every scan line in the template.
In normal operation the function is called by the fax server prior to sending a page.
const TInt alineNumber |
The line number of the scan line to be read. |
TRawScanLine &aUncompressedDataLine |
On return, contains the scan line. |
TFaxHeaderInfoPckg iOurFaxHeaderInfoPckg |
The fax header information package. |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |