Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



Location: e32std.h
Link against: euser.lib

Class TUid

TUid

Support

Supported from 5.0

Description

Globally unique 32-bit number.

Defined in TUid:
Name(), iUid, operator!=(), operator==()


Comparison


operator==()

TInt operator==(const TUid& aUID) const;

Description

Compares two UIDs for equality

Parameters

const TUid& aUID

The UID to be compared with this UID

Return value

TInt

Returns 1 if the two UIDs are equal, or 0 if the two UIDs are not equal


operator!=()

TInt operator!=(const TUid& aUID) const;

Description

Compares two UIDs for inequality.

Parameters

const TUid& aUID

The UID to be compared with this UID

Return value

TInt

Returns 0 if the two UIDs are equal, or 1 if the two UIDs are not equal.

[Top]


Getting a UIDs name


Name()

TUidName Name() const;

Description

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).

Return value

TUidName

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

[Top]


Public data members


iUid

TInt32 iUid

Description

32-bit integer UID