[prev in list] [next in list] [prev in thread] [next in thread]
List: kopete-devel
Subject: Re: [Kopete-devel] KGenericFactory
From: Martijn Klingens <klingens () kde ! org>
Date: 2002-06-29 19:36:56
[Download RAW message or body]
On Saturday 29 June 2002 21:14, Duncan Mac-Vicar Prett wrote:
> What are the steps to follow? I dont know anything about the new plugin
> system
----
martijn@kenny:~/src/kde3/kdenonbeta/kopete/protocols/msn > cvs di -r1.52
-r1.53 msnprotocol.h
Index: msnprotocol.h
===================================================================
RCS file: /home/kde/kdenonbeta/kopete/protocols/msn/msnprotocol.h,v
retrieving revision 1.52
retrieving revision 1.53
diff -u -p -r1.52 -r1.53
--- msnprotocol.h 2002/06/02 20:51:42 1.52
+++ msnprotocol.h 2002/06/13 19:53:45 1.53
@@ -44,12 +44,12 @@ class StatusBarIcon;
/**
* @author duncan
*/
-class MSNProtocol : public QObject, public KopeteProtocol
+class MSNProtocol : public KopeteProtocol
{
Q_OBJECT
public:
- MSNProtocol();
+ MSNProtocol( QObject *parent, const char *name, const QStringList
&args );
~MSNProtocol();
static const MSNProtocol *protocol();
martijn@kenny:~/src/kde3/kdenonbeta/kopete/protocols/msn > cvs di -r1.84
-r1.85 msnprotocol.cpp
Index: msnprotocol.cpp
===================================================================
RCS file: /home/kde/kdenonbeta/kopete/protocols/msn/msnprotocol.cpp,v
retrieving revision 1.84
retrieving revision 1.85
diff -u -p -r1.84 -r1.85
--- msnprotocol.cpp 2002/06/12 17:19:54 1.84
+++ msnprotocol.cpp 2002/06/13 19:53:45 1.85
@@ -39,7 +39,13 @@
#include "newuserimpl.h"
#include "statusbaricon.h"
-MSNProtocol::MSNProtocol(): QObject(0, "MSNProtocol"), KopeteProtocol()
+#include <kgenericfactory.h>
+
+K_EXPORT_COMPONENT_FACTORY( kopete_msn, KGenericFactory<MSNProtocol> );
+
+MSNProtocol::MSNProtocol( QObject *parent, const char *name,
+ const QStringList & /* args */ )
+: KopeteProtocol( parent, name )
{
if( s_protocol )
kdDebug() << "MSNProtocol::MSNProtocol: WARNING: s_protocol
already defined!" << endl;
----
Also remove protocol.cpp/plugin.cpp and update Makefile.am.
Shouldn't be too hard ;-)
Martijn
_______________________________________________
Kopete-devel mailing list
Kopete-devel@mail.kde.org
http://mail.kde.org/mailman/listinfo/kopete-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic