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

MsnNotificationConnection Class Reference

#include <msnnotificationconnection.h>

Inheritance diagram for MsnNotificationConnection:

MsnConnection

List of all members.


Detailed Description

The connection to the msn notification server, which handles login and contact list type functions.

Author:
Mike K. Bennett

Definition at line 42 of file msnnotificationconnection.h.


Public Types

enum  PROXYSTATE { PROXYCONNECTED, PROXYERROR, PROXYFAIL, PROXYHOSTCONNECTED }

Public Slots

void addExistingContact (QString handle)
void addGroup (QString name)
void addNewContact (QString handle)
void allowContact (QString handle)
void blockContact (QString handle)
void changedMsnObject ()
void changeFriendlyName (QString handle, QString newName)
void moveContact (QString handle, QString fromGroupId, QString toGroupId)
void removeContact (QString handle, bool block=true)
void removeGroup (QString id)
void renameGroup (QString id, QString newName)
void requestChat (QString handle)
void unblockContact (QString handle)

Signals

void connected ()
void contactAddedUser (const Contact *contact)
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 newEmail (QString sender, QString subject, bool inInbox, QString command, QString folder, QString url)
void startChat (ChatInformation *chatInfo)
void statusMessage (QString message, int connectStatus)

Public Member Functions

void changeStatus (const QString &newStatus)
void closeConnection ()
const ContactListgetContactList () const
bool initialize ()
bool isConnected () const
bool openConnection ()
void saveProperties (KConfig *config)

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
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 checkLogin ()
void sslLoginFailed ()
void sslLoginIncorrect ()
void sslLoginSucceeded (QString authentication)

Private Member Functions

void addContact (QString handle, QString list, QString groupId="")
SslLoginHandlercreateLoginHandler ()
void dotNetMessage (QString message)
void goOnline ()
void gotAdd (const QStringList &command)
void gotAdg (const QStringList &command)
void gotChg (const QStringList &command)
void gotChl (const QStringList &command)
void gotCvr (const QStringList &command)
void gotFln (const QStringList &command)
void gotIln (const QStringList &command)
void gotInf (const QStringList &command)
void gotLsg (const QStringList &command)
void gotLst (const QStringList &command)
void gotNln (const QStringList &command)
void gotOut (const QStringList &command)
void gotRea (const QStringList &command)
void gotReg (const QStringList &command)
void gotRem (const QStringList &command)
void gotRmg (const QStringList &command)
void gotRng (const QStringList &command)
void gotSyn (const QStringList &command)
void gotUrl (const QStringList &command)
void gotUsr (const QStringList &command)
void gotVer (const QStringList &command)
void gotXfr (const QStringList &command)
void parseCommand (const QStringList &command)
void parseMessage (const QStringList &command, const MimeMessage &message)
void putVer ()
void removeContact (QString handle, QString list, QString groupId="")

Private Attributes

ContactListcontactList_
bool initialized_
QTimer loginTimer_
int movingAck_
int movingSource_
int noContacts_
QPtrList< ChatInformationopenChats_
SslLoginHandlersslLoginHandler_
int totalNoContacts_

Static Private Attributes

static const int timeoutDuration_ = 60000

Friends

class KMessTest

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

Generated by  Doxygen 1.6.0   Back to index