summaryrefslogtreecommitdiff
path: root/src/urlbar/urlresolver.h
diff options
context:
space:
mode:
authormegabigbug <megabigbug@arrakis.(none)>2010-05-16 12:55:36 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-05-24 17:21:48 +0200
commit96139ac06a22c8b341c4ef1ab2f8cdd8134ac4db (patch)
tree29131b2a0fcacaf8baf53648854701ae56951199 /src/urlbar/urlresolver.h
parentMerge commit 'refs/merge-requests/2275' of git://gitorious.org/rekonq/mainlin... (diff)
downloadrekonq-96139ac06a22c8b341c4ef1ab2f8cdd8134ac4db.tar.xz
remove domainNameItem() method
search a privilged item in the bookmark and history list instead of in the result list
Diffstat (limited to 'src/urlbar/urlresolver.h')
-rw-r--r--src/urlbar/urlresolver.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/urlbar/urlresolver.h b/src/urlbar/urlresolver.h
index 0c7df8c8..2249ea32 100644
--- a/src/urlbar/urlresolver.h
+++ b/src/urlbar/urlresolver.h
@@ -45,6 +45,7 @@ public:
enum types
{
+ Undefined = 0x00000000,
Search = 0x00000001,
Browse = 0x00000010,
History = 0x00000100,
@@ -54,7 +55,15 @@ public:
int type;
KUrl url;
QString title;
-
+
+ UrlSearchItem(const UrlSearchItem &item)
+ : type(item.type), url(item.url), title(item.title)
+ {};
+
+ UrlSearchItem()
+ : type(UrlSearchItem::Undefined), url(KUrl()), title("")
+ {};
+
UrlSearchItem(const int &_type, const KUrl &_url, const QString &_title = QString())
: type(_type), url(_url), title(_title)
{};
@@ -82,7 +91,7 @@ private:
UrlSearchList historyResolution();
UrlSearchList qurlFromUserInputResolution();
UrlSearchList bookmarksResolution();
- UrlSearchList placeTypedDomaineNameOnTop(UrlSearchList list);
+ UrlSearchItem privilegedItem(UrlSearchList* list);
static QRegExp _browseRegexp;
};