Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: GDI.H

Class CPrinterModelList

class CPrinterModelList : public CBase;

Description

Printer model list interface.

Functions provided by this abstract base class can be used to extract printer model information from the list of printer models. This class would typically be used to implement printer selection in a dialog box.

Derivation

Members

Defined in CPrinterModelList:
ModelCount(), UidToNum(), operator[]()

Inherited from CBase:
Delete(), Extension_(), operator new()

See also:


Member functions


ModelCount()

virtual TInt ModelCount() const=0;

Description

Gets the number of printer models in the printer model list.

Return value

TInt

The number of printer models.


operator[]()

virtual const TPrinterModelEntry operator[](TInt anIndex)=0;

Description

Gets printer model name.

This is the name of the printer model at the specified index within the list of printer models.

Parameters

TInt anIndex

The index of the printer model within the array of printer models. Note that this number must be between zero and ModelCount().

Return value

const TPrinterModelEntry

Name of printer model, up to 32 characters long


UidToNum()

virtual TInt UidToNum(TUid aModelUid) const=0;

Description

Gets a printer models index within the model list from its UID.

Parameters

TUid aModelUid

The UID of the printer model.

Return value

TInt

The index of the printer model within the array of printer models.