KDECore
kservicetype.cpp
Go to the documentation of this file.
35template QDataStream& operator<< <QString, QVariant>(QDataStream&, const QMap<QString, QVariant>&);
215 kWarning(servicesDebugArea()) << entryPath() << "specifies undefined mimetype/servicetype"<< parentSt;
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
KServiceType::List allServiceTypes()
Definition: kservicetypefactory.cpp:95
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
Definition: kservicetype_p.h:29
virtual QStringList propertyNames() const
Definition: kservicetype.cpp:169
QMap< QString, QVariant::Type > m_mapPropDefs
Definition: kservicetype_p.h:72
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:44
static List allServiceTypes()
Returns a list of all the supported servicetypes.
Definition: kservicetype.cpp:196
QString parentServiceType() const
If this service type inherits from another service type, return the name of the parent.
Definition: kservicetype.cpp:131
bool isDerived() const
Checks whether this service type inherits another one.
Definition: kservicetype.cpp:246
bool inherits(const QString &servTypeName) const
Checks whether this service type is or inherits from servTypeName.
Definition: kservicetype.cpp:137
QStringList propertyDefNames() const
Returns the list of all property definitions for this servicetype.
Definition: kservicetype.cpp:185
QMap< QString, QVariant::Type > propertyDefs() const
Definition: kservicetype.cpp:252
QVariant::Type propertyDef(const QString &_name) const
Returns the type of the property definition with the given _name.
Definition: kservicetype.cpp:178
KServiceType(KDesktopFile *config)
Construct a service type and take all information from a desktop file.
Definition: kservicetype.cpp:46
QString desktopEntryPath() const
Returns the relative path to the desktop entry file responsible for this servicetype.
Definition: kservicetype.cpp:240
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
QString comment() const
Returns the descriptive comment associated, if any.
Definition: kservicetype.cpp:232
void setServiceOffersOffset(int offset)
Definition: kservicetype.cpp:219
QVariant property(const QString &name) const
Returns the requested property.
Definition: ksycocaentry.cpp:169
template QDataStream & operator<<< QString, QVariant >(QDataStream &, const QMap< QString, QVariant > &)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.