KontactInterface
plugin.cpp
56Plugin::Plugin(Core *core, QObject *parent, const KPluginMetaData &, const char *appName, const char *pluginName)
248 // qCDebug(KONTACTINTERFACE_LOG) << "Hiding actions" << hideActions << "from" << pluginName << part;
252 for (QDomElement containerElem = docElem.firstChildElement(); !containerElem.isNull(); containerElem = containerElem.nextSiblingElement()) {
253 if (QString::compare(containerElem.tagName(), QLatin1StringView("ToolBar"), Qt::CaseInsensitive) == 0) {
258 if (QString::compare(actionElem.tagName(), QLatin1StringView("Action"), Qt::CaseInsensitive) == 0) {
271 // only when (newAppFile does not exist) or (version of domDocument > version of newAppFile) (*)
276 const QString newAppFile = QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) + QLatin1StringView("/kontact/default-")
297 const QString newAppFile = QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) + QLatin1StringView("/kontact/default-")
299 const QString localFile = QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) + QLatin1StringView("/kontact/local-")
KXMLGUIFactory * factory() const
virtual QAction * action(const QDomElement &element) const
void addClient(KXMLGUIClient *client)
virtual void partLoaded(Plugin *plugin, KParts::Part *part)=0
KParts::Part * createPart(const char *library)
Definition core.cpp:58
void setIdentifier(const QString &identifier)
Sets the identifier of the plugin.
Definition plugin.cpp:73
void setIcon(const QString &icon)
Sets the icon name that is used for the plugin.
Definition plugin.cpp:93
void setShowInSideBar(bool hasPart)
Set if the plugin provides a part that should be shown in the sidebar.
Definition plugin.cpp:338
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:118
QString registerClient()
Registers the client at DBus and returns the dbus identifier.
Definition plugin.cpp:148
QList< QAction * > newActions() const
Returns the list of custom "New" actions.
Definition plugin.cpp:176
void setExecutableName(const QString &name)
Sets the name of executable (if existent).
Definition plugin.cpp:103
virtual const KAboutData aboutData()
Reimplement this method if you want to add your credits to the Kontact about dialog.
Definition plugin.cpp:128
virtual void readProperties(const KConfigGroup &)
Session management: read properties.
Definition plugin.cpp:201
Plugin(Core *core, QObject *parent, const KPluginMetaData &data, const char *appName, const char *pluginName=nullptr)
Creates a new plugin.
Definition plugin.cpp:56
virtual void bringToForeground()
Reimplement this method if your application needs a different approach to be brought in the foregroun...
Definition plugin.cpp:314
virtual QStringList invisibleToolbarActions() const
Returns a list of action names that shall be hidden in the main toolbar.
Definition plugin.cpp:186
void virtual_hook(int id, void *data) override
Virtual hook for BC extension.
Definition plugin.cpp:362
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:327
QList< QAction * > syncActions() const
Returns the list of custom "Sync" actions.
Definition plugin.cpp:181
virtual void saveProperties(KConfigGroup &)
Session management: save properties.
Definition plugin.cpp:205
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:223
virtual bool queryClose() const
Reimplement this method if you want to add checks before closing the main kontact window.
Definition plugin.cpp:343
void aboutToSelect()
Called by kontact when the plugin is selected by the user.
Definition plugin.cpp:214
virtual bool showInSideBar() const
Returns whether the plugin provides a part that should be shown in the sidebar.
Definition plugin.cpp:333
virtual bool canDecodeMimeData(const QMimeData *data) const
Returns whether the plugin can handle the drag object of the given mime type.
Definition plugin.cpp:191
void setPartLibraryName(const QByteArray &name)
Set name of library which contains the KPart used by this plugin.
Definition plugin.cpp:113
virtual void configUpdated()
This function is called whenever the config dialog has been closed successfully.
Definition plugin.cpp:227
QString executableName() const
Returns the name of the executable (if existent).
Definition plugin.cpp:108
KParts::Part * part()
You can use this method if you need to access the current part.
Definition plugin.cpp:133
This file is part of the kpimutils library.
qint64 applicationPid()
bool registerService(const QString &serviceName)
QDBusConnection sessionBus()
bool mkpath(const QString &dirPath) const const
QDomElement documentElement() const const
QString toString(int indent) const const
QString attribute(const QString &name, const QString &defValue) const const
QString tagName() const const
QDomElement firstChildElement(const QString &tagName, const QString &namespaceURI) const const
bool isNull() const const
QDomElement nextSiblingElement(const QString &tagName, const QString &namespaceURI) const const
QDomNode removeChild(const QDomNode &oldChild)
WriteOnly
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
void destroyed(QObject *obj)
objectName
QObject * parent() const const
void setObjectName(QAnyStringView name)
GenericDataLocation
QString writableLocation(StandardLocation type)
int compare(QLatin1StringView s1, const QString &s2, Qt::CaseSensitivity cs)
bool isEmpty() const const
QString number(double n, char format, int precision)
QByteArray toUtf8() const const
bool contains(QLatin1StringView str, Qt::CaseSensitivity cs) const const
CaseInsensitive
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:21:21 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:21:21 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.