Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



Location: mda\client\utility.h
Link against: n/a

Class MMdaObjectEventListener

MMdaObjectEventListener

Support

Supported from 6.0

Description

Interface class for receiving events from the media server.

Objects that implement this interface can be passed to CMdaServer::AddListenerL() or RemoveListener(). The media server calls the appropriate listener's MoelEventMissed() or MoelEvent() function on receiving an event from the media server, for example the audio output device signalling that it has finished playing the data passed to it.

Defined in MMdaObjectEventListener:
MoelEvent(), MoelEventMissed(), MoelObject()


Member functions


MoelObject()

virtual const RMdaObject& MoelObject() const =0;

Description

Returns the client-side handle to the object the listener can receive events from.

Return value

RMdaObject&

The client side handle of the RMdaObject–derived class, for instance an RMdaController.


MoelEvent()

virtual void MoelEvent(const TMdaEvent& aEvent) =0;

Description

Handles an event that occurred in the media server. Called by the CMdaServer object that the listener has been added to.

Parameters

const TMdaEvent& aEvent

A single event that occurred in the media server.

See also:


MoelEventMissed()

virtual void MoelEventMissed() =0;

Description

This function, rather than MoelEvent() is called if the event's ID is EMdaEventMissed. Events are stored when they are received and a missed event occurs when there are no spare slots.