CMMFObjectContainer Class Reference
class CMMFObjectContainer : public CBase |
Container class to hold the CMMFObject-derived objects in the controller framework.
Constructor & Destructor Documentation
CMMFObjectContainer()
IMPORT_C | CMMFObjectContainer | ( | ) | |
~CMMFObjectContainer()
IMPORT_C | ~CMMFObjectContainer | ( | ) | |
Destructor.
Deletes all objects owned by the container.
Member Functions Documentation
AddMMFObject(CMMFObject &)
Add an object to the container.
Once the object has been added, its ownership is transferred to the container.
Parameters
CMMFObject & aObject | A reference to the object to be added to the container. |
DeleteAllObjects()
IMPORT_C void | DeleteAllObjects | ( | ) | |
Removes and destroys all objects from the container.
FindMMFObject(const TMMFMessageDestination &, CMMFObject *&)
Finds an object in the container using a handle.
Parameters
const TMMFMessageDestination & aObjectHandle | The handle of the object to be located. |
CMMFObject *& aObjectFound | A reference to a pointer to the object found in the container. |
FindMMFObject(const CMMFObject &, TInt &)
Internal method to find an object in the array.
GenerateObjectHandle()
TInt
| GenerateObjectHandle | ( | ) | [private] |
Internal method used to generate the object handle for a newly added object.
RemoveAndDestroyMMFObject(CMMFObject &)
IMPORT_C void | RemoveAndDestroyMMFObject | ( | CMMFObject & | aObject | ) | |
Removes and destroys an object from the container.
This method ensures that the object is no longer in the container, and that it gets deleted. Even if the object is not found in the container's array of objects, it will be deleted.
Parameters
CMMFObject & aObject | A reference to the object to be deleted. |
Member Data Documentation
TInt
iNextObjectHandle
TInt
| iNextObjectHandle | [private] |
The next available object handle.
RPointerArray< CMMFObject > iObjects
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.