Main Page | Namespace List | Class List | File List | Namespace Members | Class Members | File Members

plugin.h

Go to the documentation of this file.
00001 /* ============================================================
00002  * File   : plugin.h
00003  * Authors: KIPI team developers (see AUTHORS files for details)
00004  *          
00005  * Date   : 2004-02
00006  * Description :
00007  *
00008  * Copyright 2004 by the KIPI team
00009  * 
00010  * This program is free software; you can redistribute it
00011  * and/or modify it under the terms of the GNU Library General
00012  * Public License as published bythe Free Software Foundation;
00013  * either version 2, or (at your option)
00014  * any later version.
00015  *
00016  * This program is distributed in the hope that it will be useful,
00017  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00018  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00019  * GNU Library General Public License for more details.
00020  *
00021  * ============================================================ */
00022 
00023 #ifndef KIPI_PLUGIN_H
00024 #define KIPI_PLUGIN_H
00025 
00026 // Qt includes.
00027 
00028 #include <qobject.h>
00029 
00030 // KDE includes.
00031 
00032 #include <kaction.h>
00033 
00034 // Lib KIPI includes.
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 

Generated on Tue Sep 13 05:01:58 2005 for libKipi by  doxygen 1.4.4