Kontact Plugin Interface Library
plugin.cpp
314 if ( QString::compare( containerElem.tagName(), QLatin1String("ToolBar"), Qt::CaseInsensitive ) == 0 ) {
319 if ( QString::compare( actionElem.tagName(), QLatin1String("Action"), Qt::CaseInsensitive ) == 0 ) {
332 // only when (newAppFile does not exist) or (version of domDocument > version of newAppFile) (*)
338 KStandardDirs::locateLocal( "data", QLatin1String("kontact/default-") + QLatin1String(pluginName) + QLatin1String(".rc") );
353 KStandardDirs::locateLocal( "data", QLatin1String("kontact/default-") + QLatin1String(pluginName) + QLatin1String(".rc") );
355 KStandardDirs::locateLocal( "data", QLatin1String("kontact/local-") + QLatin1String(pluginName) + QLatin1String(".rc") );
virtual void partLoaded(Plugin *plugin, KParts::ReadOnlyPart *part)=0
KParts::ReadOnlyPart * createPart(const char *library)
Definition: core.cpp:70
void setIdentifier(const QString &identifier)
Sets the identifier of the plugin.
Definition: plugin.cpp:96
KParts::ReadOnlyPart * part()
You can use this method if you need to access the current part.
Definition: plugin.cpp:190
QList< KAction * > newActions() const
Returns the list of custom "New" actions.
Definition: plugin.cpp:236
void setIcon(const QString &icon)
Sets the icon name that is used for the plugin.
Definition: plugin.cpp:116
void setShowInSideBar(bool hasPart)
Set if the plugin provides a part that should be shown in the sidebar.
Definition: plugin.cpp:390
virtual bool isRunningStandalone() const
Reimplement this method and return whether a standalone application is still running.
Definition: plugin.cpp:147
QString registerClient()
Registers the client at DBus and returns the dbus identifier.
Definition: plugin.cpp:208
void setExecutableName(const QString &name)
Sets the name of executable (if existent).
Definition: plugin.cpp:126
virtual void readProperties(const KConfigGroup &)
Session management: read properties.
Definition: plugin.cpp:261
virtual void bringToForeground()
Reimplement this method if your application needs a different approach to be brought in the foregroun...
Definition: plugin.cpp:367
virtual QStringList invisibleToolbarActions() const
Returns a list of action names that shall be hidden in the main toolbar.
Definition: plugin.cpp:246
virtual void virtual_hook(int id, void *data)
Virtual hook for BC extension.
Definition: plugin.cpp:414
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:379
virtual const KAboutData * aboutData() const
Reimplement this method if you want to add your credits to the Kontact about dialog.
Definition: plugin.cpp:157
virtual void saveProperties(KConfigGroup &)
Session management: save properties.
Definition: plugin.cpp:265
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:283
virtual bool queryClose() const
Reimplement this method if you want to add checks before closing the main kontact window.
Definition: plugin.cpp:395
void aboutToSelect()
Called by kontact when the plugin is selected by the user.
Definition: plugin.cpp:274
virtual bool showInSideBar() const
Returns whether the plugin provides a part that should be shown in the sidebar.
Definition: plugin.cpp:385
QList< KAction * > syncActions() const
Returns the list of custom "Sync" actions.
Definition: plugin.cpp:241
virtual KParts::ReadOnlyPart * createPart()=0
Reimplement and return the part here.
virtual bool canDecodeMimeData(const QMimeData *data) const
Returns whether the plugin can handle the drag object of the given mime type.
Definition: plugin.cpp:251
Plugin(Core *core, QObject *parent, const char *appName, const char *pluginName=0)
Creates a new plugin.
Definition: plugin.cpp:76
void setPartLibraryName(const QByteArray &name)
Set name of library which contains the KPart used by this plugin.
Definition: plugin.cpp:136
virtual void configUpdated()
This function is called whenever the config dialog has been closed successfully.
Definition: plugin.cpp:287
QString executableName() const
Returns the name of the executable (if existent).
Definition: plugin.cpp:131
virtual QString tipFile() const
Reimplement this method and return the a path relative to "data" to the tips file.
Definition: plugin.cpp:203
virtual bool createDBUSInterface(const QString &serviceType)
Create the D-Bus interface for the given serviceType, if this plugin provides it.
Definition: plugin.cpp:141
void setTitle(const QString &title)
Sets the localized title of the plugin.
Definition: plugin.cpp:106
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Jul 21 2022 00:00:00 by doxygen 1.9.5 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Jul 21 2022 00:00:00 by doxygen 1.9.5 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.