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

MsnSwitchboardConnection Class Reference

#include <msnswitchboardconnection.h>

Inheritance diagram for MsnSwitchboardConnection:

MsnConnection

List of all members.


Detailed Description

A connection to a switchboard server, over which chats are conducted.
Author:
Mike K. Bennett

Definition at line 47 of file msnswitchboardconnection.h.


Public Types

enum  ApplicationType { GNOMEMEETING, FILETRANSFER, MSNREMOTEDESKTOP, VOICECONVERSATION }
enum  PROXYSTATE { PROXYCONNECTED, PROXYERROR, PROXYFAIL, PROXYHOSTCONNECTED }

Public Slots

void giveAppCommand (QString cookie, QString command)
void sendChatMessage (QString text)
void sendTypingMessage ()

Signals

void applicationsAborted ()
void chatMessage (QString handle, QString name, QString text, QFont font, QString color, QString nameColor)
void contactJoinedChat (QString handle, QString friendlyName)
void contactLeftChat (QString handle)
void contactTyping (QString handle, QString friendlyName)
void disconnected ()
void messageReceived (const QString &msg)
 Signal that a message was received on the connection.
void messageSent (const QString &msg)
 Signal that a message was sent out on the connection.
void showAppMessage (QString message)
void statusMessage (QString message, int connectStatus)
void systemMessage (QString message)

Public Member Functions

void closeConnection ()
void closeConnectionLater (bool autoDelete=false)
QString getCaption ()
QStringList getContactList () const
bool initialize ()
void inviteContact (QString handle)
bool isConnected () const
bool isEmpty () const
bool isExclusiveChatWithContact (const QString &handle) const
void startApp (ApplicationType type)
void startChat (ChatInformation *chatInfo)
void startFileTransfer (const QString &handle)
void startPictureDownload (Contact *contact)

Protected Types

enum  AckType { ACK_NONE, ACK_NAK_ONLY, ACK_ALWAYS, ACK_ALWAYS_P2P }

Protected Slots

void connectionSuccess ()

Protected Member Functions

void addPercents (QString &word) const
bool connectToServer (const QString &server, const int &port)
void disconnectFromServer (bool isTransfer=false)
QString getLocalIp () const
bool getSendPings () const
QString getValueFromMessage (const QString &field, const QString &message, bool goToEndOfLine=false) const
virtual void proxyFailed ()
void removePercents (QString &word) const
int sendCommand (const QString &prefix, const QString &text="\r\n")
int sendMimeMessage (AckType ackType, const MimeMessage &message)
void setSendPings (bool sendPings)

Protected Attributes

CurrentAccountcurrentAccount_

Private Slots

void contactChangedMsnObject (Contact *contact)
void fileTransferred (QString filename)
void forwardAppInitMessage (QString message)
void forwardAppMessage (QString message)
void forwardSystemMessage (QString message)
void pictureReceived (const QString &handle, const QString &msnObject)
void putMimeApplicationMsg (const MimeMessage &message)
void putP2PApplicationMsg (const MimeMessage &message)
void terminateMimeApplication (Application *app)
void terminateP2PApplication (Application *app)

Private Member Functions

void abortApplications ()
void connectApplication (P2PApplication *app)
void connectApplication (MimeApplication *app)
void contactJoined (QString &handle, QString &friendlyName)
void contactLeft (const QString &handle)
void convertHtmlColorToMsnColor (QString &color) const
void convertMsnColorToHtmlColor (QString &color) const
P2PApplicationcreateApplication (const QString &sendingContact, const P2PMessage &message)
ApplicationcreateApplication (const QString &sendingContact, const MimeMessage &message)
void detachContacts ()
ApplicationgetApplication (QString cookie) const
QString getContactFriendlyNameByHandle (const QString &handle)
void getFontAndColorFromMessage (QFont &font, QString &color, const MimeMessage &message) const
void getFontColorFromMessageFormat (QString &color, const MimeMessage &message) const
void getFontFromMessageFormat (QFont &font, const MimeMessage &message) const
QString getFontValueFromMessageFormat (const QString &field, const QString &message) const
VoiceConversation * getVoiceConversation () const
void gotAck (const QStringList &command)
void gotBye (const QStringList &command)
void gotIro (const QStringList &command)
void gotJoi (const QStringList &command)
void gotNak (const QStringList &command)
void gotOut (const QStringList &command)
void gotUsr (const QStringList &command)
bool isContactInChat (const QString &handle) const
void parseCommand (const QStringList &command)
void parseMessage (const QStringList &command, const MimeMessage &message)
void parseMimeAppMessage (const QString &sendingContact, const MimeMessage &message)
void parseP2PAppMessage (const QString &sendingContact, const P2PMessage &message)
void rejectMimeApplication (const QString &cookie, bool notInstalled=false)
void sendMimeMessageWhenReady (AckType ackType, const MimeMessage &message)
void sendPendingMessages ()
void storeMessageForAcknowledgement (int ack, AckType ackType, const MimeMessage &message)
void terminateApplication (Application *app)

Private Attributes

bool abortingApplications_
QValueList< QString > acks_
bool autoDeleteLater_
ChatInformationchatInfo_
bool closingConnection_
bool contactsConnected_
QValueList< QString > contactsInChat_
bool initialized_
QValueList< QString > messages_
QPtrList< MimeApplicationmimeApplications_
QPtrList< P2PApplicationp2pApplications_
QPtrList< QPair< AckType,
MimeMessage > > 
pendingMessages_

Friends

class KMessTest

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

Generated by  Doxygen 1.6.0   Back to index