Swi::CAppInfo Class Reference

class Swi::CAppInfo : public CBase

A lightweight class containing information about the application being installed.

Inherits from

Constructor & Destructor Documentation

CAppInfo(const TVersion &)

CAppInfo(const TVersion &aVersion =  TVersion(0, 0, 0))[private]

Parameters

const TVersion & aVersion =  TVersion(0, 0, 0)

~CAppInfo()

~CAppInfo()[virtual]

Member Functions Documentation

AppName()

const TDesC &AppName()const [inline]

Gets the application name.

AppVendor()

const TDesC &AppVendor()const [inline]

Gets the application vendor.

AppVersion()

const TVersion &AppVersion()const [inline]

Gets the application version.

ConstructL(const TDesC &, const TDesC &)

voidConstructL(const TDesC &aAppName,
const TDesC &aAppVendor
)[private]

Parameters

const TDesC & aAppName
const TDesC & aAppVendor

ExternalizeL(RWriteStream &)

IMPORT_C voidExternalizeL(RWriteStream &aStream)const

Externalizes this object to the specified write stream.

Parameters

RWriteStream & aStreamStream to which the contents should be externalized.

InternalizeL(RReadStream &)

IMPORT_C voidInternalizeL(RReadStream &aStream)

Initializes this object from the specified read stream.

Parameters

RReadStream & aStreamStream from which the contents should be internalized.

NewL(RReadStream &)

IMPORT_C CAppInfo *NewL(RReadStream &aStream)[static]

Creates a new CAppInfo object from the specified read stream.

Parameters

RReadStream & aStreamStream from which the contents should be internalised.

NewL(const TDesC &, const TDesC &, const TVersion &)

IMPORT_C CAppInfo *NewL(const TDesC &aAppName,
const TDesC &aAppVendor,
const TVersion &aAppVersion
)[static]

Creates a new CAppInfo object from the given parameters.

Parameters

const TDesC & aAppNameStream from which the contents should be internalised.
const TDesC & aAppVendorThe application vendor.
const TVersion & aAppVersionThe application version.

NewLC(RReadStream &)

IMPORT_C CAppInfo *NewLC(RReadStream &aStream)[static]

Creates a new CAppInfo object from the specified read stream. The object is inserted into the CleanupStack.

Parameters

RReadStream & aStreamStream from which the contents should be internalised.

NewLC(const TDesC &, const TDesC &, const TVersion &)

IMPORT_C CAppInfo *NewLC(const TDesC &aAppName,
const TDesC &aAppVendor,
const TVersion &aAppVersion
)[static]

Creates a new CAppInfo object from the given parameters. The object is inserted into the CleanupStack.

Parameters

const TDesC & aAppNameThe application name.
const TDesC & aAppVendorThe application vendor.
const TVersion & aAppVersionThe application version.

ReadBufFromStreamL(HBufC *&, RReadStream &)

voidReadBufFromStreamL(HBufC *&aBuffer,
RReadStream &aStream
)[private]

Helper function used to internalize a descriptor from a stream, into a member variable. This function frees the memory pointed to first.

Parameters

HBufC *& aBufferReference to the pointer which will point at newly allocated buffer.
RReadStream & aStreamStream from which the descriptor is read.

Member Data Documentation

HBufC * iAppName

HBufC *iAppName[private]

HBufC * iAppVendor

HBufC *iAppVendor[private]

TVersion iAppVersion

TVersion iAppVersion[private]