KDECore
kplugininfo.cpp
Go to the documentation of this file.
195QList<KPluginInfo> KPluginInfo::fromServices(const KService::List &services, const KConfigGroup &config)
344 d->kcmservices = KServiceTypeTrader::self()->query( QLatin1String("KCModule"), QLatin1Char('\'') + d->pluginName +
395 setPluginEnabled(config.readEntry(d->pluginName + QString::fromLatin1("Enabled"), isPluginEnabledByDefault()));
401 setPluginEnabled(d->config.readEntry(d->pluginName + QString::fromLatin1("Enabled"), isPluginEnabledByDefault()));
static KAboutLicense byKeyword(const QString &keyword)
Fetch a known license by a keyword.
Definition kaboutdata.cpp:357
T readEntry(const QString &key, const T &aDefault) const
Reads the value of an entry specified by pKey in the current group.
Definition kconfiggroup.h:248
QString readEntryUntranslated(const QString &pKey, const QString &aDefault=QString()) const
Reads an untranslated string entry.
Definition kconfiggroup.cpp:637
static int registerArea(const QByteArray &areaName, bool enabled=true)
Definition kdebug.cpp:856
QString readComment() const
Returns the value of the "Comment=" entry.
Definition kdesktopfile.cpp:198
void save(KConfigGroup config=KConfigGroup())
Save state of the plugin - enabled or not.
Definition kplugininfo.cpp:375
bool isPluginEnabledByDefault() const
Definition kplugininfo.cpp:248
static KPluginInfo::List fromFiles(const QStringList &files, const KConfigGroup &config=KConfigGroup())
Definition kplugininfo.cpp:208
KPluginInfo & operator=(const KPluginInfo &rhs)
Copies the KPluginInfo object to share the data with copy.
Definition kplugininfo.cpp:153
void setConfig(const KConfigGroup &config)
Set the KConfigGroup to use for load()ing and save()ing the configuration.
Definition kplugininfo.cpp:354
static KPluginInfo::List fromServices(const KService::List &services, const KConfigGroup &config=KConfigGroup())
Definition kplugininfo.cpp:195
bool operator!=(const KPluginInfo &rhs) const
Compares two objects whether they don't share the same data.
Definition kplugininfo.cpp:164
bool operator>(const KPluginInfo &rhs) const
Greater than relation comparing the categories and if they are the same using the names.
Definition kplugininfo.cpp:180
bool operator==(const KPluginInfo &rhs) const
Compares two objects whether they share the same data.
Definition kplugininfo.cpp:159
void load(const KConfigGroup &config=KConfigGroup())
Load the state of the plugin - enabled or not.
Definition kplugininfo.cpp:390
static KPluginInfo::List fromKPartsInstanceName(const QString &componentName, const KConfigGroup &config=KConfigGroup())
Definition kplugininfo.cpp:220
bool operator<(const KPluginInfo &rhs) const
Less than relation comparing the categories and if they are the same using the names.
Definition kplugininfo.cpp:169
void setPluginEnabled(bool enabled)
Set whether the plugin is currently loaded.
Definition kplugininfo.cpp:234
KPluginInfo(const QString &filename, const char *resource=0)
Read plugin info from filename.
Definition kplugininfo.cpp:79
static KServiceTypeTrader * self()
This is a static pointer to the KServiceTypeTrader singleton.
Definition kservicetypetrader.cpp:37
KService::List query(const QString &servicetype, const QString &constraint=QString()) const
The main function in the KServiceTypeTrader class.
Definition kservicetypetrader.cpp:134
QStringList findAllResources(const char *type, const QString &filter=QString(), SearchOptions options=NoSearchOptions) const
Tries to find all resources with the specified type.
Definition kstandarddirs.cpp:900
Definition kaboutdata.h:33
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.