TAknsPkgID Class Reference

class TAknsPkgID

Package identifier used to identify skin packages. Package ID may be either a UID or a timestamp and random number pair.

Note that the class does not define any constructors. This ensures that TAknsPkgID can be used in ROM constants.

AknSkinSrv.lib

Since
2.0
Public Member Functions
IMPORT_C voidCopyToDes(TDes &)
TBool IsUid()
voidSet(const TUid)
voidSet(const TInt, const TInt)
voidSet(const TAknsPkgID &)
IMPORT_C voidSetFromDesL(const TDesC &)
TUid Uid()
Public Attributes
TInt iNumber
TInt iTimestamp

Member Functions Documentation

CopyToDes(TDes &)

IMPORT_C voidCopyToDes(TDes &aDes)const

Copies the content of the package ID to the given descriptor. The size of the descriptor must be at least the size of TAknsPkgIDBuf. Otherwise the method may panic.

Parameters

TDes & aDesTarget descriptor.

IsUid()

TBool IsUid()const [inline]

Checks whether the skin package ID is a UID.

Set(const TUid)

voidSet(const TUidaUid)[inline]

Sets skin package ID by giving a UID.

Parameters

const TUid aUidNew UID to be set as the value of the package ID.

Set(const TInt, const TInt)

voidSet(const TIntaTimestamp,
const TIntaNumber
)[inline]

Sets skin package ID by giving a timestamp and a random number.

Parameters

const TInt aTimestampTimestamp as an integer. Must be non-zero.
const TInt aNumberRandom number.

Set(const TAknsPkgID &)

voidSet(const TAknsPkgID &aID)[inline]

Sets skin package ID by an existing package ID.

Parameters

const TAknsPkgID & aIDSkin package ID.

SetFromDesL(const TDesC &)

IMPORT_C voidSetFromDesL(const TDesC &aDes)

Sets the content of the package ID based on the given character representation. The content of the given descriptor must be valid (as generated by CopyToDes).

If the given descriptor doesn't contain a correctly formatted skin package ID the method leaves and the content of the object is undefined.

Parameters

const TDesC & aDesSource descriptor.

Uid()

TUid Uid()const [inline]

Returns the skin package ID as a UID. If the package ID is not a UID, the result is undefined.

Member Data Documentation

TInt iNumber

TInt iNumber

TInt iTimestamp

TInt iTimestamp