org.kde.koala
Class KMimeSourceFactory

java.lang.Object
  extended by org.kde.qt.QMimeSourceFactory
      extended by org.kde.koala.KMimeSourceFactory
All Implemented Interfaces:
org.kde.qt.QtSupport

public class KMimeSourceFactory
extends org.kde.qt.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

Constructor Summary
  KMimeSourceFactory()
           
protected KMimeSourceFactory(java.lang.Class dummy)
           
  KMimeSourceFactory(KIconLoader loader)
          Constructor.
 
Method Summary
 void dispose()
          Delete the wrapped C++ instance ahead of finalize()
protected  void finalize()
          Deletes the wrapped C++ instance
 boolean isDisposed()
          Has the wrapped C++ instance been deleted?
 java.lang.String makeAbsolute(java.lang.String abs_or_rel_name, java.lang.String context)
          This function is maps an absolute or relative name for a resource to the absolute one.
 
Methods inherited from class org.kde.qt.QMimeSourceFactory
addFactory, addFilePath, data, data, defaultFactory, filePath, removeFactory, setData, setDefaultFactory, setExtensionType, setFilePath, setImage, setPixmap, setText, takeDefaultFactory
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KMimeSourceFactory

protected KMimeSourceFactory(java.lang.Class dummy)

KMimeSourceFactory

public KMimeSourceFactory(KIconLoader loader)
Constructor.

Parameters:
loader - is the iconloader used to find images.

KMimeSourceFactory

public KMimeSourceFactory()
Method Detail

makeAbsolute

public java.lang.String makeAbsolute(java.lang.String abs_or_rel_name,
                                     java.lang.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:
 "", "", ...
                 

Overrides:
makeAbsolute in class org.kde.qt.QMimeSourceFactory
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.

finalize

protected void finalize()
                 throws java.lang.InternalError
Deletes the wrapped C++ instance

Overrides:
finalize in class org.kde.qt.QMimeSourceFactory
Throws:
java.lang.InternalError

dispose

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

Overrides:
dispose in class org.kde.qt.QMimeSourceFactory

isDisposed

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

Overrides:
isDisposed in class org.kde.qt.QMimeSourceFactory