diff options
author | megabigbug <megabigbug@arrakis.(none)> | 2010-08-15 16:19:10 +0200 |
---|---|---|
committer | megabigbug <megabigbug@arrakis.(none)> | 2010-08-15 16:19:10 +0200 |
commit | 20879867364e31cdd8e80d0f732cf03b140e28ea (patch) | |
tree | e25978bfe64228d943ab83c7a29aa79563356119 /src/urlbar/urlresolver.h | |
parent | wait signal (diff) | |
download | rekonq-20879867364e31cdd8e80d0f732cf03b140e28ea.tar.xz |
working opensearch suggestions
Diffstat (limited to 'src/urlbar/urlresolver.h')
-rw-r--r-- | src/urlbar/urlresolver.h | 29 |
1 files changed, 23 insertions, 6 deletions
diff --git a/src/urlbar/urlresolver.h b/src/urlbar/urlresolver.h index d41e3f1a..f72d6731 100644 --- a/src/urlbar/urlresolver.h +++ b/src/urlbar/urlresolver.h @@ -38,6 +38,7 @@ // Qt Includes #include <QString> #include <QList> +#include <QStringList> class UrlSearchItem { @@ -94,8 +95,10 @@ typedef QList <UrlSearchItem> UrlSearchList; // ---------------------------------------------------------------------- -class UrlResolver +class UrlResolver : public QObject { + Q_OBJECT + public: UrlResolver(const QString &typedUrl); @@ -104,15 +107,29 @@ public: private: QString _typedString; - UrlSearchList webSearchesResolution(); - UrlSearchList historyResolution(); - UrlSearchList qurlFromUserInputResolution(); - UrlSearchList bookmarksResolution(); + UrlSearchList _webSearches; + UrlSearchList _qurlFromUserInput; + UrlSearchList _history; + UrlSearchList _bookmarks; + UrlSearchList _suggestions; + + void computeWebSearches(); + void computeHistory(); + void computeQurlFromUserInput(); + void computeBookmarks(); + void computeSuggestions(); + + int _computedListsCount; + UrlSearchItem privilegedItem(UrlSearchList* list); - UrlSearchList suggestionResolution(); + UrlSearchList orderLists(); static QRegExp _browseRegexp; static QRegExp _searchEnginesRegexp; + +private slots: + void suggestionsReceived(const QStringList &suggestion); + }; // ------------------------------------------------------------------------------ |