KontactInterface
plugin.cpp
58Plugin::Plugin(Core *core, QObject *parent, const KPluginMetaData &, const char *appName, const char *pluginName)
250 // qCDebug(KONTACTINTERFACE_LOG) << "Hiding actions" << hideActions << "from" << pluginName << part;
254 for (QDomElement containerElem = docElem.firstChildElement(); !containerElem.isNull(); containerElem = containerElem.nextSiblingElement()) {
273 // only when (newAppFile does not exist) or (version of domDocument > version of newAppFile) (*)
279 QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) + "/kontact/default-"_L1 + QLatin1StringView(pluginName) + ".rc"_L1;
300 QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) + "/kontact/default-"_L1 + QLatin1StringView(pluginName) + ".rc"_L1;
302 QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) + "/kontact/local-"_L1 + QLatin1StringView(pluginName) + ".rc"_L1;
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: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
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
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 Fri Nov 8 2024 11:49:18 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 8 2024 11:49:18 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.