![Symbian Developer Library](../../../../a_stock/images/mainheading.gif)
![]() |
![]() |
|
class TTypeUid : public TUid;
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.
TUid
- A globally unique 32-bit number.
TTypeUid
- Part of the object provider mechanism, this class encapsulates the Uid that iden...
Defined in TTypeUid
:
MakePtr(T *)const
Constructs a TTypeUid::Ptr which encapsulates the specified object pointer.Null()
Constructs a TTypeUid::Ptr which encapsulates a NULL pointer.Ptr
Encapsulates a pointer to an object fetched by an object provider.TTypeUid(TInt)
Constructor that takes a Uid value.Inherited from TUid
:
Name()const
Generates and returns the standard text form of the UID.Uid(TInt)
Constructs the TUid object from a 32-bit integer.iUid
The 32-bit integer UID value.operator!=(const TUid &)const
Compares two UIDs for inequality.operator==(const TUid &)const
Compares two UIDs for equality.MObjectProvider
An interface that allows an object to be part of a network of object providers.inline TTypeUid(TInt aUid);
Constructor that takes a Uid value.
|
static inline Ptr Null();
Constructs a TTypeUid::Ptr
which encapsulates a NULL pointer.
|
inline Ptr MakePtr(T *aT) const;
Constructs a TTypeUid::Ptr
which encapsulates the specified object pointer.
|
|
class Ptr;
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.
Defined in TTypeUid::Ptr
:
Pointer()const
Retrieves the pointer to an object which is encapsulated by the TTypeUid::Ptr.Pointer()const
inline TAny* Pointer() const;
Retrieves the pointer to an object which is encapsulated by the TTypeUid::Ptr
.
|