Original Symbian headers
Selected EUSER, Window Server, networking, graphics and device declarations
Loading...
Searching...
No Matches
CPrinterModelList Class Referenceabstract

Printer model list interface. More...

#include <gdi.h>

Inheritance diagram for CPrinterModelList:
CBase CPdrModelList

Public Member Functions

virtual TInt ModelCount () const =0
 Gets the number of printer models in the printer model list.
 
virtual const TPrinterModelEntry operator[] (TInt anIndex)=0
 Gets printer model name.
 
virtual TInt UidToNum (TUid aModelUid) const =0
 Gets a printer models index within the model list from its UID.
 
- Public Member Functions inherited from CBase
 CBase ()
 Default constructor.
 
virtual IMPORT_C ~CBase ()
 Virtual destructor.
 
TAny * operator new (TUint aSize, TAny *aBase) __NO_THROW
 Initialises the object to binary zeroes.
 
TAny * operator new (TUint aSize) __NO_THROW
 Allocates the object from the heap and then initialises its contents to binary zeroes.
 
TAny * operator new (TUint aSize, TLeave)
 Allocates the object from the heap and then initialises its contents to binary zeroes.
 
TAny * operator new (TUint aSize, TUint aExtraSize) __NO_THROW
 Allocates the object from the heap and then initialises its contents to binary zeroes.
 
TAny * operator new (TUint aSize, TLeave, TUint aExtraSize)
 Allocates the object from the heap and then initialises its contents to binary zeroes.
 

Additional Inherited Members

- Static Public Member Functions inherited from CBase
static IMPORT_C void Delete (CBase *aPtr)
 Deletes the specified object.
 
- Protected Member Functions inherited from CBase
virtual IMPORT_C TInt Extension_ (TUint aExtensionId, TAny *&a0, TAny *a1)
 Extension function.
 

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
API status
Published to all clients. Released API.

Definition at line 4083 of file gdi.h.

Member Function Documentation

◆ ModelCount()

virtual TInt CPrinterModelList::ModelCount ( ) const
pure virtual

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

Returns
The number of printer models.

Implemented in CPdrModelList.

◆ operator[]()

virtual const TPrinterModelEntry CPrinterModelList::operator[] ( TInt  anIndex)
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().
Returns
Name of printer model, up to 32 characters long

Implemented in CPdrModelList.

◆ UidToNum()

virtual TInt CPrinterModelList::UidToNum ( TUid  aModelUid) const
pure virtual

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

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

Implemented in CPdrModelList.


The documentation for this class was generated from the following file: