From 85bc196887fbed01187e3830cd28c2500cb01cb2 Mon Sep 17 00:00:00 2001 From: David Faure Date: Mon, 26 Mar 2007 23:04:43 +0000 Subject: Ported to KBookmarkManager::closestBookmark - which even solves another TODO about code duplication. Improved urlnavigator API to avoid exposing the full QList (api independent from implementation now). svn path=/trunk/KDE/kdebase/apps/; revision=646954 --- src/urlnavigator.h | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'src/urlnavigator.h') diff --git a/src/urlnavigator.h b/src/urlnavigator.h index aa46709aa..8a1d2512d 100644 --- a/src/urlnavigator.h +++ b/src/urlnavigator.h @@ -58,10 +58,7 @@ class ProtocolCombo; * * The URL navigator also remembers the URL history and allows to go * back and forward within this history. -*/ - -//typedef QList UrlStack; - + */ class UrlNavigator : public QWidget { Q_OBJECT @@ -107,13 +104,16 @@ public: /** Returns the portion of the current active URL up to the button at index. */ KUrl url(int index) const; + /** Returns the amount of items in the history */ + int historySize() const; + /** - * Returns the complete URL history. The index 0 indicates the oldest + * Returns one item out of the history. The index 0 indicates the oldest * history element. * @param index Output parameter which indicates the current * index of the location. */ - const QList& history(int& index) const; + HistoryElem currentHistoryItem() const; /** * Goes back one step in the URL history. The signals @@ -315,7 +315,6 @@ private: QLineEdit* m_host; QLinkedList m_navButtons; QWidget* m_filler; - //UrlStack m_urls; }; #endif -- cgit v1.3