Commit 8d7f8792 authored by Alex Merry's avatar Alex Merry

New plugin system


svn path=/trunk/KDE/kdepimlibs/; revision=708143
parent ce3d68fe
......@@ -20,15 +20,16 @@
#include "configmodule.h"
#include "transportmanagementwidget.h"
#include <kgenericfactory.h>
#include <kpluginfactory.h>
#include <kpluginloader.h>
#include <qboxlayout.h>
using namespace MailTransport;
typedef KGenericFactory<ConfigModule, QWidget> MailTransportConfigFactory;
K_EXPORT_COMPONENT_FACTORY( kcm_mailtransport, MailTransportConfigFactory( "mailtrasnport" ) )
K_PLUGIN_FACTORY(MailTransportConfigFactory, registerPlugin<ConfigModule>();)
K_EXPORT_PLUGIN(MailTransportConfigFactory("mailtrasnport"))
ConfigModule::ConfigModule( QWidget * parent, const QStringList & args ) :
ConfigModule::ConfigModule( QWidget * parent, const QVariantList & args ) :
KCModule( MailTransportConfigFactory::componentData(), parent, args )
{
setButtons( 0 );
......
......@@ -33,7 +33,7 @@ class ConfigModule : public KCModule
{
public:
explicit ConfigModule( QWidget *parent = 0,
const QStringList &args = QStringList() );
const QVariantList &args = QVariantList() );
};
}
......
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