class HistoryProvider

Basic class to manage a history of "items". More...

Full nameKParts::HistoryProvider
Definition#include <historyprovider.h>
InheritsQObject (qt) [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Signals

Public Static Methods

Protected Methods


Detailed Description

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.

HistoryProvider *  self ()

self

[static]

 HistoryProvider ( QObject *parent = 0L, const char *name = 0 )

HistoryProvider

Creates a KHistoryProvider with an optional parent and name

 ~HistoryProvider ()

~HistoryProvider

[virtual]

Destroys the provider.

bool  contains ( const QString& item )

contains

[const virtual]

Returns: true if item is present in the history.

void  insert ( const QString& item )

insert

[virtual]

Inserts item into the history.

void  remove ( const QString& item )

remove

[virtual]

Removes item from the history.

void  clear ()

clear

[virtual]

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

void  cleared ()

cleared

[signal]

Emitted after the history has been cleared.

void  updated ( const QStringList& items )

updated

[signal]

This signal is never emitted from this class, it is only meant as an interface for subclasses. Emit this signal to notify others that the history has changed. Put those items that were added or removed from the history into items.

void  virtual_hook ( int id, void* data )

virtual_hook

[protected virtual]