diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | bcb704366cb5e333a626c18c308c7e0448a8e69f (patch) | |
tree | f0d6ab7d78ecdd9207cf46536376b44b91a1ca71 /kopete/protocols/winpopup/wpcontact.h | |
download | tdenetwork-bcb704366cb5e333a626c18c308c7e0448a8e69f.tar.gz tdenetwork-bcb704366cb5e333a626c18c308c7e0448a8e69f.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kopete/protocols/winpopup/wpcontact.h')
-rw-r--r-- | kopete/protocols/winpopup/wpcontact.h | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/kopete/protocols/winpopup/wpcontact.h b/kopete/protocols/winpopup/wpcontact.h new file mode 100644 index 00000000..343e07f7 --- /dev/null +++ b/kopete/protocols/winpopup/wpcontact.h @@ -0,0 +1,86 @@ +/*************************************************************************** + wpcontact.h - description + ------------------- + begin : Fri Apr 12 2002 + copyright : (C) 2002 by Gav Wood + email : gav@indigoarchive.net + ***************************************************************************/ + +/*************************************************************************** + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + ***************************************************************************/ + +#ifndef WPCONTACT_H +#define WPCONTACT_H + +// KDE Includes +#include <kaction.h> + +// Qt Includes +//#include <qvaluestack.h> +#include <qdatetime.h> +#include <qptrlist.h> +#include <qtimer.h> +#include <qstringlist.h> + +// Kopete Includes +#include "kopetecontact.h" +#include "kopetecontactlist.h" +#include "kopetechatsessionmanager.h" +#include "kopetechatsession.h" +#include "kopetemessage.h" + +// Local Includes +#include "wpprotocol.h" +#include "wpuserinfo.h" + +class QTimer; +class QListView; +class QListViewItem; +class KPopupMenu; +class KAction; +namespace Kopete { class MetaContact; } + +class WPContact: public Kopete::Contact +{ + Q_OBJECT + +public: + WPContact(Kopete::Account *account, const QString &userId, const QString &fullName, Kopete::MetaContact *metaContact); + +// virtual bool isOnline() const; + virtual bool isReachable(); + virtual QPtrList<KAction> *customContextMenuActions(); + virtual Kopete::ChatSession *manager(Kopete::Contact::CanCreateFlags = Kopete::Contact::CannotCreate); + virtual void serialize(QMap<QString, QString> &serializedData, QMap<QString, QString> &addressBookData); + +public slots: + virtual void slotUserInfo(); + void slotCheckStatus(); // the call back for the checkStatus timer + void slotNewMessage(const QString &Body, const QDateTime &Arrival); + +private slots: + void slotChatSessionDestroyed(); + void slotSendMessage(Kopete::Message &message); + void slotCloseUserInfoDialog(); // Called when the userinfo dialog is getting closed + +private: + bool myWasConnected; // true if protocol connected at last check + + QTimer checkStatus; // checks the status of this contact every second or so +// KActionCollection *myActionCollection; + // holds all the protocol specific actions (not many!) + Kopete::ChatSession *m_manager; + // holds the two message managers - one for email and one for chat + WPUserInfo *m_infoDialog; +}; + +#endif + +// vim: set noet ts=4 sts=4 sw=4: +// kate: tab-width 4; indent-width 4; replace-trailing-space-save on; |