13#include "kontactinterface_export.h"
15#include <KPluginFactory>
16#include <KXMLGUIClient>
37#define KONTACT_PLUGIN_VERSION 11
44#define EXPORT_KONTACT_PLUGIN_WITH_JSON(pluginclass, jsonFile) \
48 static QObject *createInstance(QWidget *, QObject *parent, const KPluginMetaData &data, const QVariantList &list) \
50 return new pluginclass(static_cast<KontactInterface::Core *>(parent), data, list); \
53 K_PLUGIN_FACTORY_WITH_JSON(KontactPluginFactory, jsonFile, registerPlugin<pluginclass>(Instance::createInstance);)
55namespace KontactInterface
89 void setIdentifier(
const QString &identifier);
94 [[nodiscard]]
QString identifier()
const;
99 void setTitle(
const QString &title);
104 [[nodiscard]]
QString title()
const;
109 void setIcon(
const QString &icon);
114 [[nodiscard]]
QString icon()
const;
119 void setExecutableName(
const QString &name);
124 [[nodiscard]]
QString executableName()
const;
129 void setPartLibraryName(
const QByteArray &name);
136 [[nodiscard]]
virtual bool isRunningStandalone()
const;
143 virtual void bringToForeground();
149 [[nodiscard]]
virtual const KAboutData aboutData();
162 virtual void select();
169 void aboutToSelect();
175 virtual void configUpdated();
183 [[nodiscard]]
virtual Summary *createSummaryWidget(
QWidget *parent);
188 [[nodiscard]]
virtual bool showInSideBar()
const;
194 void setShowInSideBar(
bool hasPart);
202 [[nodiscard]]
virtual bool queryClose()
const;
213 virtual int weight()
const;
219 void insertNewAction(
QAction *action);
225 void insertSyncAction(
QAction *action);
240 [[nodiscard]]
virtual QStringList invisibleToolbarActions()
const;
245 [[nodiscard]]
virtual bool canDecodeMimeData(
const QMimeData *data)
const;
265 [[nodiscard]]
Core *core()
const;
270 void setDisabled(
bool value);
275 [[nodiscard]]
bool disabled()
const;
280 virtual void shortcutChanged();
288 void slotConfigUpdated();
305 void virtual_hook(
int id,
void *data)
override;
310 std::unique_ptr<PluginPrivate>
const d;
The abstract interface that represents the Kontact core.
Base class for all Plugins in Kontact.
virtual KParts::Part * createPart()=0
Reimplement and return the part here.
Base class for summary widgets in Kontact.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:19:42 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.