summaryrefslogtreecommitdiffstats
path: root/src/otrplugin.h
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2021-06-29 13:17:37 +0200
committerSlávek Banko <slavek.banko@axis.cz>2021-07-01 12:27:39 +0200
commit036880495c584526b536b08589620290a9171f8c (patch)
treef10637d949527f8cf87d565092b84848b8891c8e /src/otrplugin.h
parentf389a60aad6a9d0ca5cd648f4743bfa1c30ed904 (diff)
downloadkopete-otr-03688049.tar.gz
kopete-otr-03688049.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 <slavek.banko@axis.cz> (cherry picked from commit 186deab80cc9a4b742027d74f8025e15bbd334ca)
Diffstat (limited to 'src/otrplugin.h')
-rw-r--r--src/otrplugin.h6
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