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 configUpdated()
This function is called whenever the config dialog has been closed successfully.
Definition: plugin.cpp:287
virtual bool showInSideBar() const
Returns whether the plugin provides a part that should be shown in the sidebar.
Definition: plugin.cpp:385
virtual void saveProperties(KConfigGroup &)
Session management: save properties.
Definition: plugin.cpp:265
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
QString attribute(const QString &name, const QString &defValue) const
QString toString(int indent) const
void setShowInSideBar(bool hasPart)
Set if the plugin provides a part that should be shown in the sidebar.
Definition: plugin.cpp:390
bool contains(const QString &str, Qt::CaseSensitivity cs) const
QDomElement nextSiblingElement(const QString &tagName) const
QString registerClient()
Registers the client at DBus and returns the dbus identifier.
Definition: plugin.cpp:208
QDBusConnection sessionBus()
QDomElement documentElement() const
virtual KParts::ReadOnlyPart * createPart()=0
Reimplement and return the part here.
void setIcon(const QString &icon)
Sets the icon name that is used for the plugin.
Definition: plugin.cpp:116
QString number(int n, int base)
KParts::ReadOnlyPart * part()
You can use this method if you need to access the current part.
Definition: plugin.cpp:190
void setObjectName(const QString &name)
virtual const KAboutData * aboutData() const
Reimplement this method if you want to add your credits to the Kontact about dialog.
Definition: plugin.cpp:157
QString executableName() const
Returns the name of the executable (if existent).
Definition: plugin.cpp:131
void setTitle(const QString &title)
Sets the localized title of the plugin.
Definition: plugin.cpp:106
virtual QString tipFile() const
Reimplement this method and return the a path relative to "data" to the tips file.
Definition: plugin.cpp:203
virtual void readProperties(const KConfigGroup &)
Session management: read properties.
Definition: plugin.cpp:261
QList< KAction * > syncActions() const
Returns the list of custom "Sync" actions.
Definition: plugin.cpp:241
KParts::ReadOnlyPart * createPart(const char *library)
Definition: core.cpp:70
QDomNode removeChild(const QDomNode &oldChild)
bool isNull() const
virtual QStringList invisibleToolbarActions() const
Returns a list of action names that shall be hidden in the main toolbar.
Definition: plugin.cpp:246
void setIdentifier(const QString &identifier)
Sets the identifier of the plugin.
Definition: plugin.cpp:96
QDomElement firstChildElement(const QString &tagName) const
Plugin(Core *core, QObject *parent, const char *appName, const char *pluginName=0)
Creates a new plugin.
Definition: plugin.cpp:76
virtual bool isRunningStandalone() const
Reimplement this method and return whether a standalone application is still running.
Definition: plugin.cpp:147
virtual bool createDBUSInterface(const QString &serviceType)
Create the D-Bus interface for the given serviceType, if this plugin provides it. ...
Definition: plugin.cpp:141
QString fromLatin1(const char *str, int size)
void setPartLibraryName(const QByteArray &name)
Set name of library which contains the KPart used by this plugin.
Definition: plugin.cpp:136
The abstract interface that represents the Kontact core.
Definition: core.h:39
QString tagName() const
QList< KAction * > newActions() const
Returns the list of custom "New" actions.
Definition: plugin.cpp:236
void setExecutableName(const QString &name)
Sets the name of executable (if existent).
Definition: plugin.cpp:126
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 void bringToForeground()
Reimplement this method if your application needs a different approach to be brought in the foregroun...
Definition: plugin.cpp:367
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
int compare(const QString &other) const
virtual void partLoaded(Plugin *plugin, KParts::ReadOnlyPart *part)=0
virtual bool queryClose() const
Reimplement this method if you want to add checks before closing the main kontact window...
Definition: plugin.cpp:395
void destroyed(QObject *obj)
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
bool registerService(const QString &serviceName)
virtual void virtual_hook(int id, void *data)
Virtual hook for BC extension.
Definition: plugin.cpp:414
void aboutToSelect()
Called by kontact when the plugin is selected by the user.
Definition: plugin.cpp:274
QByteArray toUtf8() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:37:55 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:37:55 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.