summaryrefslogtreecommitdiffstats
path: root/tdejava/koala/org/trinitydesktop/koala/HistoryProvider.java
blob: 20057f8f9cc805031ca35fc86189fbff5d395a5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
//Auto-generated by kalyptus. DO NOT EDIT.
package org.trinitydesktop.koala;

import org.trinitydesktop.qt.Qt;
import org.trinitydesktop.qt.TQMetaObject;
import org.trinitydesktop.qt.QtSupport;
import org.trinitydesktop.qt.TQObject;
import org.trinitydesktop.qt.TQObject;

/**

 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 tdehtml, just create your provider and call the
 HistoryProvider constructor _before_ you do any tdehtml stuff. That way,
 tdehtml, 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 TQObject  {
	protected HistoryProvider(Class dummy){super((Class) null);}
	public native TQMetaObject 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(TQObject parent, String name) {
		super((Class) null);
		newHistoryProvider(parent,name);
	}
	private native void newHistoryProvider(TQObject parent, String name);
	public HistoryProvider(TQObject parent) {
		super((Class) null);
		newHistoryProvider(parent);
	}
	private native void newHistoryProvider(TQObject 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();
}