#include <mmf/common/mmfcontroller.h>
Link against: mmfcontrollerframework.lib
class CMMFObjectContainer : public CBase, public CBase |
Public Member Functions | |
---|---|
CMMFObjectContainer() | |
~CMMFObjectContainer() | |
IMPORT_C TInt | AddMMFObject(CMMFObject &) |
IMPORT_C void | DeleteAllObjects() |
IMPORT_C TInt | FindMMFObject(const TMMFMessageDestination &, CMMFObject *&) |
const RPointerArray< CMMFObject > & | MMFObjects() |
IMPORT_C void | RemoveAndDestroyMMFObject(CMMFObject &) |
Container class to hold the CMMFObject-derived objects in the controller framework.
IMPORT_C | ~CMMFObjectContainer | ( | ) |
Destructor.
Deletes all objects owned by the container.
IMPORT_C TInt | AddMMFObject | ( | CMMFObject & | aObject | ) |
Add an object to the container.
Once the object has been added, its ownership is transferred to the container.
Parameters | |
---|---|
aObject | A reference to the object to be added to the container. |
IMPORT_C void | DeleteAllObjects | ( | ) |
Removes and destroys all objects from the container.
IMPORT_C TInt | FindMMFObject | ( | const TMMFMessageDestination & | aObjectHandle, |
CMMFObject *& | aObjectFound | |||
) |
Finds an object in the container using a handle.
Parameters | |
---|---|
aObjectHandle | The handle of the object to be located. |
aObjectFound | A reference to a pointer to the object found in the container. |
const RPointerArray< CMMFObject > & | MMFObjects | ( | ) |
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 | |
---|---|
aObject | A reference to the object to be deleted. |