Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <mmfcontroller.h>
Link against: mmfcontrollerframework.lib

Class CMMFObject

class CMMFObject : public CBase;

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.

Derivation

Members

Defined in CMMFObject:

Inherited from CBase:


Construction and destruction


~CMMFObject()

IMPORT_C ~CMMFObject();

Description

Destructor.


CMMFObject(TUid)

IMPORT_C CMMFObject(TUid aInterfaceId);

Description

Constructor.

Parameters

TUid aInterfaceId

The UID of the interface provided by this object.

[Top]


Member functions


Handle()

IMPORT_C const TMMFMessageDestination& Handle();

Description

Returns the handle of the object.

Return value

const TMMFMessageDestination &

The handle of this object.


operator==(const CMMFObject &)

IMPORT_C TBool operator==(const CMMFObject &aOther);

Description

Compares two CMMFObjects by comparing their handles.

Parameters

const CMMFObject &aOther

The object to be compared with this object.

Return value

TBool

A boolean indicating if the two CMMFObjects are the same. ETrue if they are the same, EFalse if the objects are different.


HandleRequest(TMMFMessage &)

virtual void HandleRequest(TMMFMessage &aMessage)=0;

Description

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.

Parameters

TMMFMessage &aMessage

The message to be handled. This MUST be completed by the object.