RDirectPrintClient Class Reference

class RDirectPrintClient : public RSessionBase

Inherits from

Public Member Functions
RDirectPrintClient()
IMPORT_C TIntCancelCreateJob()
IMPORT_C TIntCancelDiscovery()
IMPORT_C TIntCancelPrintJob()
IMPORT_C TIntCancelStartDiscovery()
IMPORT_C voidClose()
IMPORT_C voidConnectL()
IMPORT_C TIntContinueCreateJob(TDirectPrintJobGuardData &, TRequestStatus &)
IMPORT_C TIntContinuePrintJob()
IMPORT_C TIntCountConnections(TInt &)
IMPORT_C TIntCreateJob(TInt, TDirectPrintJobGuardData &, RPointerArray< TDesC > &, TRequestStatus &)
IMPORT_C TIntGetJobSetting(TInt, TInt &)
IMPORT_C TIntGetJobStatus()
IMPORT_C TIntGetJobTemplateIcon(TInt, TInt &)
IMPORT_C TIntGetNumPreviewPages()
IMPORT_C TIntGetNumPrintPages()
IMPORT_C TIntGetPrinterCapability(TInt, TInt, TDirectPrintCapability &)
IMPORT_C TIntGetPrinterCapabilityIDs(TInt, RArray< TInt > &)
IMPORT_C TIntGetPrinterStatus(TInt)
IMPORT_C TIntGetProtocolNames(RSelectItemArray &)
IMPORT_C TIntIsPictBridgeMode()
IMPORT_C TIntReleaseEngine()
IMPORT_C TIntRemoveCachedPrinter(TInt)
IMPORT_C TIntReserveEngine()
IMPORT_C TIntSetForeground(TInt)
IMPORT_C TIntSetJobSetting(TInt, TInt, TInt &)
IMPORT_C TIntSetNumberOfCopies(const RArray< TInt > &)
IMPORT_C TIntSubmitPrintJob()
IMPORT_C TIntSupportedProtocols()
TVersion Version()
Inherited Functions
RHandleBase::Attributes()const
RHandleBase::BTraceId()const
RHandleBase::DoExtendedClose()
RHandleBase::Duplicate(const RThread &,TOwnerType)
RHandleBase::FullName()const
RHandleBase::FullName(TDes &)const
RHandleBase::Handle()const
RHandleBase::HandleInfo(THandleInfo *)
RHandleBase::Name()const
RHandleBase::NotifyDestruction(TRequestStatus &)
RHandleBase::Open(const TFindHandleBase &,TOwnerType)
RHandleBase::OpenByName(const TDesC &,TOwnerType,TInt)
RHandleBase::RHandleBase()
RHandleBase::RHandleBase(TInt)
RHandleBase::SetHandle(TInt)
RHandleBase::SetHandleNC(TInt)
RSessionBase::CreateSession(RServer2,const TVersion &)
RSessionBase::CreateSession(RServer2,const TVersion &,TInt)
RSessionBase::CreateSession(RServer2,const TVersion &,TInt,TIpcSessionType,const TSecurityPolicy *,TRequestStatus *)
RSessionBase::CreateSession(const TDesC &,const TVersion &)
RSessionBase::CreateSession(const TDesC &,const TVersion &,TInt)
RSessionBase::CreateSession(const TDesC &,const TVersion &,TInt,TIpcSessionType,const TSecurityPolicy *,TRequestStatus *)
RSessionBase::CreateSession(const TDesC &,const TVersion &,TInt,TRequestStatus *)
RSessionBase::Open(RMessagePtr2,TInt,TOwnerType)
RSessionBase::Open(RMessagePtr2,TInt,const TSecurityPolicy &,TOwnerType)
RSessionBase::Open(TInt,TOwnerType)
RSessionBase::Open(TInt,const TSecurityPolicy &,TOwnerType)
RSessionBase::Send(TInt)const
RSessionBase::Send(TInt,const TIpcArgs &)const
RSessionBase::SendReceive(TInt)const
RSessionBase::SendReceive(TInt,TRequestStatus &)const
RSessionBase::SendReceive(TInt,const TIpcArgs &)const
RSessionBase::SendReceive(TInt,const TIpcArgs &,TRequestStatus &)const
RSessionBase::SetReturnedHandle(TInt)
RSessionBase::SetReturnedHandle(TInt,RHandleBase &)
RSessionBase::SetReturnedHandle(TInt,const TSecurityPolicy &)
RSessionBase::ShareAuto()
RSessionBase::ShareProtected()
Inherited Enumerations
RHandleBase:TAttributes
RSessionBase:TAttachMode
Private Attributes
TDirectPrintCapability *iCapability
TPtr8 iDicsoveryDataPtr
TPtr8 iIdleDataPtr
TPtr8 iJobDataPtr
TPtr8 iNameDataPtr
Inherited Attributes
RHandleBase::iHandle

Constructor & Destructor Documentation

RDirectPrintClient()

IMPORT_CRDirectPrintClient()

Constructor

Member Functions Documentation

CancelCreateJob()

IMPORT_C TIntCancelCreateJob()const

Cancel creating print job

CancelDiscovery()

IMPORT_C TIntCancelDiscovery()const

Cancel discovery

CancelPrintJob()

IMPORT_C TIntCancelPrintJob()const

Cancels the print job. This is an asynchronous command. MPrintEventObserver::PrintJobProgressEvent will be called with the status of TPrintJobProgressEventStatus::EDone when the cancellation is completed. The notification can potentially be received by the client before this command returns to the client.

CancelStartDiscovery()

IMPORT_C TIntCancelStartDiscovery()const

Cancel starting discovery

Close()

IMPORT_C voidClose()

Close the session

ConnectL()

IMPORT_C voidConnectL()

Connect to the DirectPrint server

ContinueCreateJob(TDirectPrintJobGuardData &, TRequestStatus &)

IMPORT_C TIntContinueCreateJob(TDirectPrintJobGuardData &aData,
TRequestStatus &aStatus
)

Set next request for print job event. Asynchronous function.

Parameters

TDirectPrintJobGuardData & aDataplace holder for print job event. On function completion contains print job event data.
TRequestStatus & aStatusrequest status

ContinuePrintJob()

IMPORT_C TIntContinuePrintJob()const

Continues printing and / or submitting a print job.

CountConnections(TInt &)

IMPORT_C TIntCountConnections(TInt &aConnections)const

Count connections to the server ( all clients in all prosesses )

Parameters

TInt & aConnectionsholder for connnections count

CreateJob(TInt, TDirectPrintJobGuardData &, RPointerArray< TDesC > &, TRequestStatus &)

IMPORT_C TIntCreateJob(TIntaPrinterID,
TDirectPrintJobGuardData &aData,
RPointerArray< TDesC > &aImages,
TRequestStatus &aStatus
)

Registers the IdleObserver to send idle event notifications. Asynchronous function.

Parameters

TInt aPrinterIDprinter id
TDirectPrintJobGuardData & aDataplace holder for print job event. On function completion contains print job event data.
RPointerArray< TDesC > & aImagesarray of image file names
TRequestStatus & aStatusrequest status

GetJobSetting(TInt, TInt &)

IMPORT_C TIntGetJobSetting(TIntaCapabilityID,
TInt &aValue
)const

Gets a setting configured for the created print job.

Parameters

TInt aCapabilityIDID of the capability of interest.
TInt & aValueCapability value.

GetJobStatus()

IMPORT_C TIntGetJobStatus()const

Gets the status of the printing job created

GetJobTemplateIcon(TInt, TInt &)

IMPORT_C TIntGetJobTemplateIcon(TIntaTemplateID,
TInt &aFbsBitmapHandle
)const

Gets the icon representing a given layout or template.

Parameters

TInt aTemplateIDID of the template / layout of interest.
TInt & aFbsBitmapHandleHandle to the appropriate bitmap.

GetNumPreviewPages()

IMPORT_C TIntGetNumPreviewPages()const

Gets the number of pages in the preview.

GetNumPrintPages()

IMPORT_C TIntGetNumPrintPages()const

Gets the number of pages to be printed

GetPrinterCapability(TInt, TInt, TDirectPrintCapability &)

IMPORT_C TIntGetPrinterCapability(TIntaPrinterID,
TIntaCapabilityID,
TDirectPrintCapability &aCapability
)const

Gets the detail of a certain capability of a certain printer.

Parameters

TInt aPrinterIDThe exposed ID of the printer the client wants to know about.
TInt aCapabilityIDID of the capability of interest.
TDirectPrintCapability & aCapabilityCapability information.

GetPrinterCapabilityIDs(TInt, RArray< TInt > &)

IMPORT_C TIntGetPrinterCapabilityIDs(TIntaPrinterID,
RArray< TInt > &aCapabilityIDs
)const

Gets the IDs of the capabilities supported by the printer specified.

Parameters

TInt aPrinterIDThe exposed ID of the printer the client wants to know about.
RArray< TInt > & aCapabilityIDsArray containing the ID's of the capabilities of the specified printer.

GetPrinterStatus(TInt)

IMPORT_C TIntGetPrinterStatus(TIntaPrinterID)const

Gets the status of the printer

Parameters

TInt aPrinterIDThe exposed ID of the printer the client wants to know about.

GetProtocolNames(RSelectItemArray &)

IMPORT_C TIntGetProtocolNames(RSelectItemArray &aNames)const

Parameters

RSelectItemArray & aNames

IsPictBridgeMode()

IMPORT_C TIntIsPictBridgeMode()const

PictBridge USB mode checker

ReleaseEngine()

IMPORT_C TIntReleaseEngine()const

Releases DirectPrint engine

RemoveCachedPrinter(TInt)

IMPORT_C TIntRemoveCachedPrinter(TIntaPrinterID)const

Removes a specified cached printer.

Parameters

TInt aPrinterIDThe exposed ID of the printer the client wants to remove.

ReserveEngine()

IMPORT_C TIntReserveEngine()const

Reserves DirectPrint engine for this client

SetForeground(TInt)

IMPORT_C TIntSetForeground(TIntaFg)const

Inform server about foreground/background state of the client

Parameters

TInt aFgforeground/background flag

SetJobSetting(TInt, TInt, TInt &)

IMPORT_C TIntSetJobSetting(TIntaCapabilityID,
TIntaValue,
TInt &aAffectedCapability
)const

Sets a print job setting.

Parameters

TInt aCapabilityIDID of the capability of interest.
TInt aValueNew capability value.
TInt & aAffectedCapabilityID of any affected capability.

SetNumberOfCopies(const RArray< TInt > &)

IMPORT_C TIntSetNumberOfCopies(const RArray< TInt > &aArray)const

Set number of copies

Parameters

const RArray< TInt > & aArrayarray of number of copies elements. Each array element corresponds to the array of image file names of created print job

SubmitPrintJob()

IMPORT_C TIntSubmitPrintJob()const

Submits a print job already created. The actual job execution is asynchronous so this function returns immediately. If successful, notification of job status and job completion is received by the client through the MPrintEventObserver.

SupportedProtocols()

IMPORT_C TIntSupportedProtocols()const

Get protocols supported by DirectPrint engine

Version()

TVersion Version()const

Version getter

Member Data Documentation

TDirectPrintCapability * iCapability

TDirectPrintCapability *iCapability[private]

TPtr8 iDicsoveryDataPtr

TPtr8 iDicsoveryDataPtr[private]

TPtr8 iIdleDataPtr

TPtr8 iIdleDataPtr[private]

TPtr8 iJobDataPtr

TPtr8 iJobDataPtr[private]

TPtr8 iNameDataPtr

TPtr8 iNameDataPtr[private]