org.kde.koala

Class KMimeSourceFactory

public class KMimeSourceFactory extends QMimeSourceFactory

An extension to QMimeSourceFactory that uses KIconLoader to find images. Normally you don't have to instantiate this class at all, KApplication does that for you automagically and sets QMimeSourceFactory.setDefaultFactory().

Author: Peter Putzer

UNKNOWN: An extension to QMimeSourceFactory that uses KIconLoader to find images.

Constructor Summary
protected KMimeSourceFactory(Class dummy)
KMimeSourceFactory(KIconLoader loader)
Constructor.
KMimeSourceFactory()
Method Summary
voiddispose()
Delete the wrapped C++ instance ahead of finalize()
protected voidfinalize()
Deletes the wrapped C++ instance
booleanisDisposed()
Has the wrapped C++ instance been deleted?
StringmakeAbsolute(String abs_or_rel_name, String context)
This function is maps an absolute or relative name for a resource to the absolute one.

Constructor Detail

KMimeSourceFactory

protected KMimeSourceFactory(Class dummy)

KMimeSourceFactory

public KMimeSourceFactory(KIconLoader loader)
Constructor.

Parameters: loader is the iconloader used to find images.

UNKNOWN: Constructor.

KMimeSourceFactory

public KMimeSourceFactory()

Method Detail

dispose

public void dispose()
Delete the wrapped C++ instance ahead of finalize()

finalize

protected void finalize()
Deletes the wrapped C++ instance

isDisposed

public boolean isDisposed()
Has the wrapped C++ instance been deleted?

makeAbsolute

public String makeAbsolute(String abs_or_rel_name, String context)
This function is maps an absolute or relative name for a resource to the absolute one. To load an icon, prepend the category name before the icon name, in the style of \|\. Example:
 "", "", ...
		 

Parameters: abs_or_rel_name is the absolute or relative pathname. context is the path of the context object for the queried resource. Almost always empty.

UNKNOWN: This function is maps an absolute or relative name for a resource to the absolute one.