Yate
Public Member Functions | List of all members
MessageHook Class Referenceabstract

Abstract message hook. More...

#include <yatengine.h>

Inheritance diagram for MessageHook:
RefObject GenObject MessageQueue

Public Member Functions

virtual bool enqueue (Message *msg)=0
 
virtual void clear ()=0
 
virtual bool matchesFilter (const Message &msg)=0
 
- Public Member Functions inherited from RefObject
 RefObject ()
 
virtual ~RefObject ()
 
virtual void * getObject (const String &name) const
 
virtual bool alive () const
 
bool ref ()
 
bool deref ()
 
int refcount () const
 
virtual void destruct ()
 
- Public Member Functions inherited from GenObject
 GenObject ()
 
virtual ~GenObject ()
 
virtual const StringtoString () const
 
NamedCountergetObjCounter () const
 
NamedCountersetObjCounter (NamedCounter *counter)
 

Additional Inherited Members

- Static Public Member Functions inherited from RefObject
static bool alive (const RefObject *obj)
 
static bool efficientIncDec ()
 
- Static Public Member Functions inherited from GenObject
static void * getObject (const String &name, const GenObject *obj)
 
static bool getObjCounting ()
 
static void setObjCounting (bool enable)
 
static NamedCountergetObjCounter (const String &name, bool create=true)
 
static ObjListgetObjCounters ()
 
- Protected Member Functions inherited from RefObject
virtual void zeroRefs ()
 
bool resurrect ()
 
virtual void destroyed ()
 

Detailed Description

Abstract message hook.

Abstract class for message hook

Member Function Documentation

virtual void clear ( )
pure virtual

Clear this hook data

Implemented in MessageQueue.

virtual bool enqueue ( Message msg)
pure virtual

Try to enqueue a message to this hook's queue

Parameters
msgThe message to enqueue
Returns
True if the message was enqueued.

Implemented in MessageQueue.

virtual bool matchesFilter ( const Message msg)
pure virtual

Check if the given message can be inserted in this queue

Parameters
msgThe message to check
Returns
True if the message can be inserted in this queue

Implemented in MessageQueue.


The documentation for this class was generated from the following file: