KDECore
kplugininfo.cpp
Go to the documentation of this file.
195 QList<KPluginInfo> KPluginInfo::fromServices(const KService::List &services, const KConfigGroup &config)
220 QList<KPluginInfo> KPluginInfo::fromKPartsInstanceName(const QString &name, 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 KPluginInfo::List fromFiles(const QStringList &files, const KConfigGroup &config=KConfigGroup())
Definition: kplugininfo.cpp:208
static KServiceTypeTrader * self()
This is a static pointer to the KServiceTypeTrader singleton.
Definition: kservicetypetrader.cpp:37
QString readComment() const
Returns the value of the "Comment=" entry.
Definition: kdesktopfile.cpp:198
static KPluginInfo::List fromKPartsInstanceName(const QString &componentName, const KConfigGroup &config=KConfigGroup())
Definition: kplugininfo.cpp:220
QVariant property(const QString &_name, QVariant::Type t) const
Returns the requested property.
Definition: kservice.cpp:498
void writeEntry(const QString &key, const QVariant &value, WriteConfigFlags pFlags=Normal)
Writes a value to the configuration object.
Definition: kconfiggroup.cpp:1037
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
QString comment() const
Returns the descriptive comment for the service, if there is one.
Definition: kservice.cpp:907
void load(const KConfigGroup &config=KConfigGroup())
Load the state of the plugin - enabled or not.
Definition: kplugininfo.cpp:390
QString readEntryUntranslated(const QString &pKey, const QString &aDefault=QString()) const
Reads an untranslated string entry.
Definition: kconfiggroup.cpp:637
Definition: kstandarddirs.h:191
bool operator!=(const KPluginInfo &rhs) const
Compares two objects whether they don't share the same data.
Definition: kplugininfo.cpp:164
void setPluginEnabled(bool enabled)
Set whether the plugin is currently loaded.
Definition: kplugininfo.cpp:234
static int registerArea(const QByteArray &areaName, bool enabled=true)
Definition: kdebug.cpp:856
bool operator==(const KPluginInfo &rhs) const
Compares two objects whether they share the same data.
Definition: kplugininfo.cpp:159
iterator end()
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 isPluginEnabledByDefault() const
Definition: kplugininfo.cpp:248
void save(KConfigGroup config=KConfigGroup())
Save state of the plugin - enabled or not.
Definition: kplugininfo.cpp:375
KService::List query(const QString &servicetype, const QString &constraint=QString()) const
The main function in the KServiceTypeTrader class.
Definition: kservicetypetrader.cpp:134
QStringList toStringList() const
unsigned int version()
Returns the encoded number of KDE's version, see the KDE_VERSION macro.
Definition: kdeversion.cpp:24
void setConfig(const KConfigGroup &config)
Set the KConfigGroup to use for load()ing and save()ing the configuration.
Definition: kplugininfo.cpp:354
static KAboutLicense byKeyword(const QString &keyword)
Fetch a known license by a keyword.
Definition: kaboutdata.cpp:357
typedef ConstIterator
bool toBool() const
QString fromLatin1(const char *str, int size)
bool isValid() const
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
KPluginInfo & operator=(const KPluginInfo &rhs)
Copies the KPluginInfo object to share the data with copy.
Definition: kplugininfo.cpp:153
QString toString() const
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
iterator begin()
static KPluginInfo::List fromServices(const KService::List &services, const KConfigGroup &config=KConfigGroup())
Definition: kplugininfo.cpp:195
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:11 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:22:11 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.