You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
2.0 KiB
56 lines
2.0 KiB
//Auto-generated by kalyptus. DO NOT EDIT.
|
|
package org.kde.koala;
|
|
|
|
import org.kde.qt.Qt;
|
|
import org.kde.qt.QtSupport;
|
|
import org.kde.qt.TQMimeSourceFactory;
|
|
|
|
/**
|
|
|
|
An extension to TQMimeSourceFactory that uses TDEIconLoader to
|
|
find images.
|
|
Normally you don't have to instantiate this class at all, TDEApplication does that for
|
|
you automagically and sets TQMimeSourceFactory.setDefaultFactory().
|
|
@author Peter Putzer <putzer@kde.org>
|
|
|
|
@short An extension to TQMimeSourceFactory that uses TDEIconLoader to find images.
|
|
|
|
*/
|
|
public class KMimeSourceFactory extends TQMimeSourceFactory {
|
|
protected KMimeSourceFactory(Class dummy){super((Class) null);}
|
|
/**
|
|
Constructor.
|
|
@param loader is the iconloader used to find images.
|
|
@short Constructor.
|
|
*/
|
|
public KMimeSourceFactory(TDEIconLoader loader) {
|
|
super((Class) null);
|
|
newKMimeSourceFactory(loader);
|
|
}
|
|
private native void newKMimeSourceFactory(TDEIconLoader loader);
|
|
public KMimeSourceFactory() {
|
|
super((Class) null);
|
|
newKMimeSourceFactory();
|
|
}
|
|
private native void newKMimeSourceFactory();
|
|
/**
|
|
This function is maps an absolute or relative name for a resource to
|
|
the absolute one.
|
|
To load an icon, prepend the <code>category</code> name before the <code>icon</code> name, in the style
|
|
of \<category>|\<icon>.
|
|
Example:
|
|
<pre> "<img src=\"user|ksysv_start\"/>", "<img src="\desktop|trash\">", ...
|
|
</pre>
|
|
@param abs_or_rel_name is the absolute or relative pathname.
|
|
@param context is the path of the context object for the queried resource. Almost always empty.
|
|
@short This function is maps an absolute or relative name for a resource to the absolute one.
|
|
*/
|
|
public native String makeAbsolute(String abs_or_rel_name, String context);
|
|
/** Deletes the wrapped C++ instance */
|
|
protected native void finalize() throws InternalError;
|
|
/** Delete the wrapped C++ instance ahead of finalize() */
|
|
public native void dispose();
|
|
/** Has the wrapped C++ instance been deleted? */
|
|
public native boolean isDisposed();
|
|
}
|