CMMFObject Class Reference

#include <mmf/common/mmfcontroller.h>

Link against: mmfcontrollerframework.lib

class CMMFObject : public CBase, public CBase

Inherits from

Detailed Description

Defines an object to which a client may have a direct handle.

This class provides a way of identifying objects within the controller framework, and a means

of passing commands to those objects.

Since
7.0s

Constructor & Destructor Documentation

CMMFObject ( TUid )

IMPORT_CCMMFObject(TUidaInterfaceId)

Constructor.

Since
7.0s
Parameters
aInterfaceIdThe UID of the interface provided by this object.

~CMMFObject ( )

IMPORT_C~CMMFObject()

Destructor.

Member Function Documentation

Handle ( )

IMPORT_C const TMMFMessageDestination &Handle()

Returns the handle of the object.

Since
7.0s
Return Value
The handle of this object.

HandleRequest ( TMMFMessage & )

voidHandleRequest(TMMFMessage &aMessage)[pure virtual]

Passes a message to the object to handle.

This is a pure virtual method to be implemented by concrete classes derived from this class.

The message passed in MUST be completed by the object; however, it can be copied to be

completed at a later time, should some other asynchronous action need to occur first.

Since
7.0s
Parameters
aMessageThe message to be handled. This MUST be completed by the object.

operator== ( const CMMFObject & )

IMPORT_C TBooloperator==(const CMMFObject &aOther)

Compares two CMMFObjects by comparing their handles.

Since
7.0s
Parameters
aOtherThe object to be compared with this object.
Return Value
A boolean indicating if the two CMMFObjects are the same. ETrue if they are the same, EFalse if the objects are different.