diff options
author | Slávek Banko <[email protected]> | 2021-06-29 13:17:37 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2021-07-01 12:27:19 +0200 |
commit | 186deab80cc9a4b742027d74f8025e15bbd334ca (patch) | |
tree | b6995d55884fdb972279b2942db3cb584e7c56b4 /src/otrplugin.h | |
parent | d4af338ad1d4607aa3820e64967d024b772ea212 (diff) | |
download | kopete-otr-186deab80cc9a4b742027d74f8025e15bbd334ca.tar.gz kopete-otr-186deab80cc9a4b742027d74f8025e15bbd334ca.zip |
Create a custom OTRPluginFactory object instead of using the KGenericFactory
template. This prevents an unwanted creation of a hidden second instance
if the library is built with enabled hidden visibility.
This resolves issue #3.
Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'src/otrplugin.h')
-rw-r--r-- | src/otrplugin.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/otrplugin.h b/src/otrplugin.h index 14d582b..23943aa 100644 --- a/src/otrplugin.h +++ b/src/otrplugin.h @@ -19,7 +19,7 @@ #define OTRPLUGIN_H -#include "kdebug.h" +#include <kdebug.h> #include <kopeteplugin.h> #include <kopetemessagehandler.h> @@ -68,13 +68,12 @@ public: class KDE_EXPORT OTRPlugin : public Kopete::Plugin { Q_OBJECT - public: static OTRPlugin *plugin(); - OTRPlugin( TQObject *parent, const char *name, const TQStringList &args ); + OTRPlugin( TDEInstance *instance, TQObject *parent, const char *name, const TQStringList &args ); ~OTRPlugin(); void emitGoneSecure( Kopete::ChatSession *session, int status ); @@ -113,7 +112,6 @@ private: signals: void goneSecure( Kopete::ChatSession *session, int state ); - }; #endif |