* cleanup includes for external usage

* include KGenericFactory so subclasses don't have to
* move the plugin macro to Animator where it belongs

svn path=/trunk/KDE/kdebase/workspace/lib/plasma/; revision=673394
This commit is contained in:
Aaron J. Seigo 2007-06-10 06:02:38 +00:00
parent 6900270998
commit eb330b2a79
2 changed files with 9 additions and 8 deletions

View File

@ -23,7 +23,9 @@
#include <QRegion> #include <QRegion>
#include <QStringList> #include <QStringList>
#include <plasma_export.h> #include <KGenericFactory>
#include <plasma/plasma_export.h>
class QGraphicsItem; class QGraphicsItem;
@ -55,4 +57,9 @@ public:
} // Plasma namespace } // Plasma namespace
#define K_EXPORT_PLASMA_ANIMATOR(libname, classname) \
K_EXPORT_COMPONENT_FACTORY( \
plasma_animator_##libname, \
KGenericFactory<classname>("plasma_animator_" #libname))
#endif // multiple inclusion guard #endif // multiple inclusion guard

View File

@ -22,7 +22,7 @@
#include <QImage> #include <QImage>
#include <QObject> #include <QObject>
#include <plasma_export.h> #include <plasma/plasma_export.h>
class QGraphicsItem; class QGraphicsItem;
@ -82,11 +82,5 @@ private:
} // namespace Plasma } // namespace Plasma
#define K_EXPORT_PLASMA_PHASER(libname, classname) \
K_EXPORT_COMPONENT_FACTORY( \
plasma_animator_##libname, \
KGenericFactory<classname>("plasma_animator_" #libname))
#endif #endif