class KMimeTypeTrader


Table of contents
Modules
kdecore Classes
All Classes
Module kdecore
Namespace global
Class KMimeTypeTrader
Inherits

KDE's trader for services associated to a given mimetype.

Note: If Service means Application or Component/Plugin, see KServiceTypeTrader and KService.

Example: say that you want to the list of all KParts components that can handle HTML. Our code would look like:

KServiceOfferList lst = KMimeTypeTrader.self()->query("text/html",
"KParts/ReadOnlyPart");

If you want to get the preferred KParts component for text/html you could use preferredService("text/html", "KParts/ReadOnlyPart"), although if this is about loading that component you would rather use KParts.ComponentFactory directly.

See also KServiceTypeTrader, KService



methods