#include <events.h>
Inheritance diagram for ICQ2000::MessageEvent::
Public Types | |
enum | MessageType { Normal, URL, SMS, SMS_Receipt, AuthReq, AuthAck, AwayMessage } |
enum of the type of the message. | |
Public Methods | |
MessageEvent (Contact *c) | |
Constructor for a MessageEvent. More... | |
virtual | ~MessageEvent () |
Destructor for MessageEvent. | |
virtual MessageType | getType () const=0 |
get the type of the MessageEvent. More... | |
Contact * | getContact () |
get the contact related to the event. More... | |
bool | isFinished () const |
get if a message event is finished. More... | |
bool | isDelivered () const |
get if a message event was delivered. More... | |
bool | isDirect () const |
get if a message event was sent direct. More... | |
void | setFinished (bool f) |
set whether the message has been finished. More... | |
void | setDelivered (bool f) |
set whether the message has been delivered. More... | |
void | setDirect (bool f) |
set whether the message has been sent direct. More... | |
Protected Attributes | |
Contact * | m_contact |
the contact related to the MessageEvent. | |
bool | m_finished |
whether the event is finished. | |
bool | m_delivered |
whether the event was delivered. | |
bool | m_direct |
whether the event was sent direct. |
MessageEvents are used for messages, URLs, SMSs, Authorisation request/responses and away messages.
|
Constructor for a MessageEvent.
|
|
get the contact related to the event.
|
|
get the type of the MessageEvent.
Reimplemented in ICQ2000::NormalMessageEvent, ICQ2000::URLMessageEvent, ICQ2000::SMSMessageEvent, ICQ2000::SMSReceiptEvent, ICQ2000::AwayMessageEvent, ICQ2000::AuthReqEvent, and ICQ2000::AuthAckEvent. |
|
get if a message event was delivered. This is used in the message ack'ing system.
|
|
get if a message event was sent direct. This is used in the message ack'ing system.
|
|
get if a message event is finished. This is used in the message ack'ing system.
|
|
set whether the message has been delivered. This is used internally by the library and is of no interest to the client.
|
|
set whether the message has been sent direct. This is used internally by the library and is of no interest to the client.
|
|
set whether the message has been finished. This is used internally by the library and is of no interest to the client.
|