|
|
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)
typedef KSharedPtr<KServiceType> |
typedef QValueList<Ptr> |
|
Constructor. You may pass in arguments to create a servicetype with specific properties
|
Construct a service type and take all informations from a config file.
Parameters:
_fullpath | set to "" if calling from a inherited constructor. |
|
Construct a service type and take all informations from a deskop file.
|
The stream must already be positionned at the correct offset
|
[virtual]
QString |
[const]
Returns: the icon associated with this service type. Some derived classes offer special functions which take for example an URL and returns a special icon for this URL. An example is KMimeType, KFoldeType and others.
QString |
[const]
Returns: the descriptive comment associated, if any.
QString |
[const]
Returns: the name of this service type.
Reimplemented from KSycocaEntry.
QString |
[const]
Returns: the relative path to the desktop entry file responsible for this servicetype. For instance inode/directory.desktop, or kpart.desktop
bool |
[const]
Returns: true if this service type inherits another one
QString |
[const]
If this service type inherits from another service type, return the name of the parent. Otherwise QString::null.
QVariant |
[const virtual]
QStringList |
[const virtual]
bool |
[const]
Reimplemented from KSycocaEntry.
QVariant::Type |
[const virtual]
QStringList |
[const virtual]
const QMap<QString,QVariant::Type>& |
[const virtual]
void |
[virtual]
Save ourselves to the data stream.
Reimplemented from KSycocaEntry.
void |
[virtual]
Load ourselves from the data stream.
Reimplemented from KSycocaEntry.
Ptr |
[static]
Returns: a pointer to the servicetype '_name' or 0L if the service type is unknown. VERY IMPORTANT : don't store the result in a KServiceType * !
KService::List |
[static]
Returns: all services supporting the given servicetype name This doesn't take care of the user profile. In fact it is used by the KServiceTypeProfile, which is the one you should use.
List |
[static]
Returns: a list of all the supported servicetypes. Useful for showing the list of available servicetypes in a listbox, for example. More memory consuming than the ones above, don't use unless really necessary.
void |
[protected: ]
QString |
[protected: ]
QString |
[protected: ]
QString |
[protected: ]
QMap<QString,QVariant> |
[protected: ]
QMap<QString,QVariant::Type> |
[protected: ]
bool |
[protected: ]
bool |
[protected: ]
Generated by: marc@yogi on Tue Mar 27 13:07:59 2001, using kdoc 2.0a48. |