KonqHistoryManager Class Reference
This class maintains and manages a history of all URLs visited by one Konqueror instance. More...
#include <konq_historymgr.h>
Inheritance diagram for KonqHistoryManager:

Public Slots | |
bool | loadHistory () |
bool | saveHistory () |
void | emitClear () |
Signals | |
void | loadingFinished () |
void | entryAdded (const KonqHistoryEntry *entry) |
void | entryRemoved (const KonqHistoryEntry *entry) |
Public Member Functions | |
KonqHistoryManager (QObject *parent, const char *name) | |
void | emitSetMaxCount (Q_UINT32 count) |
void | emitSetMaxAge (Q_UINT32 days) |
void | emitRemoveFromHistory (const KURL &url) |
void | emitRemoveFromHistory (const KURL::List &urls) |
Q_UINT32 | maxCount () const |
Q_UINT32 | maxAge () const |
void | addPending (const KURL &url, const QString &typedURL=QString::null, const QString &title=QString::null) |
void | confirmPending (const KURL &url, const QString &typedURL=QString::null, const QString &title=QString::null) |
void | removePending (const KURL &url) |
KCompletion * | completionObject () const |
const KonqHistoryList & | entries () const |
virtual void | insert (const QString &) |
virtual void | remove (const QString &) |
virtual void | clear () |
Static Public Member Functions | |
static KonqHistoryManager * | kself () |
Protected Member Functions | |
void | adjustSize () |
bool | isExpired (KonqHistoryEntry *entry) |
void | emitAddToHistory (const KonqHistoryEntry &entry) |
virtual void | notifyHistoryEntry (KonqHistoryEntry e, QCString saveId) |
virtual void | notifyMaxCount (Q_UINT32 count, QCString saveId) |
virtual void | notifyMaxAge (Q_UINT32 days, QCString saveId) |
virtual void | notifyClear (QCString saveId) |
virtual void | notifyRemove (KURL url, QCString saveId) |
virtual void | notifyRemove (KURL::List urls, QCString saveId) |
virtual QStringList | allURLs () const |
void | addToHistory (bool pending, const KURL &url, const QString &typedURL=QString::null, const QString &title=QString::null) |
virtual bool | filterOut (const KURL &url) |
void | addToUpdateList (const QString &url) |
Protected Attributes | |
QStringList | m_updateURLs |
Detailed Description
This class maintains and manages a history of all URLs visited by one Konqueror instance.Additionally it synchronizes the history with other Konqueror instances via DCOP to keep one global and persistant history.
It keeps the history in sync with one KCompletion object
Definition at line 74 of file konq_historymgr.h.
Member Function Documentation
|
Sets a new maximum size of history and truncates the current history if necessary. Notifies all other Konqueror instances via DCOP to do the same. The history is saved after receiving the DCOP call. Definition at line 419 of file konq_historymgr.cc. |
|
Sets a new maximum age of history entries and removes all entries that are older than Notifies all other Konqueror instances via DCOP to do the same. An age of 0 means no expiry based on the age. The history is saved after receiving the DCOP call. Definition at line 428 of file konq_historymgr.cc. |
|
Removes the history entry for Tells all other Konqueror instances via DCOP to do the same. The history is saved after receiving the DCOP call. Definition at line 392 of file konq_historymgr.cc. Referenced by removePending(). |
|
Removes the history entries for the given list of Tells all other Konqueror instances via DCOP to do the same. The history is saved after receiving the DCOP call. Definition at line 401 of file konq_historymgr.cc. |
|
Definition at line 126 of file konq_historymgr.h. |
|
Definition at line 131 of file konq_historymgr.h. |
|
Adds a pending entry to the history.
Pending means, that the entry is not verified yet, i.e. it is not sure
If an entry with
Definition at line 256 of file konq_historymgr.cc. References addToHistory(). |
|
Confirms and updates the entry for
Definition at line 262 of file konq_historymgr.cc. References addToHistory(). |
|
Removes a pending url from the history, e.g. when the url does not exist, or the user aborted loading. Definition at line 361 of file konq_historymgr.cc. References emitAddToHistory(), and emitRemoveFromHistory(). |
|
Definition at line 169 of file konq_historymgr.h. |
|
Definition at line 175 of file konq_historymgr.h. |
|
Reimplemented in such a way that all URLs that would be filtered out normally (see filterOut()) will still be added to the history. By default, file:/ urls will be filtered out, but if they come thru the HistoryProvider interface, they are added to the history. Definition at line 336 of file konq_historymgr.cc. References emitAddToHistory(), and filterOut(). |
|
Loads the history and fills the completion object.
Definition at line 81 of file konq_historymgr.cc. References adjustSize(), and loadingFinished(). |
|
Saves the entire history.
Definition at line 200 of file konq_historymgr.cc. Referenced by notifyClear(), notifyHistoryEntry(), notifyMaxAge(), notifyMaxCount(), and notifyRemove(). |
|
Clears the history and tells all other Konqueror instances via DCOP to do the same. The history is saved afterwards, if necessary. Definition at line 410 of file konq_historymgr.cc. |
|
Emitted after the entire history was loaded from disk.
Referenced by loadHistory(). |
|
Emitted after a new entry was added.
Referenced by notifyHistoryEntry(). |
|
Emitted after an entry was removed from the history Note, that this entry will be deleted immediately after you got that signal.
Referenced by adjustSize(), and notifyRemove(). |
|
Resizes the history list to contain less or equal than m_maxCount entries. The first (oldest) entries are removed. Definition at line 236 of file konq_historymgr.cc. References entryRemoved(), and isExpired(). Referenced by loadHistory(), notifyHistoryEntry(), notifyMaxAge(), and notifyMaxCount(). |
|
Definition at line 237 of file konq_historymgr.h. Referenced by adjustSize(). |
|
Notifes all running instances about a new HistoryEntry via DCOP.
Definition at line 350 of file konq_historymgr.cc. Referenced by addToHistory(), insert(), and removePending(). |
|
Every konqueror instance broadcasts new history entries to the other konqueror instances. Those add the entry to their list, but don't save the list, because the sender saves the list.
Implements KonqHistoryComm. Definition at line 440 of file konq_historymgr.cc. References adjustSize(), entryAdded(), and saveHistory(). |
|
Called when the configuration of the maximum count changed. Called via DCOP by some config-module Implements KonqHistoryComm. Definition at line 487 of file konq_historymgr.cc. References adjustSize(), and saveHistory(). |
|
Called when the configuration of the maximum age of history-entries changed. Called via DCOP by some config-module Implements KonqHistoryComm. Definition at line 503 of file konq_historymgr.cc. References adjustSize(), and saveHistory(). |
|
Clears the history completely. Called via DCOP by some config-module Implements KonqHistoryComm. Definition at line 519 of file konq_historymgr.cc. References saveHistory(). |
|
Notifes about a url that has to be removed from the history. The instance where saveId == objId() has to save the history. Implements KonqHistoryComm. Definition at line 531 of file konq_historymgr.cc. References entryRemoved(), and saveHistory(). |
|
Notifes about a list of urls that has to be removed from the history. The instance where saveId == objId() has to save the history. Implements KonqHistoryComm. Definition at line 555 of file konq_historymgr.cc. References entryRemoved(), and saveHistory(). |
|
Implements KonqHistoryComm. Definition at line 672 of file konq_historymgr.cc. |
|
Does the work for addPending() and confirmPending().
Adds an entry to the history. If an entry with Definition at line 270 of file konq_historymgr.cc. References emitAddToHistory(), and filterOut(). Referenced by addPending(), and confirmPending(). |
|
Definition at line 661 of file konq_historymgr.cc. Referenced by addToHistory(), and insert(). |
Member Data Documentation
|
The list of urls that is going to be emitted in slotEmitUpdated. Add urls to it whenever you modify the list of history entries and start m_updateTimer. Definition at line 324 of file konq_historymgr.h. |
The documentation for this class was generated from the following files: