Data Structures |
struct | MessageSentInfo |
Public Types |
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 |
Public Member Functions |
| OpalIMContext () |
| ~OpalIMContext () |
virtual SentStatus | Send (OpalIM *message) |
virtual SentStatus | SendCompositionIndication (bool active=true) |
virtual void | OnMessageSent (const MessageSentInfo &info) |
void | SetMessageSentNotifier (const MessageSentNotifier ¬ifier) |
| Set the notifier for the OnMessageSent() function.
|
virtual SentStatus | OnIncomingIM (OpalIM &message) |
void | SetIncomingIMNotifier (const IncomingIMNotifier ¬ifier) |
| Set the notifier for the OnIncomingMessage() function.
|
virtual void | OnCompositionIndicationChanged (const PString &state) |
void | SetCompositionIndicationChangedNotifier (const CompositionIndicationChangedNotifier ¬ifier) |
| 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 |
Static Public Member Functions |
static PSafePtr< OpalIMContext > | Create (OpalManager &manager, const PURL &localURL, const PURL &remoteURL) |
static PSafePtr< OpalIMContext > | Create (OpalManager &manager, PSafePtr< OpalConnection > conn) |
static PSafePtr< OpalIMContext > | Create (OpalManager &manager, PSafePtr< OpalPresentity > presentity, const PURL &remoteURL) |
Friends |
class | OpalIMManager |
Attributes |
PMutex | m_notificationMutex |
IncomingIMNotifier | m_incomingMessageNotifier |
MessageSentNotifier | m_messageSentNotifier |
CompositionIndicationChangedNotifier | m_compositionIndicationChangedNotifier |
OpalManager * | m_manager |
PStringOptions | m_attributes |
PSafePtr< OpalConnection > | m_connection |
PSafePtr< OpalPresentity > | m_presentity |
PMutex | m_incomingMessagesMutex |
PQueue< OpalIM > | m_incomingMessages |
PMutex | m_outgoingMessagesMutex |
OpalIM * | m_currentOutgoingMessage |
PQueue< OpalIM > | m_outgoingMessages |
PMutex | m_lastUsedMutex |
PTime | m_lastUsed |
PStringOptions & | GetAttributes () |
| < Get the attributes for this presentity.
|
const PStringOptions & | GetAttributes () const |
virtual bool | OnNewIncomingIM () |
virtual bool | AddIncomingIM (OpalIM *message) |
virtual void | OnCompositionIndicationTimeout () |
OpalIM * | GetIncomingMessage () |
virtual void | InternalOnMessageSent (const MessageSentInfo &info) |
void | ResetLastUsed () |
static PString | CreateKey (const PString &from, const PString &to) |
virtual SentStatus | InternalSend () |
virtual SentStatus | InternalSendOutsideCall (OpalIM *message) |
virtual SentStatus | InternalSendInsideCall (OpalIM *message) |