KontactInterface
plugin.h
48 static QObject *createInstance(QWidget *, QObject *parent, const KPluginMetaData &data, const QVariantList &list) \
53 K_PLUGIN_FACTORY_WITH_JSON(KontactPluginFactory, jsonFile, registerPlugin<pluginclass>(Instance::createInstance);)
KXMLGUIClient()
virtual QAction * action(const QDomElement &element) const
void setIdentifier(const QString &identifier)
Sets the identifier of the plugin.
Definition plugin.cpp:75
void setIcon(const QString &icon)
Sets the icon name that is used for the plugin.
Definition plugin.cpp:95
void setShowInSideBar(bool hasPart)
Set if the plugin provides a part that should be shown in the sidebar.
Definition plugin.cpp:340
virtual KParts::Part * createPart()=0
Reimplement and return the part here.
virtual bool isRunningStandalone() const
Reimplement this method and return whether a standalone application is still running.
Definition plugin.cpp:120
QString registerClient()
Registers the client at DBus and returns the dbus identifier.
Definition plugin.cpp:150
QList< QAction * > newActions() const
Returns the list of custom "New" actions.
Definition plugin.cpp:178
void setExecutableName(const QString &name)
Sets the name of executable (if existent).
Definition plugin.cpp:105
virtual const KAboutData aboutData()
Reimplement this method if you want to add your credits to the Kontact about dialog.
Definition plugin.cpp:130
virtual void readProperties(const KConfigGroup &)
Session management: read properties.
Definition plugin.cpp:203
Plugin(Core *core, QObject *parent, const KPluginMetaData &data, const char *appName, const char *pluginName=nullptr)
Creates a new plugin.
Definition plugin.cpp:58
virtual void bringToForeground()
Reimplement this method if your application needs a different approach to be brought in the foregroun...
Definition plugin.cpp:316
virtual QStringList invisibleToolbarActions() const
Returns a list of action names that shall be hidden in the main toolbar.
Definition plugin.cpp:188
void virtual_hook(int id, void *data) override
Virtual hook for BC extension.
Definition plugin.cpp:364
virtual Summary * createSummaryWidget(QWidget *parent)
Reimplement this method if you want to add a widget for your application to Kontact's summary page.
Definition plugin.cpp:329
QList< QAction * > syncActions() const
Returns the list of custom "Sync" actions.
Definition plugin.cpp:183
virtual void saveProperties(KConfigGroup &)
Session management: save properties.
Definition plugin.cpp:207
virtual void select()
This function is called when the plugin is selected by the user before the widget of the KPart belong...
Definition plugin.cpp:225
virtual bool queryClose() const
Reimplement this method if you want to add checks before closing the main kontact window.
Definition plugin.cpp:345
void aboutToSelect()
Called by kontact when the plugin is selected by the user.
Definition plugin.cpp:216
virtual bool showInSideBar() const
Returns whether the plugin provides a part that should be shown in the sidebar.
Definition plugin.cpp:335
virtual bool canDecodeMimeData(const QMimeData *data) const
Returns whether the plugin can handle the drag object of the given mime type.
Definition plugin.cpp:193
void setPartLibraryName(const QByteArray &name)
Set name of library which contains the KPart used by this plugin.
Definition plugin.cpp:115
virtual void configUpdated()
This function is called whenever the config dialog has been closed successfully.
Definition plugin.cpp:229
QString executableName() const
Returns the name of the executable (if existent).
Definition plugin.cpp:110
KParts::Part * part()
You can use this method if you need to access the current part.
Definition plugin.cpp:135
QObject(QObject *parent)
Q_OBJECTQ_OBJECT
Q_SLOTSQ_SLOTS
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Feb 21 2025 11:51:39 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Feb 21 2025 11:51:39 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.