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()

void ConstructL ( ) [protected]

Constructor

FileSize()

IMPORT_C TUint32 FileSize ( )

Returns file size bytes.

MediaId()

IMPORT_C TUint MediaId ( )

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

Modified()

IMPORT_C TTime Modified ( )

Returns modification time - equals RFs::Modified()

NewL()

IMPORT_C CPlaceholderData * NewL ( ) [static]

Second phase construction

Preinstalled()

IMPORT_C TInt Preinstalled ( )

Returns whether file is pre-installed or not.

PresentState()

IMPORT_C TInt PresentState ( )

Returns present state for the file.

SetFileSize(TUint32)

IMPORT_C void SetFileSize ( TUint32 aFileSize )

Sets file size bytes.

Parameters

TUint32 aFileSize

SetMediaId(TUint)

IMPORT_C void SetMediaId ( TUint aMediaId )

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

Parameters

TUint aMediaId MediaID of the volume.

SetModified(TTime)

IMPORT_C void SetModified ( TTime aModified )

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

Parameters

TTime aModified

SetPreinstalled(TInt)

IMPORT_C void SetPreinstalled ( TInt aValue )

Sets whether file is pre-installed or not.

Parameters

TInt aValue Whether file is pre-installed or not.

SetPresentState(TInt)

IMPORT_C void SetPresentState ( TInt aState )

Sets present state for the file

Parameters

TInt aState Present state.

SetUri(const TDesC &)

IMPORT_C void SetUri ( const TDesC & aUri )

Sets URI of the file/item.

Parameters

const TDesC & aUri URI of the file

Uri()

IMPORT_C TPtr16 Uri ( )

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]