Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <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:

Inherited from CBase:

See also:


Member functions


ModelCount()const

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[](TInt)

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 CPrinterModelList::ModelCount()const.

Return value

const TPrinterModelEntry

Name of printer model, up to 32 characters long


UidToNum(TUid)const

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.