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
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
bool isDerived() const
Checks whether this service type inherits another one.
Definition: kservicetype.cpp:246
QString desktopEntryPath() const
Returns the relative path to the desktop entry file responsible for this servicetype.
Definition: kservicetype.cpp:240
void setServiceOffersOffset(int offset)
Definition: kservicetype.cpp:219
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
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
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
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:47:09 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:47:09 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.