class CPdrModelList : public CPrinterModelList |
Implements a printer model list interface for a collection of PDR files.
Public Member Functions | |
---|---|
~CPdrModelList() | |
IMPORT_C void | AddDirectoryL(const TDesC &) |
IMPORT_C CPrinterDriver * | CreatePrinterDriverL(TInt) |
IMPORT_C TInt | ModelCount() |
IMPORT_C CPdrModelList * | NewL() |
IMPORT_C CPrinterModelList * | ScanForModelsL() |
IMPORT_C TInt | UidToNum(TUid) |
IMPORT_C const TPrinterModelEntry | operator[](TInt) |
Private Member Functions | |
---|---|
CPdrModelList() | |
void | ConstructL() |
void | ListModelsL(TInt, TParse &, TFileName &, TFileName &, RResourceFile &, HBufC8 *&) |
HBufC * | NewPathBufL(const TFileEntry &) |
void | ScanDirectoryL(TInt) |
Private Attributes | |
---|---|
CArrayFixFlat< HBufC * > * | iDirectoryArray |
CArrayFixFlat< TFileEntry > * | iFileArray |
RFs | iFileServer |
CArrayFixSeg< TModelEntry > * | iModelArray |
IMPORT_C void | AddDirectoryL | ( | const TDesC & | aDir | ) |
const TDesC & aDir |
IMPORT_C CPrinterDriver * | CreatePrinterDriverL | ( | TInt | anIndex | ) |
TInt anIndex |
void | ListModelsL | ( | TInt | aFileIndex, |
TParse & | aParser, | |||
TFileName & | aNameOfLoadedResourceFile, | |||
TFileName & | aTempFileName, | |||
RResourceFile & | aResourceFile, | |||
HBufC8 *& | aResource | |||
) | [private] |
IMPORT_C TInt | ModelCount | ( | ) | const [virtual] |
Gets the number of printer models in the printer model list.
The number of printer models.
HBufC * | NewPathBufL | ( | const TFileEntry & | aFileEntry | ) | [private] |
const TFileEntry & aFileEntry |
IMPORT_C TInt | UidToNum | ( | TUid | aModelUid | ) | const [virtual] |
Gets a printer models index within the model list from its UID.
The index of the printer model within the array of printer models.
TUid aModelUid | The UID of the printer model. |
IMPORT_C const TPrinterModelEntry | 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.
Name of printer model, up to 32 characters long
TInt anIndex | The index of the printer model within the array of printer models. Note that this number must be between zero and ModelCount(). |