sipxmediaadapterlib  Version 3.3
Protected Attributes | List of all members
MaNotfTranslatorDispatcher Class Reference

Dispatcher to translate MediaLib notifications into abstracted MediaAdapterLib notifications. More...

#include <MaNotfTranslatorDispatcher.h>

Inheritance diagram for MaNotfTranslatorDispatcher:
Inheritance graph
[legend]
Collaboration diagram for MaNotfTranslatorDispatcher:
Collaboration graph
[legend]

Public Member Functions

Creators
 MaNotfTranslatorDispatcher (OsMsgDispatcher *pAbstractedMsgDispatcher=NULL)
 Default constructor. More...
 
virtual ~MaNotfTranslatorDispatcher ()
 Destructor. More...
 
Manipulators
virtual OsMsgDispatcher * setDispatcher (OsMsgDispatcher *pMIDispatcher)
 
virtual OsStatus post (const OsMsg &msg)
 
virtual OsStatus receive (OsMsg *&rpMsg, const OsTime &rTimeout=OsTime::OS_INFINITY)
 
Accessors
virtual OsMsgDispatcher * getDispatcher () const
 Get the media interface dispatcher currently set on this translator dispatcher. More...
 
Inquiry
virtual UtlBoolean hasDispatcher () const
 

Protected Attributes

OsMsgDispatcher * mpAbstractedMsgDispatcher
 

Detailed Description

Dispatcher to translate MediaLib notifications into abstracted MediaAdapterLib notifications.

This message dispatcher is used to receive notifications from the mediaLib layer, then convert those messages to more abstract mediaAdapter notification messages and send them off again to another, supplied dispatcher.

See also
OsMsgDispatcher

Constructor & Destructor Documentation

MaNotfTranslatorDispatcher ( OsMsgDispatcher *  pAbstractedMsgDispatcher = NULL)

Default constructor.

Destructor.

Member Function Documentation

OsMsgDispatcher * setDispatcher ( OsMsgDispatcher *  pMIDispatcher)
virtual

Set the media interface dispatcher that will receive the converted abstract notifications.

OsStatus post ( const OsMsg &  msg)
virtual

OsStatus receive ( OsMsg *&  rpMsg,
const OsTime &  rTimeout = OsTime::OS_INFINITY 
)
virtual

OsMsgDispatcher * getDispatcher ( ) const
virtual

Get the media interface dispatcher currently set on this translator dispatcher.

UtlBoolean hasDispatcher ( ) const
virtual

Return whether this translator has a dispatcher to receive notifications from set on it or not.

Member Data Documentation

OsMsgDispatcher* mpAbstractedMsgDispatcher
protected