OPAL  Version 3.10.4
OpalSIPIMContext Class Reference

#include <sipim.h>

Inheritance diagram for OpalSIPIMContext:
OpalConnectionIMContext OpalIMContext

Public Member Functions

 OpalSIPIMContext ()
virtual SentStatus SendCompositionIndication (bool active=true)
- Public Member Functions inherited from OpalConnectionIMContext
 OpalConnectionIMContext ()
- Public Member Functions inherited from OpalIMContext
 OpalIMContext ()
 ~OpalIMContext ()
virtual SentStatus Send (OpalIM *message)
virtual void OnMessageSent (const MessageSentInfo &info)
void SetMessageSentNotifier (const MessageSentNotifier &notifier)
 Set the notifier for the OnMessageSent() function.
void SetIncomingIMNotifier (const IncomingIMNotifier &notifier)
 Set the notifier for the OnIncomingMessage() function.
virtual void OnCompositionIndicationChanged (const PString &state)
void SetCompositionIndicationChangedNotifier (const CompositionIndicationChangedNotifier &notifier)
 Set the notifier for the OnIncomingMessage() function.
virtual bool CheckContentType (const PString &contentType) const
virtual PStringArray GetContentTypes () const
PString GetID () const
void SetID (const PString &id)
PString GetKey () const
PString GetLocalURL () const
PString GetRemoteURL () const
PStringOptions & GetAttributes ()
 < Get the attributes for this presentity.
const PStringOptions & GetAttributes () const
virtual bool OnNewIncomingIM ()
virtual bool AddIncomingIM (OpalIM *message)
OpalIMGetIncomingMessage ()
virtual void InternalOnMessageSent (const MessageSentInfo &info)
void ResetLastUsed ()

Static Public Member Functions

static void PopulateParams (SIPMessage::Params &params, OpalIM &message)

Protected Member Functions

virtual SentStatus InternalSendOutsideCall (OpalIM *message)
virtual SentStatus InternalSendInsideCall (OpalIM *message)
virtual SentStatus OnIncomingIM (OpalIM &message)
void OnCompositionIndicationTimeout ()
void ResetTimers (OpalIM &message)
 PDECLARE_NOTIFIER (PTimer, OpalSIPIMContext, OnRxCompositionTimerExpire)
 PDECLARE_NOTIFIER (PTimer, OpalSIPIMContext, OnTxCompositionTimerExpire)
 PDECLARE_NOTIFIER (PTimer, OpalSIPIMContext, OnTxIdleTimerExpire)

Protected Attributes

PTimer m_rxCompositionTimeout
PTimer m_txCompositionTimeout
PTimer m_txIdleTimeout
RFC4103Context m_rfc4103Context

Additional Inherited Members

- Public Types inherited from OpalIMContext
enum  SentStatus {
  SentOK, SentPending, SentAccepted, SentUnacceptableContent,
  SentInvalidContent, SentConnectionClosed, SentNoTransport, SentNoAnswer,
  SentDestinationUnknown, SentFailedGeneric
}
typedef PNotifierTemplate
< const MessageSentInfo & > 
MessageSentNotifier
typedef PNotifierTemplate
< const OpalIM & > 
IncomingIMNotifier
typedef PNotifierTemplate
< const PString & > 
CompositionIndicationChangedNotifier

Constructor & Destructor Documentation

OpalSIPIMContext::OpalSIPIMContext ( )

Member Function Documentation

virtual SentStatus OpalSIPIMContext::InternalSendInsideCall ( OpalIM message)
protectedvirtual

Reimplemented from OpalIMContext.

virtual SentStatus OpalSIPIMContext::InternalSendOutsideCall ( OpalIM message)
protectedvirtual

Reimplemented from OpalIMContext.

void OpalSIPIMContext::OnCompositionIndicationTimeout ( )
protectedvirtual

Reimplemented from OpalIMContext.

virtual SentStatus OpalSIPIMContext::OnIncomingIM ( OpalIM message)
protectedvirtual

Called when an incoming message arrives for this context Default implementation calls IncomingIMNotifier, if set, else returns true

Reimplemented from OpalIMContext.

OpalSIPIMContext::PDECLARE_NOTIFIER ( PTimer  ,
OpalSIPIMContext  ,
OnRxCompositionTimerExpire   
)
protected
OpalSIPIMContext::PDECLARE_NOTIFIER ( PTimer  ,
OpalSIPIMContext  ,
OnTxCompositionTimerExpire   
)
protected
OpalSIPIMContext::PDECLARE_NOTIFIER ( PTimer  ,
OpalSIPIMContext  ,
OnTxIdleTimerExpire   
)
protected
static void OpalSIPIMContext::PopulateParams ( SIPMessage::Params params,
OpalIM message 
)
static
void OpalSIPIMContext::ResetTimers ( OpalIM message)
protected
virtual SentStatus OpalSIPIMContext::SendCompositionIndication ( bool  active = true)
virtual

Reimplemented from OpalIMContext.

Field Documentation

RFC4103Context OpalSIPIMContext::m_rfc4103Context
protected
PTimer OpalSIPIMContext::m_rxCompositionTimeout
protected
PTimer OpalSIPIMContext::m_txCompositionTimeout
protected
PTimer OpalSIPIMContext::m_txIdleTimeout
protected

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