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

ICQ2000::NormalMessageEvent Class Reference

A normal message. More...

#include <events.h>

Inheritance diagram for ICQ2000::NormalMessageEvent:

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

Public Methods

 NormalMessageEvent (ContactRef c, const std::string &msg, bool multi=false)
 Construct a NormalMessageEvent.

 NormalMessageEvent (ContactRef c, const std::string &msg, time_t t, bool multi)
 Construct a NormalMessageEvent.

 NormalMessageEvent (ContactRef c, const std::string &msg, unsigned int fg, unsigned int bg)
 Construct a NormalMessageEvent.

std::string getMessage () const
 get the message

MessageType getType () const
 get the type of the MessageEvent

bool isMultiParty () const
 get if the message is a multiparty message

unsigned int getForeground () const
 get the foreground colour of the message

unsigned int getBackground () const
 get the background colour of the message

void setForeground (unsigned int f)
 set the foreground colour of the message

void setBackground (unsigned int b)
 set the background colour of the message

ICQMessageEventcopy () const

Detailed Description

A normal message.


Constructor & Destructor Documentation

ICQ2000::NormalMessageEvent::NormalMessageEvent ContactRef    c,
const std::string &    msg,
bool    multi = false
 

Construct a NormalMessageEvent.

Parameters:
c  the contact related to the event
msg  the message
multi  tag message as a multireceipt message

ICQ2000::NormalMessageEvent::NormalMessageEvent ContactRef    c,
const std::string &    msg,
time_t    t,
bool    multi
 

Construct a NormalMessageEvent.

This constructor is only used by the library.

Parameters:
c  the contact related to the event
msg  the message
multi  tag message as a multireceipt message
t  the time the message was sent

ICQ2000::NormalMessageEvent::NormalMessageEvent ContactRef    c,
const std::string &    msg,
unsigned int    fg,
unsigned int    bg
 

Construct a NormalMessageEvent.

Parameters:
c  the contact related to the event
msg  the message
fg  foreground colour for the message
bg  background colour for the message


Member Function Documentation

unsigned int ICQ2000::NormalMessageEvent::getBackground   const
 

get the background colour of the message

Returns:
background colour of the message

unsigned int ICQ2000::NormalMessageEvent::getForeground   const
 

get the foreground colour of the message

Returns:
foreground colour of the message

string ICQ2000::NormalMessageEvent::getMessage   const
 

get the message

Returns:
the message

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

get the type of the MessageEvent

Returns:
the type of the message

Implements ICQ2000::MessageEvent.

bool ICQ2000::NormalMessageEvent::isMultiParty   const
 

get if the message is a multiparty message

Returns:
if the message is a multiparty message

void ICQ2000::NormalMessageEvent::setBackground unsigned int    b
 

set the background colour of the message

Parameters:
b  background colour of the message

void ICQ2000::NormalMessageEvent::setForeground unsigned int    f
 

set the foreground colour of the message

Parameters:
f  foreground colour of the message


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