CPdrModelList Class Reference

class CPdrModelList : public CPrinterModelList

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

Inherits from

Constructor & Destructor Documentation

CPdrModelList()

CPdrModelList()[private]

~CPdrModelList()

IMPORT_C~CPdrModelList()[virtual]

Member Functions Documentation

AddDirectoryL(const TDesC &)

IMPORT_C voidAddDirectoryL(const TDesC &aDir)

Parameters

const TDesC & aDir

ConstructL()

voidConstructL()[private]

CreatePrinterDriverL(TInt)

IMPORT_C CPrinterDriver *CreatePrinterDriverL(TIntanIndex)

Parameters

TInt anIndex

ListModelsL(TInt, TParse &, TFileName &, TFileName &, RResourceFile &, HBufC8 *&)

voidListModelsL(TIntaFileIndex,
TParse &aParser,
TFileName &aNameOfLoadedResourceFile,
TFileName &aTempFileName,
RResourceFile &aResourceFile,
HBufC8 *&aResource
)[private]

Parameters

TInt aFileIndex
TParse & aParser
TFileName & aNameOfLoadedResourceFile
TFileName & aTempFileName
RResourceFile & aResourceFile
HBufC8 *& aResource

ModelCount()

IMPORT_C TIntModelCount()const [virtual]

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

The number of printer models.

NewL()

IMPORT_C CPdrModelList *NewL()[static]

NewPathBufL(const TFileEntry &)

HBufC *NewPathBufL(const TFileEntry &aFileEntry)[private]

Parameters

const TFileEntry & aFileEntry

ScanDirectoryL(TInt)

voidScanDirectoryL(TIntaDirIndex)[private]

Parameters

TInt aDirIndex

ScanForModelsL()

IMPORT_C CPrinterModelList *ScanForModelsL()

UidToNum(TUid)

IMPORT_C TIntUidToNum(TUidaModelUid)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.

Parameters

TUid aModelUidThe UID of the printer model.

operator[](TInt)

IMPORT_C const TPrinterModelEntryoperator[](TIntanIndex)[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

Parameters

TInt anIndexThe index of the printer model within the array of printer models. Note that this number must be between zero and ModelCount().

Member Data Documentation

CArrayFixFlat< HBufC * > * iDirectoryArray

CArrayFixFlat< HBufC * > *iDirectoryArray[private]

CArrayFixFlat< TFileEntry > * iFileArray

CArrayFixFlat< TFileEntry > *iFileArray[private]

RFs iFileServer

RFs iFileServer[private]

CArrayFixSeg< TModelEntry > * iModelArray

CArrayFixSeg< TModelEntry > *iModelArray[private]