summaryrefslogtreecommitdiffstats
path: root/kopete/plugins/netmeeting/netmeetingplugin.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2014-03-29 00:54:51 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2014-03-29 00:54:51 +0900
commit0486034738b850c210b1389a8c3ae51a6b9fad23 (patch)
treeb1e3a4dbf9673b5e0031e8225e88f5dd490585a5 /kopete/plugins/netmeeting/netmeetingplugin.cpp
parent4bd7620e88d450995b78c201f9e7d9181f62ea6a (diff)
downloadtdenetwork-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/plugins/netmeeting/netmeetingplugin.cpp')
-rw-r--r--kopete/plugins/netmeeting/netmeetingplugin.cpp91
1 files changed, 0 insertions, 91 deletions
diff --git a/kopete/plugins/netmeeting/netmeetingplugin.cpp b/kopete/plugins/netmeeting/netmeetingplugin.cpp
deleted file mode 100644
index 17dfcc0b..00000000
--- a/kopete/plugins/netmeeting/netmeetingplugin.cpp
+++ /dev/null
@@ -1,91 +0,0 @@
-/*
- netmeetingplugin.cpp
-
- Copyright (c) 2003-2004 by Olivier Goffart <ogoffart @ kde.org>
-
- *************************************************************************
- * *
- * 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. *
- * *
- *************************************************************************
-*/
-
-#include "netmeetingplugin.h"
-
-#include <kdebug.h>
-#include <kgenericfactory.h>
-#include <tdeaction.h>
-#include <tdeversion.h>
-#include <tdeaboutdata.h>
-
-#include "kopetepluginmanager.h"
-#include "kopetechatsessionmanager.h"
-
-#include "msnchatsession.h"
-#include "msnprotocol.h"
-#include "msncontact.h"
-
-#include "netmeetinginvitation.h"
-#include "netmeetingguiclient.h"
-
-
-static const TDEAboutData aboutdata("kopete_netmeeting", I18N_NOOP("NetMeeting") , "1.0" );
-K_EXPORT_COMPONENT_FACTORY( kopete_netmeeting, KGenericFactory<NetMeetingPlugin>( &aboutdata ) )
-
-NetMeetingPlugin::NetMeetingPlugin( TQObject *parent, const char *name, const TQStringList &/*args*/ )
-: Kopete::Plugin( TDEGlobal::instance(), parent, name )
-{
- if(MSNProtocol::protocol())
- slotPluginLoaded(MSNProtocol::protocol());
- else
- connect(Kopete::PluginManager::self() , TQT_SIGNAL(pluginLoaded(Kopete::Plugin*) ), this, TQT_SLOT(slotPluginLoaded(Kopete::Plugin*)));
-
-
- connect( Kopete::ChatSessionManager::self(), TQT_SIGNAL( chatSessionCreated( Kopete::ChatSession * )) , TQT_SLOT( slotNewKMM( Kopete::ChatSession * ) ) );
- //Add GUI action to all already existing kmm (if the plugin is launched when kopete already rining)
- TQValueList<Kopete::ChatSession*> sessions = Kopete::ChatSessionManager::self()->sessions();
- for (TQValueListIterator<Kopete::ChatSession*> it= sessions.begin(); it!=sessions.end() ; ++it)
- {
- slotNewKMM(*it);
- }
-}
-
-NetMeetingPlugin::~NetMeetingPlugin()
-{
-
-}
-
-void NetMeetingPlugin::slotPluginLoaded(Kopete::Plugin *p)
-{
- if(p->pluginId()=="MSNProtocol")
- {
- connect( p , TQT_SIGNAL(invitation(MSNInvitation*& , const TQString & , long unsigned int , MSNChatSession* , MSNContact* )) ,
- this, TQT_SLOT( slotInvitation(MSNInvitation*& , const TQString & , long unsigned int , MSNChatSession* , MSNContact* )));
- }
-}
-
-void NetMeetingPlugin::slotNewKMM(Kopete::ChatSession *KMM)
-{
- MSNChatSession *msnMM=dynamic_cast<MSNChatSession*>(KMM);
- if(msnMM)
- {
- connect(this , TQT_SIGNAL( destroyed(TQObject*)) ,
- new NetMeetingGUIClient(msnMM)
- , TQT_SLOT(deleteLater()));
- }
-}
-
-
-void NetMeetingPlugin::slotInvitation(MSNInvitation*& invitation, const TQString &bodyMSG , long unsigned int /*cookie*/ , MSNChatSession* msnMM , MSNContact* c )
-{
- if(!invitation && bodyMSG.contains(NetMeetingInvitation::applicationID()))
- {
- invitation=new NetMeetingInvitation(true,c,msnMM);
- invitation->parseInvitation(bodyMSG);
- }
-}
-
-#include "netmeetingplugin.moc"