org.kde.koala

Class HistoryProvider

public class HistoryProvider extends 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 HistoryProviderSignals for signals emitted by HistoryProvider

Author: Carsten Pfeiffer

UNKNOWN: Basic class to manage a history of "items".

Constructor Summary
protected HistoryProvider(Class dummy)
HistoryProvider(QObject parent, String name)
Creates a KHistoryProvider with an optional parent and name
HistoryProvider(QObject parent)
HistoryProvider()
Method Summary
StringclassName()
voidclear()
Clears the history.
booleancontains(String item)
voidinsert(String item)
Inserts item into the history.
QMetaObjectmetaObject()
voidremove(String item)
Removes item from the history.
static HistoryProviderself()

Constructor Detail

HistoryProvider

protected HistoryProvider(Class dummy)

HistoryProvider

public HistoryProvider(QObject parent, String name)
Creates a KHistoryProvider with an optional parent and name

UNKNOWN: Creates a KHistoryProvider with an optional parent and name

HistoryProvider

public HistoryProvider(QObject parent)

HistoryProvider

public HistoryProvider()

Method Detail

className

public String className()

clear

public void clear()
Clears the history. The cleared() signal is emitted after clearing.

UNKNOWN: Clears the history.

contains

public boolean contains(String item)

Returns: true if item is present in the history.

UNKNOWN:

insert

public void insert(String item)
Inserts item into the history.

UNKNOWN: Inserts item into the history.

metaObject

public QMetaObject metaObject()

remove

public void remove(String item)
Removes item from the history.

UNKNOWN: Removes item from the history.

self

public static HistoryProvider self()