|
Original Symbian headers
Selected EUSER, Window Server, networking, graphics and device declarations
|
Implements a printer model list interface for a collection of PDR files. More...
#include <gdi.h>
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. | |
Implements a printer model list interface for a collection of PDR files.
|
virtual |
Virtual destructor.
Frees resources owned by the object, prior to its destruction.
(generated from Symbian Developer Library)
| IMPORT_C void CPdrModelList::AddDirectoryL | ( | const TDesC & | aDir | ) |
Adds a directory to the list of directories to be scanned for printer models.
| aDir | The directory to be added to the list. |
(generated from Symbian Developer Library)
| IMPORT_C CPrinterDriver * CPdrModelList::CreatePrinterDriverL | ( | TInt | anIndex | ) |
Creates an object for accessing the specified store that contains printer specification data.
| anIndex | An 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)
|
virtual |
Gets the number of printer models in the printer model list.
Implements CPrinterModelList.
|
static |
Constructs, and returns a pointer to a new instance of the printer model list interface.
(generated from Symbian Developer Library)
|
virtual |
Gets printer model name.
This is the name of the printer model at the specified index within the list of printer models.
| anIndex | The index of the printer model within the array of printer models. Note that this number must be between zero and ModelCount(). |
Implements CPrinterModelList.
| 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)
|
virtual |
Gets a printer models index within the model list from its UID.
| aModelUid | The UID of the printer model. |
Implements CPrinterModelList.