KDECore
kservicetype.cpp
Go to the documentation of this file.
35 template QDataStream& operator<< <QString, QVariant>(QDataStream&, const QMap<QString, QVariant>&);
215 kWarning(servicesDebugArea()) << entryPath() << "specifies undefined mimetype/servicetype"<< parentSt;
virtual KServiceType::Ptr findServiceTypeByName(const QString &_name)
Find a service type in the database file (allocates it) Overloaded by KBuildServiceTypeFactory to ret...
Definition: kservicetypefactory.cpp:68
static Ptr serviceType(const QString &_name)
Returns a pointer to the servicetype '_name' or 0L if the service type is unknown.
Definition: kservicetype.cpp:191
static List allServiceTypes()
Returns a list of all the supported servicetypes.
Definition: kservicetype.cpp:196
bool contains(const Key &key) const
virtual QStringList propertyNames() const
Definition: kservicetype.cpp:169
virtual QVariant property(const QString &name) const
Definition: kservicetype.cpp:154
A service type is, well, a type of service, where a service is an application or plugin.
Definition: kservicetype.h:43
KServiceType(KDesktopFile *config)
Construct a service type and take all information from a desktop file.
Definition: kservicetype.cpp:46
QVariant::Type propertyDef(const QString &_name) const
Returns the type of the property definition with the given _name.
Definition: kservicetype.cpp:178
QList< Key > keys() const
bool isDerived() const
Checks whether this service type inherits another one.
Definition: kservicetype.cpp:246
void append(const T &value)
QString desktopEntryPath() const
Returns the relative path to the desktop entry file responsible for this servicetype.
Definition: kservicetype.cpp:240
Type nameToType(const char *name)
bool isEmpty() const
void setServiceOffersOffset(int offset)
Definition: kservicetype.cpp:219
iterator end()
QStringList propertyDefNames() const
Returns the list of all property definitions for this servicetype.
Definition: kservicetype.cpp:185
QString parentServiceType() const
If this service type inherits from another service type, return the name of the parent.
Definition: kservicetype.cpp:131
bool inherits(const QString &servTypeName) const
Checks whether this service type is or inherits from servTypeName.
Definition: kservicetype.cpp:137
QString fromLatin1(const char *str, int size)
iterator insert(const Key &key, const T &value)
QMap< QString, QVariant::Type > m_mapPropDefs
Definition: kservicetype_p.h:72
QString comment() const
Returns the descriptive comment associated, if any.
Definition: kservicetype.cpp:232
template QDataStream & operator<< < QString, QVariant >(QDataStream &, const QMap< QString, QVariant > &)
QVariant property(const QString &name) const
Returns the requested property.
Definition: ksycocaentry.cpp:169
KServiceType::List allServiceTypes()
Definition: kservicetypefactory.cpp:95
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
QMap< QString, QVariant::Type > propertyDefs() const
Definition: kservicetype.cpp:252
Definition: kservicetype_p.h:28
iterator begin()
const T value(const Key &key) const
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.