00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef KIPI_PLUGIN_H
00024 #define KIPI_PLUGIN_H
00025
00026
00027
00028 #include <qobject.h>
00029
00030
00031
00032 #include <kaction.h>
00033
00034
00035
00036 #include "libkipi/interface.h"
00037
00038 class KInstance;
00039
00040 namespace KIPI
00041 {
00042 enum Category
00043 {
00044 IMAGESPLUGIN = 0,
00045 EFFECTSPLUGIN,
00046 TOOLSPLUGIN,
00047 IMPORTPLUGIN,
00048 EXPORTPLUGIN,
00049 BATCHPLUGIN,
00050 COLLECTIONSPLUGIN
00051 };
00052
00053 class Plugin : public QObject
00054 {
00055 public:
00056 Plugin( KInstance* instance, QObject *parent, const char* name);
00057 virtual ~Plugin();
00058
00059 virtual void setup( QWidget* widget ) = 0;
00060 KActionPtrList actions( QWidget* parent = 0 );
00061 KActionCollection* actionCollection( QWidget* parent = 0 );
00062 virtual Category category( KAction* action ) const = 0;
00063
00064 protected:
00065 void addAction( KAction* action );
00066
00067 private:
00068 struct Private;
00069 Private* d;
00070 };
00071 }
00072
00073 #endif // KIPI_PLUGIN_H