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/HistoryProvider.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/HistoryProvider.java')
-rw-r--r-- | kdejava/koala/org/kde/koala/HistoryProvider.java | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/kdejava/koala/org/kde/koala/HistoryProvider.java b/kdejava/koala/org/kde/koala/HistoryProvider.java new file mode 100644 index 00000000..bb568d67 --- /dev/null +++ b/kdejava/koala/org/kde/koala/HistoryProvider.java @@ -0,0 +1,69 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.kde.koala; + +import org.kde.qt.Qt; +import org.kde.qt.QMetaObject; +import org.kde.qt.QtSupport; +import org.kde.qt.QObject; +import org.kde.qt.QObject; + +/** + + Basic class to manage a history of "items". This class is only meant + for fast lookup, if an item is in the history or not. + May be subclassed to implement a persistent history for example. + For usage with khtml, just create your provider and call the + HistoryProvider constructor _before_ you do any khtml stuff. That way, + khtml, using the self()-method, will use your subclassed provider. + See {@link HistoryProviderSignals} for signals emitted by HistoryProvider + @author Carsten Pfeiffer <pfeiffer@kde.org> + + @short Basic class to manage a history of "items". + +*/ +public class HistoryProvider extends QObject { + protected HistoryProvider(Class dummy){super((Class) null);} + public native QMetaObject metaObject(); + public native String className(); + /** + Creates a KHistoryProvider with an optional parent and name + @short Creates a KHistoryProvider with an optional parent and name + */ + public HistoryProvider(QObject parent, String name) { + super((Class) null); + newHistoryProvider(parent,name); + } + private native void newHistoryProvider(QObject parent, String name); + public HistoryProvider(QObject parent) { + super((Class) null); + newHistoryProvider(parent); + } + private native void newHistoryProvider(QObject parent); + public HistoryProvider() { + super((Class) null); + newHistoryProvider(); + } + private native void newHistoryProvider(); + /** + @return true if <code>item</code> is present in the history. + + @short + */ + public native boolean contains(String item); + /** + Inserts <code>item</code> into the history. + @short Inserts <code>item</code> into the history. + */ + public native void insert(String item); + /** + Removes <code>item</code> from the history. + @short Removes <code>item</code> from the history. + */ + public native void remove(String item); + /** + Clears the history. The cleared() signal is emitted after clearing. + @short Clears the history. + */ + public native void clear(); + public static native HistoryProvider self(); +} |