Commit e307c8ec authored by R. Harish Navnit's avatar R. Harish Navnit Committed by Pali Rohár

Modify kopete Plugin, ViewPlugins and ChatWindowPlugins to drop componentData() function call

parent 2b97a12b
......@@ -46,7 +46,7 @@
#include <ktoggleaction.h>
#include <kconfig.h>
#include <kdebug.h>
#include <kglobalaccel.h>
//#include <KGlobalAccel/kglobalaccel.h>
#include <klocale.h>
#include <kiconloader.h>
#include <kmessagebox.h>
......
......@@ -39,6 +39,13 @@ Plugin::Plugin( const KAboutData &instance, QObject *parent )
KSettings::Dispatcher::registerComponent( instance.componentName(), this, "settingsChanged" );
}
Plugin::Plugin( QObject *parent )
: QObject( parent ), KXMLGUIClient(), d(new Private)
{
setObjectName(QLatin1String("kopete_plugin"));
KSettings::Dispatcher::registerComponent(QLatin1String("kopete_plugin"), this, "settingsChanged");
}
Plugin::~Plugin()
{
delete d;
......
......@@ -92,6 +92,7 @@ class KOPETE_EXPORT Plugin : public QObject, public KXMLGUIClient
public:
Plugin( const KAboutData &instance, QObject *parent );
Plugin( QObject *parent );
virtual ~Plugin();
/**
......
......@@ -22,6 +22,12 @@ Kopete::ViewPlugin::ViewPlugin( const KAboutData &instance, QObject *parent ) :
}
Kopete::ViewPlugin::ViewPlugin( QObject* parent ): Plugin( parent )
{
}
void Kopete::ViewPlugin::aboutToUnload()
{
emit readyForUnload();
......
......@@ -44,6 +44,7 @@ class KOPETE_EXPORT ViewPlugin : public Plugin
* @brief Create and initialize the plugin
*/
explicit ViewPlugin( const KAboutData &instance, QObject *parent = 0L );
explicit ViewPlugin( QObject *parent = 0L );
/**
* @brief Creates a view to be associated with the passed in session
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment