Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: e32cmn.h
Link against: euser.lib

Class TUid

class TUid;

Description

A globally unique 32-bit number.

Members

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


Member functions


operator==()

IMPORT_C TBool 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

TBool

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


operator!=()

IMPORT_C TBool 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

TBool

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


Name()

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


Uid()

static inline TUid Uid(TInt aUid);

Description

Constructs the TUid object from a 32-bit integer.

Parameters

TInt aUid

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

Return value

TUid

The constructed TUid object.


Null()

static inline TUid Null();

Description

Constructs a Null-valued TUid object.

Return value

TUid

The constructed Null-valued TUid object.

[Top]


Member data


iUid

TInt32 iUid;

Description

The 32-bit integer UID value.