CReadFaxPages Class Reference
class CReadFaxPages : public CBase |
Reads individual pages from a fax file.
The class provides functions to get the number of fax pages in a fax store, the number of scan lines per page, information about the scan line compression and resolution, and the sender Id. It is then possible to iterate through the store by page and by scan line to obtain the fax page.
In pre-v5.1 releases of Symbian OS, the import library was faxst2.lib.
Constructor & Destructor Documentation
CReadFaxPages(CStreamStore &)
~CReadFaxPages()
Destructor.
Closes the stream, and frees all resources owned by the object, prior to its destruction.
Member Functions Documentation
ConstructL(TStreamId)
void | ConstructL | ( | TStreamId | aStreamId | ) | [protected] |
CurrentPageInfo()
Gets the information for the current fax page, where the current page was set in a previous call to the SetPageL() function.
GetEncodedScanLineL(TDes8 &)
IMPORT_C void | GetEncodedScanLineL | ( | TDes8 & | anEncodedScanLine | ) | |
Gets the encoded scan line specified in a previous call to the SeekScanLineL() function.
Parameters
TDes8 & anEncodedScanLine | On return, contains the encoded scan line. |
GetScanLineL(TDes8 &)
Gets the raw scan line specified in a previous call to the SeekScanLineL() function.
The scan line is stored in compressed form, but is retrieved by this function in raw form for viewing.
Parameters
TDes8 & aScanLine | On return, contains the scan line. |
NewL(CStreamStore &, TStreamId)
Creates a CReadFaxPages object, which offers the public API for reading fax pages from a stream store.
This function is called by CReadFaxFile when opening a fax file.
-
leave
- KErrNoMemory There is insufficient memory to perform the operation.
-
capability
- None
Parameters
CStreamStore & aStore | The store from which fax pages are to be read. |
TStreamId aStreamId | The root ID of the stream store. |
NumPages()
IMPORT_C TInt | NumPages | ( | ) | const |
Gets the number of pages in the store.
SeekScanLineL(TInt)
IMPORT_C void | SeekScanLineL | ( | TInt | anIndex | ) | |
Sets the specified scan line as the current scan line.
Parameters
TInt anIndex | The index of the scan line. |
SetBandL(TInt)
void | SetBandL | ( | TInt | anIndex | ) | [protected] |
SetPageL(TInt)
IMPORT_C void | SetPageL | ( | TInt | aNum | ) | |
Sets a selected page to be the current page, and resets the current scan line to the first scan line in the page.
Parameters
TInt aNum | The number of the new page. |
Member Data Documentation
CFaxPageInfo * iCurrentPage
TBuf8< KFaxT4MaxDesLength > iEncodedScanLine
TBuf8< KFaxT4MaxDesLength > | iEncodedScanLine | [private] |
RStoreReadStream
iReadStream
TInt
iScanLineOffset
TInt
| iScanLineOffset | [private] |
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.