TUid Class Reference

#include <e32cmn.h>

class TUid
Public Attributes
TInt32 iUid
Public Member Functions
IMPORT_C TUidNameName()
TUid Null()
TUid Uid(TInt)
IMPORT_C TBooloperator!=(const TUid &)
IMPORT_C TBooloperator==(const TUid &)

Detailed Description

A globally unique 32-bit number.

Member Attribute Documentation

iUid

TInt32 iUid

The 32-bit integer UID value.

Member Function Documentation

Name ( )

IMPORT_C TUidNameName()const

Generates and returns the standard text form of the UID.

The resulting text has the form:

[12345678]

The function always generates 10 characters, where the first and last characters are open and close square brackets enclosing exactly 8 hexadecimal digits (padded to the left with zeroes, if necessary).

Returns: A modifiable descriptor containing the standard text format of the UID.

Null ( )

TUid Null()[static, inline]

Constructs a Null-valued TUid object.

Returns: The constructed Null-valued TUid object.

Uid ( TInt )

TUid Uid(TIntaUid)[static, inline]

Constructs the TUid object from a 32-bit integer.

ParameterDescription
aUidThe 32-bit integer value from which the TUid object is to be constructed.

Returns: The constructed TUid object.

operator!= ( const TUid & )

IMPORT_C TBooloperator!=(const TUid &aUid)const

Compares two UIDs for inequality.

ParameterDescription
aUidThe UID to be compared with this UID.

Returns: True, if the two UIDs are unequal; false otherwise.

operator== ( const TUid & )

IMPORT_C TBooloperator==(const TUid &aUid)const

Compares two UIDs for equality.

ParameterDescription
aUidThe UID to be compared with this UID.

Returns: True, if the two UIDs are equal; false otherwise.