Added convenience method to send an event through its call.

git-svn-id: http://yate.null.ro/svn/yate/trunk@2312 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2008-11-10 15:25:48 +00:00
parent 95e005df49
commit 55df6c0dd8
1 changed files with 7 additions and 0 deletions

View File

@ -1210,6 +1210,13 @@ public:
static inline const char* typeName(Type t)
{ return lookup(t,s_types,0); }
/**
* Send this event through the call that generated it
* @return True if there was a call and the operation succedded
*/
inline bool sendEvent()
{ return m_call && m_call->sendEvent(this); }
private:
Type m_type;
SignallingMessage* m_message;