#include <im.h>
Inheritance diagram for OpalIMContext:
typedef PNotifierTemplate<const PString &> OpalIMContext::CompositionIndicationChangedNotifier |
typedef PNotifierTemplate<const OpalIM &> OpalIMContext::IncomingIMNotifier |
typedef PNotifierTemplate<const MessageSentInfo &> OpalIMContext::MessageSentNotifier |
OpalIMContext::OpalIMContext | ( | ) |
OpalIMContext::~OpalIMContext | ( | ) |
virtual bool OpalIMContext::AddIncomingIM | ( | OpalIM * | message | ) | [virtual] |
virtual bool OpalIMContext::CheckContentType | ( | const PString & | contentType | ) | const [virtual] |
static PSafePtr<OpalIMContext> OpalIMContext::Create | ( | OpalManager & | manager, | |
PSafePtr< OpalPresentity > | presentity, | |||
const PURL & | remoteURL | |||
) | [static] |
static PSafePtr<OpalIMContext> OpalIMContext::Create | ( | OpalManager & | manager, | |
PSafePtr< OpalConnection > | conn | |||
) | [static] |
static PSafePtr<OpalIMContext> OpalIMContext::Create | ( | OpalManager & | manager, | |
const PURL & | localURL, | |||
const PURL & | remoteURL | |||
) | [static] |
static PString OpalIMContext::CreateKey | ( | const PString & | from, | |
const PString & | to | |||
) | [static] |
const PStringOptions& OpalIMContext::GetAttributes | ( | ) | const [inline] |
PStringOptions& OpalIMContext::GetAttributes | ( | ) | [inline] |
< Get the attributes for this presentity.
virtual PStringArray OpalIMContext::GetContentTypes | ( | ) | const [virtual] |
PString OpalIMContext::GetID | ( | ) | const [inline] |
OpalIM* OpalIMContext::GetIncomingMessage | ( | ) |
PString OpalIMContext::GetKey | ( | ) | const [inline] |
PString OpalIMContext::GetLocalURL | ( | ) | const [inline] |
PString OpalIMContext::GetRemoteURL | ( | ) | const [inline] |
virtual void OpalIMContext::InternalOnMessageSent | ( | const MessageSentInfo & | info | ) | [virtual] |
virtual SentStatus OpalIMContext::InternalSend | ( | ) | [protected, virtual] |
virtual SentStatus OpalIMContext::InternalSendInsideCall | ( | OpalIM * | message | ) | [protected, virtual] |
Reimplemented in OpalSIPIMContext.
virtual SentStatus OpalIMContext::InternalSendOutsideCall | ( | OpalIM * | message | ) | [protected, virtual] |
Reimplemented in OpalSIPIMContext.
virtual void OpalIMContext::OnCompositionIndicationChanged | ( | const PString & | state | ) | [virtual] |
Called when the remote composition indication changes state for this context Default implementation calls IncomingIMNotifier, if set, else returns true
virtual void OpalIMContext::OnCompositionIndicationTimeout | ( | ) | [virtual] |
Reimplemented in OpalSIPIMContext.
virtual SentStatus OpalIMContext::OnIncomingIM | ( | OpalIM & | message | ) | [virtual] |
Called when an incoming message arrives for this context Default implementation calls IncomingIMNotifier, if set, else returns true
Reimplemented in OpalSIPIMContext.
virtual void OpalIMContext::OnMessageSent | ( | const MessageSentInfo & | info | ) | [virtual] |
virtual bool OpalIMContext::OnNewIncomingIM | ( | ) | [virtual] |
void OpalIMContext::ResetLastUsed | ( | ) |
virtual SentStatus OpalIMContext::Send | ( | OpalIM * | message | ) | [virtual] |
virtual SentStatus OpalIMContext::SendCompositionIndication | ( | bool | active = true |
) | [virtual] |
Reimplemented in OpalSIPIMContext.
void OpalIMContext::SetCompositionIndicationChangedNotifier | ( | const CompositionIndicationChangedNotifier & | notifier | ) |
Set the notifier for the OnIncomingMessage() function.
notifier | Notifier to be called by OnIncomingIM() |
void OpalIMContext::SetID | ( | const PString & | id | ) | [inline] |
void OpalIMContext::SetIncomingIMNotifier | ( | const IncomingIMNotifier & | notifier | ) |
Set the notifier for the OnIncomingMessage() function.
notifier | Notifier to be called by OnIncomingIM() |
void OpalIMContext::SetMessageSentNotifier | ( | const MessageSentNotifier & | notifier | ) |
Set the notifier for the OnMessageSent() function.
notifier | Notifier to be called by OnIncomingIM() |
friend class OpalIMManager [friend] |
PStringOptions OpalIMContext::m_attributes [protected] |
CompositionIndicationChangedNotifier OpalIMContext::m_compositionIndicationChangedNotifier [protected] |
PSafePtr<OpalConnection> OpalIMContext::m_connection [protected] |
OpalIM* OpalIMContext::m_currentOutgoingMessage [protected] |
PQueue<OpalIM> OpalIMContext::m_incomingMessages [protected] |
PMutex OpalIMContext::m_incomingMessagesMutex [protected] |
PTime OpalIMContext::m_lastUsed [protected] |
PMutex OpalIMContext::m_lastUsedMutex [protected] |
OpalManager* OpalIMContext::m_manager [protected] |
PMutex OpalIMContext::m_notificationMutex [protected] |
PQueue<OpalIM> OpalIMContext::m_outgoingMessages [protected] |
PMutex OpalIMContext::m_outgoingMessagesMutex [protected] |
PSafePtr<OpalPresentity> OpalIMContext::m_presentity [protected] |