KCMUtils
kcmoduleproxy.cpp
77 name.replace(QLatin1Char('-'), QLatin1Char('_')); // hyphen is not allowed in dbus, only [A-Z][a-z][0-9]_
108 i18nc("Argument is application name", "This configuration section is already opened in %1", reply.value()),
116 // qDebug() << "Module not already loaded, loading module " << modInfo.moduleName() << " from library " << modInfo.library() << " using symbol " << modInfo.handle();
118 kcm = KCModuleLoader::loadModule(metaData.value(), parent, QVariantList(args.cbegin(), args.cend()));
148 QDBusConnection::sessionBus().registerObject(dbusPath, new KSettingsWidgetAdaptor(parent), QDBusConnection::ExportAllSlots);
153 void KCModuleProxyPrivate::_k_ownerChanged(const QString &service, const QString &oldOwner, const QString &)
239 KCModuleProxy::KCModuleProxy(const KPluginMetaData &metaData, QWidget *parent, const QStringList &args)
246 KCModuleProxy::KCModuleProxy(const KService::Ptr &service, QWidget *parent, const QStringList &args)
253 KCModuleProxy::KCModuleProxy(const KCModuleInfo &info, QWidget *parent, const QStringList &args)
259 KCModuleProxy::KCModuleProxy(const QString &serviceName, QWidget *parent, const QStringList &args)
KCMUTILS_EXPORT void unloadModule(const KCModuleInfo &mod)
Unloads the module's library.
Definition: kcmoduleloader.cpp:241
void load()
Calling it will cause the contained module to run its load() routine.
Definition: kcmoduleproxy.cpp:266
void defaulted(bool state)
bool isValid() const const
virtual const KAboutData * aboutData() const
QSize minimumSizeHint() const override
Returns the recommended minimum size for the widget.
Definition: kcmoduleproxy.cpp:362
bool registerObject(const QString &path, QObject *object, QDBusConnection::RegisterOptions options)
KCModuleProxy(const KCModuleInfo &info, QWidget *parent=nullptr, const QStringList &args=QStringList())
Constructs a KCModuleProxy from a KCModuleInfo class.
Definition: kcmoduleproxy.cpp:253
@ Inline
the error report is shown instead of the KCModule that should have * been loaded
Definition: kcmoduleloader.h:49
QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
KCMUTILS_EXPORT KCModule * loadModule(const KCModuleInfo &module, ErrorReporting report, QWidget *parent=nullptr, const QStringList &args=QStringList())
Loads a KCModule.
Definition: kcmoduleloader.cpp:143
void destroyed(QObject *obj)
void save()
Calling it will cause the contained module to run its save() routine.
Definition: kcmoduleproxy.cpp:275
QDBusConnection sessionBus()
bool registerService(const QString &serviceName)
virtual void showEvent(QShowEvent *event)
bool unload()
bool isEmpty() const const
WaitCursor
void showEvent(QShowEvent *) override
Reimplemented for internal purposes.
Definition: kcmoduleproxy.cpp:168
void deleteClient()
Calling this, results in deleting the contained module, and unregistering from DCOP.
Definition: kcmoduleproxy.cpp:199
KPluginMetaData metaData() const
Returns the KPluginMetaData used to load the KCM.
Definition: kcmoduleproxy.cpp:344
QString & replace(int position, int n, QChar after)
void show()
minimumSizeHint
void quickHelpChanged()
virtual QString quickHelp() const
void setOverrideCursor(const QCursor &cursor)
void setDefaultsIndicatorsVisible(bool show)
Show or hide an indicator when settings have changed from their default value.
Definition: kcmoduleproxy.cpp:367
ExportAllSlots
Buttons buttons() const
QString name(StandardShortcut id)
QString i18nc(const char *context, const char *text, const TYPE &arg...)
void restoreOverrideCursor()
QFlags< Button > Buttons
void defaults()
Calling it will cause the contained module to load its default values.
Definition: kcmoduleproxy.cpp:284
void changed()
void serviceOwnerChanged(const QString &serviceName, const QString &oldOwner, const QString &newOwner)
WatchForOwnerChange
QDBusReply::Type value() const const
Q_D(Todo)
KCMUTILS_EXPORT KCModule * reportError(ErrorReporting report, const QString &text, const QString &details, QWidget *parent)
Returns a KCModule containing the messages report and text.
Definition: kcmoduleloader.cpp:114
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon May 8 2023 04:05:07 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon May 8 2023 04:05:07 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.