Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <Coemop.h>

Class TTypeUid

class TTypeUid : public TUid;

Description

Part of the object provider mechanism, this class encapsulates the Uid that identifies the type of object that an object provider is to get.

The class is also used to encapsulate a pointer to the object that the object provider has found.

An object that is intended to be capable of being retrieved by the object provider mechanism must include enum {ETypeId = 0xabcdefgh}; in its class definition, where 0xabcdefgh is the Uid value. The macro DECLARE_TYPE_ID can be used to do this.

An instance of this class is passed to the MObjectProvider::MopSupplyObject(TTypeUid) function implemented by an object provider. A TTypeUid::Ptr is also returned by this function.

Derivation

Members

Defined in TTypeUid:

Inherited from TUid:

See also:


Construction and destruction


TTypeUid(TInt)

inline TTypeUid(TInt aUid);

Description

Constructor that takes a Uid value.

Parameters

TInt aUid

The Uid value that defines the type of object that an object provider is to get.

[Top]


Member functions


Null()

static inline Ptr Null();

Description

Constructs a TTypeUid::Ptr which encapsulates a NULL pointer.

Return value

TTypeUid::Ptr

The constructed TTypeUid::Ptr object


MakePtr(T *)const

inline Ptr MakePtr(T *aT) const;

Description

Constructs a TTypeUid::Ptr which encapsulates the specified object pointer.

Parameters

T *aT

A pointer to the object which is to be encapsulated.

Return value

TTypeUid::Ptr

The constructed TTypeUid::Ptr object

[Top]


Member classes


Class Ptr

class Ptr;

Description

Encapsulates a pointer to an object fetched by an object provider.

The class has no public constructor. TTypeUid::MakePtr(T *)const or TTypeUid::Null() must be used to construct instances of this class.

Members

Defined in TTypeUid::Ptr:

Member functions


Pointer()const

inline TAny* Pointer() const;

Description

Retrieves the pointer to an object which is encapsulated by the TTypeUid::Ptr.

Return value

TAny *

A pointer to an object.