24 #ifndef DIGIKAM_DPLUGIN_H
25 #define DIGIKAM_DPLUGIN_H
31 #include <QCoreApplication>
33 #include <QStringList>
48 #define DIGIKAM_DPLUGIN_GENERIC_IID "org.kde.digikam.DPluginGeneric/1.1.0"
49 #define DIGIKAM_DPLUGIN_EDITOR_IID "org.kde.digikam.DPluginEditor/1.1.0"
50 #define DIGIKAM_DPLUGIN_BQM_IID "org.kde.digikam.DPluginBqm/1.1.0"
51 #define DIGIKAM_DPLUGIN_RAWIMPORT_IID "org.kde.digikam.DPluginRawImport/1.1.0"
52 #define DIGIKAM_DPLUGIN_DIMG_IID "org.kde.digikam.DPluginDImg/1.1.0"
60 class DIGIKAM_EXPORT
DPlugin :
public QObject
69 explicit DPlugin(QObject*
const parent =
nullptr);
81 QStringList pluginAuthors()
const;
87 QString version()
const;
93 bool shouldLoaded()
const;
99 void setShouldLoaded(
bool b);
105 QString libraryFileName()
const;
111 void setLibraryFileName(
const QString&);
125 virtual bool hasVisibilityProperty()
const;
145 virtual void setup(QObject*
const parent) = 0;
154 virtual QString
name()
const = 0;
163 virtual QString
iid()
const = 0;
183 virtual QIcon icon()
const;
198 virtual QMap<QString, QString>
extraAboutData()
const {
return QMap<QString, QString>(); };
Definition: dpluginauthor.h:39
virtual int count() const =0
virtual QString name() const =0
Returns the user-visible name of the plugin.
virtual QMap< QString, QString > extraAboutData() const
Returns a list of extra data to show in plugin about dialog.
Definition: dplugin.h:198
virtual QString ifaceIid() const =0
Returns the unique top level internal identification property of the plugin interface....
virtual void cleanUp()
Definition: dplugin.h:119
virtual QString extraAboutDataTitle() const
Returns the title of data returned by extraAboiutData().
Definition: dplugin.h:203
virtual void setVisible(bool b)=0
virtual QList< DPluginAuthor > authors() const =0
Returns authors list for the plugin.
virtual QString description() const =0
Returns a short description about the plugin.
virtual QString details() const =0
Returns a long description about the plugin.
virtual QStringList categories() const =0
virtual QString iid() const =0
Returns the unique internal identification property of the plugin. Must be formatted as "org....
virtual void setup(QObject *const parent)=0
Definition: piwigotalker.h:48
Q_DECLARE_TYPEINFO(Digikam::DPluginAuthor, Q_MOVABLE_TYPE)
Definition: datefolderview.cpp:43