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() function implemented by an object provider. A TTypeUid::Ptr is also returned by this function.
Public Member Functions | |
---|---|
TTypeUid ( TInt ) | |
Ptr | MakePtr (T *) |
Ptr | Null () |
Inherited Functions | |
---|---|
TUid::Name()const | |
TUid::Uid(TInt) | |
TUid::operator!=(const TUid &)const | |
TUid::operator==(const TUid &)const |
Inherited Attributes | |
---|---|
TUid::iUid |
TTypeUid | ( | TInt | aUid | ) | [inline] |
Constructor that takes a Uid value.
TInt aUid | The Uid value that defines the type of object that an object provider is to get. |
Ptr | MakePtr | ( | T * | aT | ) | const [inline] |
Constructs a Ptr which encapsulates the specified object pointer.
T * aT | A pointer to the object which is to be encapsulated. |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.