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 void CopyToDes ( TDes &)
TBool IsUid ()
void Set (const TUid )
void Set (const TInt , const TInt )
void Set (const TAknsPkgID &)
IMPORT_C void SetFromDesL (const TDesC &)
TUid Uid ()
Public Attributes
TInt iNumber
TInt iTimestamp

Member Functions Documentation

CopyToDes(TDes &)

IMPORT_C void CopyToDes ( 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 & aDes Target descriptor.

IsUid()

TBool IsUid ( ) const [inline]

Checks whether the skin package ID is a UID.

Set(const TUid)

void Set ( const TUid aUid ) [inline]

Sets skin package ID by giving a UID.

Parameters

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

Set(const TInt, const TInt)

void Set ( const TInt aTimestamp,
const TInt aNumber
) [inline]

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

Parameters

const TInt aTimestamp Timestamp as an integer. Must be non-zero.
const TInt aNumber Random number.

Set(const TAknsPkgID &)

void Set ( const TAknsPkgID & aID ) [inline]

Sets skin package ID by an existing package ID.

Parameters

const TAknsPkgID & aID Skin package ID.

SetFromDesL(const TDesC &)

IMPORT_C void SetFromDesL ( 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 & aDes Source 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