Logo Search packages:      
Sourcecode: kmess version File versions  Download package

ContactBase Class Reference
[contact]

#include <contactbase.h>

Inheritance diagram for ContactBase:

Contact InvitedContact

List of all members.


Detailed Description

Base class of a contact, used for polymorphism with invited contacts.

This class only stores the generic properties such as account handle, and friendly name. The remaining information is available in the Contact or InvitedContact class. The online state is determined with the getStatus() method, which is implemented in both derived classes.

For proper handling of the peer-to-peer invitations, this class also stores the MsnSwitchboardConnection sessions the contact is active in. The ApplicationList contains all application invitations started with the contact. These classes are controlled from the ChatMaster class.

Author:
Mike K. Bennett

Definition at line 45 of file contactbase.h.


Public Types

enum  MsnClientCapabilities {
  MSN_CAP_WIN_MOBILE = 0x01, MSN_CAP_INK_GIF = 0x04, MSN_CAP_INK_ISF = 0x08, MSN_CAP_VIDEO_CHAT = 0x10,
  MSN_CAP_MULTI_PACKET = 0x20, MSN_CAP_MSN_MOBILE = 0x40, MSN_CAP_MSN_DIRECT = 0x80, MSN_CAP_WEB_CLIENT = 0x200,
  MSN_CAP_MSO_CLIENT = 0x800, MSN_CAP_LIVE_SPACE = 0x1000, MSN_CAP_DIRECT_IM = 0x4000, MSN_CAP_WINKS = 0x8000,
  MSN_CAP_SEARCH = 0x10000, MSN_CAP_BOT = 0x20000, MSN_CAP_VOICE_IM = 0x40000, MSN_CAP_SECURE_IM = 0x80000,
  MSN_CAP_SIP_INVITE = 0x100000, MSN_CAP_FOLDER_SHARING = 0x400000, MSN_CAP_MSN60 = 0x10000000, MSN_CAP_MSN61 = 0x20000000,
  MSN_CAP_MSN62 = 0x30000000, MSN_CAP_MSN70 = 0x40000000, MSN_CAP_MSN75 = 0x50000000, MSN_CAP_MSN80 = 0x60000000
}
 The values for the bitwise client capabilities flag returned by getCapabilities(). More...

Signals

void changedFriendlyName ()
void changedPicture ()
void changedStatus ()
void leftAllChats (ContactBase *contact)

Public Member Functions

void addEmoticonDefinition (const QString &emoticonCode, const QString &msnObjectDataHash)
void addEmoticonFile (const QString &msnObjectDataHash, const QString &filename)
void addSwitchboardConnection (const MsnSwitchboardConnection *connection)
ApplicationListcreateApplicationList ()
ApplicationListgetApplicationList () const
uint getCapabilities () const
QString getContactDefaultPicturePath () const
virtual QString getContactPicturePath () const =0
const QString & getEmoticonCode (const QString &msnObjectDataHash) const
const QRegExp & getEmoticonPattern () const
const QMap< QString, QString > & getEmoticonReplacements () const
virtual QString getFriendlyName () const
QString getHandle () const
const QRegExp & getPendingEmoticonPattern () const
virtual QString getStatus () const =0
const QPtrList
< MsnSwitchboardConnection
getSwitchboardConnections () const
bool hasApplicationList () const
bool hasP2PSupport (MsnClientCapabilities minimalVersion=MSN_CAP_MSN60) const
bool isOffline () const
bool isOnline () const
void removeSwitchboardConnection (const MsnSwitchboardConnection *connection, bool userInitiated=false)
void setCapabilities (uint capabilities)

Protected Member Functions

 ContactBase (QString handle, QString friendlyName, uint capabilities=0)

Protected Attributes

uint capabilities_
QMap< QString, QString > customEmoticons_
QRegExp emoticonRegExp_
QString friendlyName_
QString handle_
QMap< QString, QString > pendingEmoticons_
QRegExp pendingRegExp_
QString status_

Private Slots

void slotApplicationListAborted ()

Private Attributes

ApplicationListapplicationList_
QPtrList
< MsnSwitchboardConnection
chatSessions_

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index