Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

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



Location: gdi.h

Class CPrinterModelList

CPrinterModelList

Support

Supported from 5.0

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

CBaseBase class for all classes to be instantiated on the heap
CPrinterModelListPrinter model list interface

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

Inherited from CBase:
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.


UidToNum()

virtual TInt UidToNum(TUid aModelUid) const=0;

Description

Gets a printer model’s 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.


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

TPrinterModelEntry

Name of printer model, up to 32 characters long