Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   Related Pages  

ICQ2000::SMSMessageEvent Class Reference

An SMS message. More...

#include <events.h>

Inheritance diagram for ICQ2000::SMSMessageEvent:

ICQ2000::MessageEvent ICQ2000::Event List of all members.

Public Methods

 SMSMessageEvent (ContactRef c, const std::string &msg, bool rcpt)
 Construct an SMSMessageEvent.

 SMSMessageEvent (ContactRef c, const std::string &msg, const std::string &source, const std::string &senders_network, const std::string &time)
 Construct an SMSMessageEvent.

std::string getMessage () const
 get the message

MessageType getType () const
 get the type of the MessageEvent

std::string getSource () const
 get the source

std::string getSender () const
 get the sender (mobile no)

std::string getSenders_network () const
 get the senders network

bool getRcpt () const
 get if a receipt was requested

void setSMTPFrom (const std::string &from)
std::string getSMTPFrom () const
void setSMTPTo (const std::string &to)
std::string getSMTPTo () const
void setSMTPSubject (const std::string &subj)
std::string getSMTPSubject () const

Detailed Description

An SMS message.


Constructor & Destructor Documentation

ICQ2000::SMSMessageEvent::SMSMessageEvent ContactRef    c,
const std::string &    msg,
bool    rcpt
 

Construct an SMSMessageEvent.

Parameters:
c  the destination contact
msg  the message
rcpt  whether to request a delivery receipt

ICQ2000::SMSMessageEvent::SMSMessageEvent ContactRef    c,
const std::string &    msg,
const std::string &    source,
const std::string &    senders_network,
const std::string &    time
 

Construct an SMSMessageEvent.

Parameters:
c  the source contact
msg  the message
source  the source (service)
senders_network  the senders network
time  the time of sending
Todo:
fix parsing of time


Member Function Documentation

string ICQ2000::SMSMessageEvent::getMessage   const
 

get the message

Returns:
the message

bool ICQ2000::SMSMessageEvent::getRcpt   const
 

get if a receipt was requested

Returns:
if a receipt was requested

string ICQ2000::SMSMessageEvent::getSender   const
 

get the sender (mobile no)

Returns:
the sender

string ICQ2000::SMSMessageEvent::getSenders_network   const
 

get the senders network

Returns:
the senders network

string ICQ2000::SMSMessageEvent::getSource   const
 

get the source

Returns:
the source

MessageEvent::MessageType ICQ2000::SMSMessageEvent::getType   const [virtual]
 

get the type of the MessageEvent

Returns:
the type of the message

Implements ICQ2000::MessageEvent.


The documentation for this class was generated from the following files:
Generated on Sun Jul 21 10:57:33 2002 for libicq2000 by doxygen1.2.16