/***************************************************************************
 *   Copyright (C) 2003 by liuspider                                       *
 *   liuspider@users.sourceforge.net                                       *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 ***************************************************************************/
#include "scimqtimmsettingplugin.h"
#include "qtimm.h"
#include "qtimmui.h"

#include <kgenericfactory.h>
#include <klocale.h>

typedef KGenericFactory<ScimQtImmSettingPlugin> ScimQtImmSettingPluginLoaderFactory;

K_EXPORT_COMPONENT_FACTORY( kcm_skimplugin_scim_qtimm, 
    ScimQtImmSettingPluginLoaderFactory( "kcm_skimplugin_scim_qtimm" ) )

class ScimQtImmSettingPlugin::ScimQtImmSettingPluginPrivate {
public:
    QtImmoduleSettingUI * ui;
};

ScimQtImmSettingPlugin::ScimQtImmSettingPlugin(QWidget *parent, 
  const char */*name*/, const QStringList &args)
 : KAutoCModule( ScimQtImmSettingPluginLoaderFactory::instance(), 
     parent, args, QtImmoduleConfig::self() ),
   d(new ScimQtImmSettingPluginPrivate)
{
    d->ui = new QtImmoduleSettingUI(this);
    setMainWidget(d->ui);
}

#include "scimqtimmsettingplugin.moc"
