Original Symbian headers
Selected EUSER, Window Server, networking, graphics and device declarations
Loading...
Searching...
No Matches
CPrinterPort Class Referenceabstract

Printer port interface. More...

#include <gdi.h>

Inheritance diagram for CPrinterPort:
CBase

Public Member Functions

virtual void WriteRequest (const TDesC8 &aBuf, TRequestStatus &aRequestStatus)=0
 Writes data asynchronously to the printer port.
 
virtual void Cancel ()=0
 Cancels an outstanding WriteRequest() operation.
 
- Public Member Functions inherited from CBase
 CBase ()
 Default constructor.
 
virtual IMPORT_C ~CBase ()
 Virtual destructor.
 
TAny * operator new (TUint aSize, TAny *aBase) __NO_THROW
 Initialises the object to binary zeroes.
 
TAny * operator new (TUint aSize) __NO_THROW
 Allocates the object from the heap and then initialises its contents to binary zeroes.
 
TAny * operator new (TUint aSize, TLeave)
 Allocates the object from the heap and then initialises its contents to binary zeroes.
 
TAny * operator new (TUint aSize, TUint aExtraSize) __NO_THROW
 Allocates the object from the heap and then initialises its contents to binary zeroes.
 
TAny * operator new (TUint aSize, TLeave, TUint aExtraSize)
 Allocates the object from the heap and then initialises its contents to binary zeroes.
 

Additional Inherited Members

- Static Public Member Functions inherited from CBase
static IMPORT_C void Delete (CBase *aPtr)
 Deletes the specified object.
 
- Protected Member Functions inherited from CBase
virtual IMPORT_C TInt Extension_ (TUint aExtensionId, TAny *&a0, TAny *a1)
 Extension function.
 

Detailed 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().

See also
CPrintSetup::StartPrintL()
Since
5.0
API status
Published to all clients. Released API.

Definition at line 3827 of file gdi.h.

Member Function Documentation

◆ Cancel()

virtual void CPrinterPort::Cancel ( )
pure virtual

Cancels an outstanding WriteRequest() operation.

◆ WriteRequest()

virtual void CPrinterPort::WriteRequest ( const TDesC8 &  aBuf,
TRequestStatus &  aRequestStatus 
)
pure virtual

Writes data asynchronously to the printer port.

Parameters
aBufData to be written to the port
aRequestStatusA 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.

The documentation for this class was generated from the following file: