class KMimeTypeTrader


Module kdecore
Namespace
Class KMimeTypeTrader
Inherits
KDE's trader for services associated to a given mimetype.

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 use createPartInstanceFromQuery directly.

See also KServiceTypeTrader, KService



methods