Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <e32cmn.h>
Link against: euser.lib

Class TUid

class TUid;

Description

A globally unique 32-bit number.

Members

Defined in TUid:


Member functions


operator==(const TUid &)const

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!=(const TUid &)const

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()const

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

TBuf

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


Uid(TInt)

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.