Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

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

Class TMMFMessageDestination

class TMMFMessageDestination;

Description

Describes the destination of a message in the controller framework.

The destination is defined by a UID describing the interface and an integer object handle. The controller framework uses this information when it receives a message to decide where to send the message.

The controller plugin and controller proxy use the special constant handles KMMFObjectHandleControllerProxy and KMMFObjectHandleController for efficiency.

Members

Defined in TMMFMessageDestination:


Construction and destruction


TMMFMessageDestination()

IMPORT_C TMMFMessageDestination();

Description

Default constructor.

Assigns a null UID to the interface, and a null handle to the handle.


TMMFMessageDestination(TUid)

IMPORT_C TMMFMessageDestination(TUid aInterfaceId);

Description

Constructor for sending messages to the controller plugin.

Assigns KMMFObjectHandleController to the destination handle.

Parameters

TUid aInterfaceId

The UID of the interface of this message destination.


TMMFMessageDestination(TUid,TInt)

IMPORT_C TMMFMessageDestination(TUid aInterfaceId, TInt aDestinationHandle);

Description

Full constructor.

Parameters

TUid aInterfaceId

The UID of the interface of this message destination.

TInt aDestinationHandle

The handle of the destination object in the controller framework.


TMMFMessageDestination(const TMMFMessageDestination &)

IMPORT_C TMMFMessageDestination(const TMMFMessageDestination &aOther);

Description

Copy constructor.

Parameters

const TMMFMessageDestination &aOther

The TMMFMessageDestination object to be copied.

[Top]


Member functions


InterfaceId()const

IMPORT_C TUid InterfaceId() const;

Description

Returns the UID of the interface of the message destination.

Return value

TUid

The interface UID.


DestinationHandle()const

IMPORT_C TInt DestinationHandle() const;

Description

Returns the handle of the destination object in the controller framework.

Return value

TInt

The destination handle.


operator==(const TMMFMessageDestination &)const

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

Description

Compares two destinations.

Parameters

const TMMFMessageDestination &aOther

The object to be compared with this object.

Return value

TBool

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