KServiceType Class Reference
A service type is the generic notion for a mimetype, a type of service instead of a type of file. More...
#include <kservicetype.h>
Inheritance diagram for KServiceType:

Public Types | |
typedef KSharedPtr< KServiceType > | Ptr |
typedef QValueList< Ptr > | List |
Public Member Functions | |
KServiceType (const QString &_fullpath, const QString &_name, const QString &_icon, const QString &_comment) | |
Constructor. | |
KServiceType (const QString &_fullpath) | |
Construct a service type and take all informations from a config file. | |
KServiceType (KDesktopFile *config) | |
Construct a service type and take all informations from a deskop file. | |
KServiceType (QDataStream &_str, int offset) | |
QString | icon () const |
QString | comment () const |
QString | name () const |
QString | desktopEntryPath () const |
bool | isDerived () const |
QString | parentServiceType () const |
If this service type inherits from another service type, return the name of the parent. | |
bool | inherits (const QString &servTypeName) const |
virtual QVariant | property (const QString &_name) const |
virtual QStringList | propertyNames () const |
bool | isValid () const |
virtual QVariant::Type | propertyDef (const QString &_name) const |
virtual QStringList | propertyDefNames () const |
virtual const QMap< QString, QVariant::Type > & | propertyDefs () const |
virtual void | save (QDataStream &) |
Save ourselves to the data stream. | |
virtual void | load (QDataStream &) |
Load ourselves from the data stream. | |
Static Public Member Functions | |
Ptr | serviceType (const QString &_name) |
KService::List | offers (const QString &_servicetype) |
List | allServiceTypes () |
Protected Member Functions | |
void | init (KDesktopFile *config) |
virtual void | virtual_hook (int id, void *data) |
Protected Attributes | |
QString | m_strName |
QString | m_strIcon |
QString | m_strComment |
QMap< QString, QVariant > | m_mapProps |
QMap< QString, QVariant::Type > | m_mapPropDefs |
bool | m_bValid:1 |
bool | m_bDerived:1 |
Detailed Description
A service type is the generic notion for a mimetype, a type of service instead of a type of file.For instance, KOfficeFilter is a service type. It is associated to services according to the user profile (kuserprofile.h)
Definition at line 43 of file kservicetype.h.
Constructor & Destructor Documentation
|
Constructor. You may pass in arguments to create a servicetype with specific properties Definition at line 99 of file kservicetype.cpp. References QString::isEmpty(). |
|
Construct a service type and take all informations from a config file.
Definition at line 33 of file kservicetype.cpp. |
|
Construct a service type and take all informations from a deskop file.
Definition at line 41 of file kservicetype.cpp. |
Member Function Documentation
|
Definition at line 84 of file kservicetype.h. Referenced by KDEDesktopMimeType::icon(), KFolderType::icon(), KDEDesktopMimeType::pixmap(), KMimeType::pixmap(), and KFileItem::pixmap(). |
|
Reimplemented in KMimeType. Definition at line 89 of file kservicetype.h. |
|
Implements KSycocaEntry. Definition at line 94 of file kservicetype.h. Referenced by inherits(). |
|
Definition at line 101 of file kservicetype.h. References KSycocaEntry::entryPath(). |
|
Definition at line 106 of file kservicetype.h. |
|
If this service type inherits from another service type, return the name of the parent. Otherwise QString::null. Definition at line 140 of file kservicetype.cpp. References QVariant::toString(). Referenced by inherits(). |
|
Definition at line 146 of file kservicetype.cpp. References QString::isEmpty(), name(), parentServiceType(), and serviceType(). |
|
Save ourselves to the data stream.
Reimplemented from KSycocaEntry. Reimplemented in KMimeType. Definition at line 126 of file kservicetype.cpp. References KSycocaEntry::save(). Referenced by KMimeType::save(). |
|
Load ourselves from the data stream.
Implements KSycocaEntry. Reimplemented in KMimeType. Definition at line 116 of file kservicetype.cpp. References QMap< QString, QVariant >::contains(). Referenced by KMimeType::load(). |
|
Definition at line 219 of file kservicetype.cpp. References KSycocaEntry::Ptr. Referenced by KService::hasServiceType(), and inherits(). |
|
Definition at line 225 of file kservicetype.cpp. References QValueList::begin(), QValueList::end(), KSycocaEntry::isType(), QString::left(), and KSycocaEntry::offset(). Referenced by KServiceTypeProfile::offers(). |
|
Definition at line 306 of file kservicetype.cpp. |
The documentation for this class was generated from the following files: