CPlaceholderData Class Reference

class CPlaceholderData : public CBase

A helper class which encapsulates data needed for creating placeholder objects.

Inherits from

Constructor & Destructor Documentation

~CPlaceholderData()

~CPlaceholderData()[virtual]

Destructor.

Member Functions Documentation

ConstructL()

voidConstructL()[protected]

Constructor

FileSize()

IMPORT_C TUint32FileSize()

Returns file size bytes.

MediaId()

IMPORT_C TUintMediaId()

Returns MediaID which identifies the volume/drive where the file is located. Equals to TVolumeInfo::iUniqueID.

Modified()

IMPORT_C TTimeModified()

Returns modification time - equals RFs::Modified()

NewL()

IMPORT_C CPlaceholderData *NewL()[static]

Second phase construction

Preinstalled()

IMPORT_C TIntPreinstalled()

Returns whether file is pre-installed or not.

PresentState()

IMPORT_C TIntPresentState()

Returns present state for the file.

SetFileSize(TUint32)

IMPORT_C voidSetFileSize(TUint32aFileSize)

Sets file size bytes.

Parameters

TUint32 aFileSize

SetMediaId(TUint)

IMPORT_C voidSetMediaId(TUintaMediaId)

Sets MediaID which identifies the volume/drive where the file is located. Equals to TVolumeInfo::iUniqueID.

Parameters

TUint aMediaIdMediaID of the volume.

SetModified(TTime)

IMPORT_C voidSetModified(TTimeaModified)

Sets modification time - should be RFs::Modified() for binary files

Parameters

TTime aModified

SetPreinstalled(TInt)

IMPORT_C voidSetPreinstalled(TIntaValue)

Sets whether file is pre-installed or not.

Parameters

TInt aValueWhether file is pre-installed or not.

SetPresentState(TInt)

IMPORT_C voidSetPresentState(TIntaState)

Sets present state for the file

Parameters

TInt aStatePresent state.

SetUri(const TDesC &)

IMPORT_C voidSetUri(const TDesC &aUri)

Sets URI of the file/item.

Parameters

const TDesC & aUriURI of the file

Uri()

IMPORT_C TPtr16Uri()

Returns URI of the file/item.

Member Data Documentation

TUint32 iFileSize

TUint32 iFileSize[private]

TUint32 iMediaId

TUint32 iMediaId[private]

TTime iModified

TTime iModified[private]

TInt iPreinstalled

TInt iPreinstalled[private]

TInt iPresentState

TInt iPresentState[private]

HBufC * iUri

HBufC *iUri[private]