libKipi
plugin.h
Go to the documentation of this file.
1 /* ============================================================
2  *
3  * This file is a part of kipi-plugins project
4  * http://www.kipi-plugins.org
5  *
6  * Date : 2004-02-01
7  * Description : plugin interface
8  *
9  * Copyright (C) 2004-2007 by Gilles Caulier <caulier dot gilles at gmail dot com>
10  * Copyright (C) 2004-2005 by Renchi Raju <renchi.raju at kdemail.net>
11  * Copyright (C) 2004-2005 by Jesper K. Pedersen <blackie at kde.org>
12  * Copyright (C) 2004-2005 by Aurelien Gateau <aurelien dot gateau at free.fr>
13  *
14  * This program is free software; you can redistribute it
15  * and/or modify it under the terms of the GNU General
16  * Public License as published by the Free Software Foundation;
17  * either version 2, or (at your option) any later version.
18  *
19  * This program is distributed in the hope that it will be useful,
20  * but WITHOUT ANY WARRANTY; without even the implied warranty of
21  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22  * GNU General Public License for more details.
23  *
24  * ============================================================ */
25 
26 #ifndef KIPI_PLUGIN_H
27 #define KIPI_PLUGIN_H
28 
29 // Qt includes.
30 
31 #include <qobject.h>
32 
33 // KDE includes.
34 
35 #include <kaction.h>
36 
37 // Local includes.
38 
39 #include "libkipi/interface.h"
40 #include "libkipi/libkipi_export.h"
41 
42 class KInstance;
43 
45 namespace KIPI
46 {
47  enum Category
48  {
56  };
57 
58  class LIBKIPI_EXPORT Plugin : public QObject
59  {
60  public:
61 
62  Plugin( KInstance* instance, QObject *parent, const char* name);
63  virtual ~Plugin();
64 
65  virtual void setup( QWidget* widget ) = 0;
66  KActionPtrList actions( QWidget* parent = 0 );
67  KActionCollection* actionCollection( QWidget* parent = 0 );
68  virtual Category category( KAction* action ) const = 0;
69 
70  protected:
71 
72  void addAction( KAction* action );
73 
74  private:
75 
76  struct Private;
77  Private* d;
78  };
79 }
80 
81 #endif // KIPI_PLUGIN_H
Definition: plugin.h:50
Definition: batchprogressdialog.cpp:69
#define LIBKIPI_EXPORT
Definition: libkipi_export.h:35
Definition: plugin.h:58
Definition: plugin.h:52
Definition: plugin.h:53
Definition: plugin.h:54
Definition: plugin.cpp:40
Definition: plugin.h:55
Definition: plugin.h:51
Category
Definition: plugin.h:47
Definition: plugin.h:49