CPrinterModelList Class Reference

#include <gdi.h>

class CPrinterModelList : public CBase

Inherits from

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

See also: CPdrModelList

Member Function Documentation

ModelCount ( )

TInt ModelCount()const [pure virtual]

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

Return Value
The number of printer models.

UidToNum ( TUid )

TInt UidToNum(TUidaModelUid)const [pure virtual]

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

Parameters
aModelUidThe UID of the printer model.
Return Value
The index of the printer model within the array of printer models.

operator[] ( TInt )

const TPrinterModelEntryoperator[](TIntanIndex)[pure virtual]

Gets printer model name.

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

Parameters
anIndexThe index of the printer model within the array of printer models. Note that this number must be between zero and ModelCount().
Return Value
Name of printer model, up to 32 characters long