Main Page   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::MessageEvent ICQ2000::Event List of all members.

Public Methods

 NormalMessageEvent (Contact *c, const string &msg, bool multi=false)
 Construct a NormalMessageEvent. More...

 NormalMessageEvent (Contact *c, const string &msg, time_t t, bool multi)
 Construct a NormalMessageEvent. More...

 NormalMessageEvent (Contact *c, const string &msg, unsigned int fg, unsigned int bg)
 Construct a NormalMessageEvent. More...

string getMessage () const
 get the message. More...

MessageType getType () const
 get the type of the MessageEvent. More...

unsigned int getSenderUIN () const
 get the uin of the sender. More...

bool isOfflineMessage () const
 get if the message was an offline message. More...

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

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

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

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

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


Detailed Description

A normal message.


Constructor & Destructor Documentation

ICQ2000::NormalMessageEvent::NormalMessageEvent Contact *    c,
const 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 Contact *    c,
const 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 Contact *    c,
const 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

unsigned int ICQ2000::NormalMessageEvent::getSenderUIN   const
 

get the uin of the sender.

This is really miss-named, if you were sending the message, this would be the UIN of the recipient.

Returns:
the uni

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

get the type of the MessageEvent.

Returns:
the type of the message

Reimplemented from ICQ2000::MessageEvent.

bool ICQ2000::NormalMessageEvent::isMultiParty   const
 

get if the message is a multiparty message.

Returns:
if the message is a multiparty message

bool ICQ2000::NormalMessageEvent::isOfflineMessage   const
 

get if the message was an offline message.

Returns:
if the message was an offline 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 Tue Jan 15 12:24:37 2002 for libicq2000 by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001