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

void ConstructL ( const TDesC & aAppName,
const TDesC & aAppVendor
) [private]

Parameters

const TDesC & aAppName
const TDesC & aAppVendor

ExternalizeL(RWriteStream &)

IMPORT_C void ExternalizeL ( RWriteStream & aStream ) const

Externalizes this object to the specified write stream.

Parameters

RWriteStream & aStream Stream to which the contents should be externalized.

InternalizeL(RReadStream &)

IMPORT_C void InternalizeL ( RReadStream & aStream )

Initializes this object from the specified read stream.

Parameters

RReadStream & aStream Stream 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 & aStream Stream 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 & aAppName Stream from which the contents should be internalised.
const TDesC & aAppVendor The application vendor.
const TVersion & aAppVersion The 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 & aStream Stream 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 & aAppName The application name.
const TDesC & aAppVendor The application vendor.
const TVersion & aAppVersion The application version.

ReadBufFromStreamL(HBufC *&, RReadStream &)

void ReadBufFromStreamL ( 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 *& aBuffer Reference to the pointer which will point at newly allocated buffer.
RReadStream & aStream Stream from which the descriptor is read.

Member Data Documentation

HBufC * iAppName

HBufC * iAppName [private]

HBufC * iAppVendor

HBufC * iAppVendor [private]

TVersion iAppVersion

TVersion iAppVersion [private]