Akonadi
9 #include "akonadicore_export.h"
11 #include <KSharedConfig>
16 class AgentConfigurationBase;
17 class AKONADICORE_EXPORT AgentConfigurationFactoryBase :
public QObject
21 explicit AgentConfigurationFactoryBase(
QObject *parent =
nullptr);
22 ~AgentConfigurationFactoryBase()
override =
default;
24 virtual AgentConfigurationBase *
create(
const KSharedConfigPtr &config,
QWidget *parent,
const QVariantList &args)
const = 0;
29 #define AKONADI_AGENTCONFIG_FACTORY(FactoryName, metadata, ClassName) \
30 class FactoryName : public Akonadi::AgentConfigurationFactoryBase \
33 Q_PLUGIN_METADATA(IID "org.freedesktop.Akonadi.AgentConfig" FILE metadata) \
35 FactoryName(QObject *parent = nullptr) \
36 : Akonadi::AgentConfigurationFactoryBase(parent) \
39 Akonadi::AgentConfigurationBase *create(const KSharedConfigPtr &config, QWidget *parent, const QVariantList &args) const override \
41 return new ClassName(config, parent, args); \
QAction * create(StandardGameAction id, const QObject *recvr, const char *slot, QObject *parent)
Helper integration between Akonadi and Qt.
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Sat Jul 2 2022 06:41:46 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.