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

ICQ2000::ContactListEvent Class Reference

Base class for Contact List related events. More...

#include <events.h>

Inheritance diagram for ICQ2000::ContactListEvent:

ICQ2000::Event ICQ2000::UserAddedEvent ICQ2000::UserRemovedEvent List of all members.

Public Types

enum  EventType { UserAdded, UserRemoved }
 An enum of the different contact list event types.


Public Methods

 ContactListEvent (ContactRef c)
 Base constructor for contact list events.

virtual ~ContactListEvent ()
 Destructor for ContactListEvent.

ContactRef getContact () const
 get the contact

unsigned int getUIN () const
 get the uin of the contact.

virtual EventType getType () const=0
 get the type of ContactListEvent


Protected Attributes

ContactRef m_contact
 The contact this event refers to.


Detailed Description

Base class for Contact List related events.


Constructor & Destructor Documentation

ICQ2000::ContactListEvent::ContactListEvent ContactRef    c
 

Base constructor for contact list events.

Parameters:
c  the contact


Member Function Documentation

ContactRef ICQ2000::ContactListEvent::getContact   const
 

get the contact

Returns:
the contact

virtual EventType ICQ2000::ContactListEvent::getType   const [pure virtual]
 

get the type of ContactListEvent

Returns:
type of the ContactListEvent

Implemented in ICQ2000::UserAddedEvent, and ICQ2000::UserRemovedEvent.

unsigned int ICQ2000::ContactListEvent::getUIN   const
 

get the uin of the contact.

This could be done just as easily, with getContact()->getUIN(), provided for convenience.

Returns:


The documentation for this class was generated from the following files:
Generated on Sat Jul 20 16:59:08 2002 for libicq2000 by doxygen1.2.16