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

Implements a printer model list interface for a collection of PDR files. More...

#include <gdi.h>

Inheritance diagram for CPdrModelList:
CPrinterModelList CBase

Public Member Functions

virtual IMPORT_C ~CPdrModelList ()
 Virtual destructor.
 
IMPORT_C TInt ModelCount () const
 Gets the number of printer models in the printer model list.
 
IMPORT_C const TPrinterModelEntry operator[] (TInt anIndex)
 Gets printer model name.
 
IMPORT_C TInt UidToNum (TUid aModelUid) const
 Gets a printer models index within the model list from its UID.
 
IMPORT_C void AddDirectoryL (const TDesC &aDir)
 Adds a directory to the list of directories to be scanned for printer models.
 
IMPORT_C CPrinterModelList * ScanForModelsL ()
 Scans through through the list of directories for all .pdr files and generates a list of printer models.
 
IMPORT_C CPrinterDriver * CreatePrinterDriverL (TInt anIndex)
 Creates an object for accessing the specified store that contains printer specification data.
 
- 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.
 

Static Public Member Functions

static IMPORT_C CPdrModelList * NewL ()
 Constructs, and returns a pointer to a new instance of the printer model list interface.
 
- Static Public Member Functions inherited from CBase
static IMPORT_C void Delete (CBase *aPtr)
 Deletes the specified object.
 

Additional Inherited Members

- Protected Member Functions inherited from CBase
virtual IMPORT_C TInt Extension_ (TUint aExtensionId, TAny *&a0, TAny *a1)
 Extension function.
 

Detailed Description

Implements a printer model list interface for a collection of PDR files.

API status
Published to all clients. Released API.

Definition at line 4255 of file gdi.h.

Constructor & Destructor Documentation

◆ ~CPdrModelList()

IMPORT_C CPdrModelList::~CPdrModelList ( )
virtual

Virtual destructor.

Frees resources owned by the object, prior to its destruction.

(generated from Symbian Developer Library)

Member Function Documentation

◆ AddDirectoryL()

IMPORT_C void CPdrModelList::AddDirectoryL ( const TDesC &  aDir)

Adds a directory to the list of directories to be scanned for printer models.

Parameters
aDirThe directory to be added to the list.

(generated from Symbian Developer Library)

◆ CreatePrinterDriverL()

IMPORT_C CPrinterDriver * CPdrModelList::CreatePrinterDriverL ( TInt  anIndex)

Creates an object for accessing the specified store that contains printer specification data.

Parameters
anIndexAn index into a list of files containing printer specification data. The files are the complete set of .pdr files found in the directories known to this object.

(generated from Symbian Developer Library)

◆ ModelCount()

IMPORT_C TInt CPdrModelList::ModelCount ( ) const
virtual

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

Returns
The number of printer models.

Implements CPrinterModelList.

◆ NewL()

static IMPORT_C CPdrModelList * CPdrModelList::NewL ( )
static

Constructs, and returns a pointer to a new instance of the printer model list interface.

(generated from Symbian Developer Library)

◆ operator[]()

IMPORT_C const TPrinterModelEntry CPdrModelList::operator[] ( TInt  anIndex)
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

Implements CPrinterModelList.

◆ ScanForModelsL()

IMPORT_C CPrinterModelList * CPdrModelList::ScanForModelsL ( )

Scans through through the list of directories for all .pdr files and generates a list of printer models.

(generated from Symbian Developer Library)

◆ UidToNum()

IMPORT_C TInt CPdrModelList::UidToNum ( TUid  aModelUid) const
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.

Implements CPrinterModelList.


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