OPAL  Version 3.18.8
OpalInstantMessage Struct Reference

#include <opal.h>

Collaboration diagram for OpalInstantMessage:

Data Fields

const char * m_from
 
const char * m_to
 
const char * m_host
 
const char * m_conversationId
 
const char * m_textBody
 
unsigned m_bodyCount
 
const char ** m_mimeType
 
const char ** m_bodies
 
unsigned m_messageId
 
const char * m_htmlBody
 
const OpalMIMEm_bodyData
 

Detailed Description

Opal Instant Message information for the various presence messages. This can be filled out and used in the OpalCmdSendIM command. The result of that transmission is returned by OpalIndSentIM, where m_textBody contains a string indicating the disposition of the message.

The OpalIndReceiveIM message uses this structure for incoming instant messages from a remote.

Field Documentation

const char** OpalInstantMessage::m_bodies

Body data for each MIME type. Deprecated in favour of m_bodyData which supports binary data.

unsigned OpalInstantMessage::m_bodyCount

Count of bodies in m_mimeType and m_bodies

const OpalMIME* OpalInstantMessage::m_bodyData

Body data. Pointer to m_bodyCount entries.

const char* OpalInstantMessage::m_conversationId
 Conversation identifier. This may be

provided by the caller if athe conversation exists. If starting a new conversation, leave empty and OpalCmdSendIM will return it.

const char* OpalInstantMessage::m_from

Address from whom the message is sent.

const char* OpalInstantMessage::m_host

Optional host/proxy. If blank then it is derived from the m_to address.

const char* OpalInstantMessage::m_htmlBody

HTML text body, if present. This will always be MIME type "text/html". It will also be included in the m_bodyCount and m_bodies.

unsigned OpalInstantMessage::m_messageId

Identifer for this message. This can be used to match a message sent with OpalCmdSendIM with the disposition in OpalIndSentIM. It is not set by the user, and is returned by OpalCmdSendIM.

const char** OpalInstantMessage::m_mimeType

MIME type for each body, e.g. "text/html"

const char* OpalInstantMessage::m_textBody

Simple text body, if present. This will always be MIME type "text/plain". It will also be included in the m_bodyCount and m_bodies.

const char* OpalInstantMessage::m_to

Address to which the message is sent.


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