diff options
author | Michele Calgaro <[email protected]> | 2014-03-29 00:54:51 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2014-03-29 00:54:51 +0900 |
commit | 0486034738b850c210b1389a8c3ae51a6b9fad23 (patch) | |
tree | b1e3a4dbf9673b5e0031e8225e88f5dd490585a5 /kopete/protocols/msn/dispatcher.h | |
parent | 4bd7620e88d450995b78c201f9e7d9181f62ea6a (diff) | |
download | tdenetwork-0486034738b850c210b1389a8c3ae51a6b9fad23.tar.gz tdenetwork-0486034738b850c210b1389a8c3ae51a6b9fad23.zip |
Removed MSN support across Kopete by removing the MSN protocol and the netmeeting plugin.
This resolves bug 1547.
Diffstat (limited to 'kopete/protocols/msn/dispatcher.h')
-rw-r--r-- | kopete/protocols/msn/dispatcher.h | 108 |
1 files changed, 0 insertions, 108 deletions
diff --git a/kopete/protocols/msn/dispatcher.h b/kopete/protocols/msn/dispatcher.h deleted file mode 100644 index 65b8dd3d..00000000 --- a/kopete/protocols/msn/dispatcher.h +++ /dev/null @@ -1,108 +0,0 @@ -/* - dispatcher.h - msn p2p protocol - - Copyright (c) 2003-2005 by Olivier Goffart <ogoffart@ kde.org> - Copyright (c) 2005 by Gregg Edghill <[email protected]> - - ************************************************************************* - * * - * 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 DISPATCHER_H -#define DISPATCHER_H - -#include <tqobject.h> -#include <tqstringlist.h> - -#include "kopete_export.h" - -#include "p2p.h" -#include "messageformatter.h" -#include "incomingtransfer.h" -#include "outgoingtransfer.h" - - -namespace Kopete { class Contact; } -class MSNSwitchBoardSocket; - -/** -@author Kopete Developers -*/ -namespace P2P{ - class IncomingTransfer; - class OutgoingTransfer; - - class KOPETE_EXPORT Dispatcher : public TQObject - { Q_OBJECT - - public: - Dispatcher(TQObject *parent, const TQString& contact, const TQStringList &ip); - ~Dispatcher(); - - void detach(TransferContext* transfer); - TQString localContact(); - void requestDisplayIcon(const TQString& from, const TQString& msnObject); - void sendFile(const TQString& path, TQ_INT64 fileSize, const TQString& to); - void sendImage(const TQString& fileName, const TQString& to); - TQString m_pictureUrl; - TQMap<TQString, TQString> objectList; - -#if MSN_WEBCAM - void startWebcam(const TQString &myHandle, const TQString &msgHandle, bool wantToReceive); -#endif - - - public slots: - void slotReadMessage(const TQString &from, const TQByteArray& stream); - void messageAcknowledged(unsigned int correlationId, bool fullReceive); - - signals: - void sendCommand(const TQString &cmd, const TQString &args = TQString(), bool addId = true, const TQByteArray &body = TQByteArray(), bool binary=false); - void displayIconReceived(KTempFile* file, const TQString& msnObject); - void incomingTransfer(const TQString& from, const TQString& fileName, TQ_INT64 fileSize); - - private: - class CallbackChannel - { - public: - CallbackChannel(MSNSwitchBoardSocket *switchboard); - ~CallbackChannel(); - - TQ_UINT32 send(const TQByteArray& stream); - - private: - MSNSwitchBoardSocket *m_switchboard; - }; - - public: - CallbackChannel* callbackChannel(); - /** - * IP's of this compiter, the first one is the one seen by the server. - */ - TQStringList localIp() { return m_ip; } - - - private: - void dispatch(const P2P::Message& message); - Kopete::Contact* getContactByAccountId(const TQString& accountId); - - P2P::MessageFormatter m_messageFormatter; - TQMap<TQ_UINT32, P2P::TransferContext*> m_sessions; - TQMap<TQ_UINT32, P2P::Message> m_messageBuffer; - TQString m_contact; - CallbackChannel *m_callbackChannel; - TQStringList m_ip; - - friend class P2P::TransferContext; - friend class P2P::IncomingTransfer; - friend class P2P::OutgoingTransfer; - }; -} - -#endif |