diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | 90825e2392b2d70e43c7a25b8a3752299a933894 (patch) | |
tree | e33aa27f02b74604afbfd0ea4f1cfca8833d882a /kdejava/koala/org/kde/koala/KMimeSourceFactory.java | |
download | tdebindings-90825e2392b2d70e43c7a25b8a3752299a933894.tar.gz tdebindings-90825e2392b2d70e43c7a25b8a3752299a933894.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebindings@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdejava/koala/org/kde/koala/KMimeSourceFactory.java')
-rw-r--r-- | kdejava/koala/org/kde/koala/KMimeSourceFactory.java | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/kdejava/koala/org/kde/koala/KMimeSourceFactory.java b/kdejava/koala/org/kde/koala/KMimeSourceFactory.java new file mode 100644 index 00000000..9e4e01e3 --- /dev/null +++ b/kdejava/koala/org/kde/koala/KMimeSourceFactory.java @@ -0,0 +1,55 @@ +//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.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 <putzer@kde.org> + + @short An extension to QMimeSourceFactory that uses KIconLoader to find images. + +*/ +public class KMimeSourceFactory extends QMimeSourceFactory { + protected KMimeSourceFactory(Class dummy){super((Class) null);} + /** + Constructor. + @param loader is the iconloader used to find images. + @short Constructor. + */ + public KMimeSourceFactory(KIconLoader loader) { + super((Class) null); + newKMimeSourceFactory(loader); + } + private native void newKMimeSourceFactory(KIconLoader 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(); +} |