class TUidType |
Encapsulates a set of three unique identifiers (UIDs) which, in combination, identify a system object such as a GUI application or a DLL. The three component UIDs are referred to as UID1, UID2 and UID3.
An object of this type is referred to as a compound identifier or a UID type.
Public Member Functions | |
---|---|
TUidType () | |
TUidType ( TUid ) | |
TUidType ( TUid , TUid ) | |
TUidType ( TUid , TUid , TUid ) | |
IMPORT_C TBool | IsPresent ( TUid ) |
IMPORT_C TBool | IsValid () |
IMPORT_C TUid | MostDerived () |
IMPORT_C TBool | operator!= (const TUidType &) |
IMPORT_C TBool | operator== (const TUidType &) |
IMPORT_C const TUid & | operator[] ( TInt ) |
Private Attributes | |
---|---|
TUid | iUid |
IMPORT_C | TUidType | ( | ) |
Default constructor.
Creates a UID type, and sets all three component UIDs to KNullUid.
IMPORT_C | TUidType | ( | TUid | aUid1 | ) |
Constructor that creates a UID type and sets the UID1 component to the specified value.
The UID2 and UID3 components are set to KNullUid.
TUid aUid1 | Value for UID1. |
IMPORT_C | TUidType | ( | TUid | aUid1, |
TUid | aUid2 | |||
) |
Constructor that creates a UID type and sets the UID1 and UID2 components to the specified values.
The UID3 component is set to KNullUid.
IMPORT_C | TUidType | ( | TUid | aUid1, |
TUid | aUid2, | |||
TUid | aUid3 | |||
) |
Constructor that creates a UID type and sets all three UID components to the specified values.
IMPORT_C TBool | IsPresent | ( | TUid | aUid | ) | const |
Tests if any of the component UIDs are equal to the specified UID.
TUid aUid | The UID to be tested. |
IMPORT_C TBool | IsValid | ( | ) | const |
Tests the object for a valid (non-KNullUid) UID type.
KNullUid
IMPORT_C TUid | MostDerived | ( | ) | const |
Gets the most derived UID.
Taking the three UID components as a hierarchy with UID1 being the most general, UID2 being more specific than UID1 and UID3 being more specific than UID2, then the function returns:
UID3, if UID3 is not KNullUid.
UID2, if UID2 is not KNullUid.
UID1, otherwise
KNullUid
IMPORT_C TBool | operator!= | ( | const TUidType & | aUidType | ) | const |
Compares this UID type for inequality with the specified UID type.
const TUidType & aUidType | The UID type to be compared. |
IMPORT_C TBool | operator== | ( | const TUidType & | aUidType | ) | const |
Compares this UID type for equality with the specified UID type.
const TUidType & aUidType | The UID type to be compared. |
IMPORT_C const TUid & | operator[] | ( | TInt | anIndex | ) | const |
Gets the UID component as identified by the specified index.
TInt anIndex | Index value indicating which UID component to return. 0 specifies UID1, 1 specifies UID2, 2 specifies UID3. |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.