From 904c1b13f81172f1b0137d66533442415a285757 Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Wed, 29 Aug 2007 02:45:20 +0000 Subject: [PATCH] move animator to the new plugin system svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=705975 --- animator.cpp | 3 +-- animator.h | 7 +++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/animator.cpp b/animator.cpp index 1c40b4bd7..b5a4a5a7d 100644 --- a/animator.cpp +++ b/animator.cpp @@ -25,11 +25,10 @@ namespace Plasma { -Animator::Animator(QObject *parent, const QStringList& list) +Animator::Animator(QObject *parent) : QObject(parent), d(0) { - Q_UNUSED(list) } Animator::~Animator() diff --git a/animator.h b/animator.h index c7ec2a337..aa008159c 100644 --- a/animator.h +++ b/animator.h @@ -39,7 +39,7 @@ class PLASMA_EXPORT Animator : public QObject Q_OBJECT public: - explicit Animator(QObject *parent = 0, const QStringList& list = QStringList()); + explicit Animator(QObject *parent = 0); ~Animator(); // Parameter definitions @@ -75,8 +75,7 @@ private: } // Plasma namespace #define K_EXPORT_PLASMA_ANIMATOR(libname, classname) \ - K_EXPORT_COMPONENT_FACTORY( \ - plasma_animator_##libname, \ - KGenericFactory("plasma_animator_" #libname)) +K_PLUGIN_FACTORY(factory, registerPlugin();) \ +K_EXPORT_PLUGIN(factory("plasma_animator_" #libname)) #endif // multiple inclusion guard