Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



Location: gdi.h

Class CPrinterPort

CPrinterPort

Support

Supported from 5.0

Description

Printer port interface.

This interface is used as the base class for the various types of printer port. New printer port classes should be derived from this class.

After allocation and construction, a pointer to a concrete printer port should be passed to CPrintSetup::StartPrintL().

Derivation

CBaseBase class for all classes to be instantiated on the heap
CPrinterPortPrinter port interface

Defined in CPrinterPort:
Cancel(), WriteRequest()

Inherited from CBase:
operator new()


Member functions


WriteRequest()

virtual void WriteRequest(const TDesC8& aBuf,TRequestStatus& aRequestStatus) = 0;

Description

Writes data asynchronously to the printer port.

Parameters

const TDesC8& aBuf

Data to be written to the port

TRequestStatus& aRequestStatus

A reference to the request status object. If the request is cancelled, this should be set to KErrCancel; if the request completes normally, this should be set to KErrNone.


Cancel()

virtual void Cancel() = 0;

Description

Cancels an outstanding WriteRequest() operation.