TAknsItemID Class Reference

class TAknsItemID

Item identifier used to identify items supplied through skin interfaces. Item ID consists of two integers: major and minor parts of the ID.

Note that only LinearOrder() member function requires linking against the library, all the other methods are inlined.

AknSkinSrv.lib

Since
2.0
Public Member Functions
IMPORT_C TInt LinearOrder (const TAknsItemID &, const TAknsItemID &)
void Set (const TInt , const TInt )
void Set (const TUid , const TInt )
void Set (const TAknsItemID &)
Public Attributes
TInt iMajor
TInt iMinor

Member Functions Documentation

LinearOrder(const TAknsItemID &, const TAknsItemID &)

IMPORT_C TInt LinearOrder ( const TAknsItemID & aFirst,
const TAknsItemID & aSecond
) [static]

Determines the order of two TAknsItemID objects. Implements an algorithm that determines the order of two item ID objects.

Implementation details:
To improve binary search, current implementation first compares minor part and after that the major part of the item ID. Since most lists have several objects with equal major parts this makes the algorithm more efficient.

Parameters

const TAknsItemID & aFirst Constant reference to the first object to be compared.
const TAknsItemID & aSecond Constant reference to the second object to be compared.

Set(const TInt, const TInt)

void Set ( const TInt aMajor,
const TInt aMinor
) [inline]

Sets specified major and minor parts.

Parameters

const TInt aMajor Major part of the item ID.
const TInt aMinor Minor part of the item ID.

Set(const TUid, const TInt)

void Set ( const TUid aMajor,
const TInt aMinor
) [inline]

Sets specified major and minor parts where major part is given as a UID.

Parameters

const TUid aMajor Major part of the item ID as a UID.
const TInt aMinor Minor part of the item ID.

Set(const TAknsItemID &)

void Set ( const TAknsItemID & aID ) [inline]

Sets major and minor parts according to the given item ID.

Parameters

const TAknsItemID & aID Item ID to be used to get the values.

Member Data Documentation

TInt iMajor

TInt iMajor

TInt iMinor

TInt iMinor