summaryrefslogtreecommitdiff
path: root/src/urlbar/urlresolver.h
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-04-15 23:59:35 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-04-15 23:59:35 +0200
commitcc6d332afeb2ed940bcd3ca6bc307916b3ddf953 (patch)
treedf470b3f9d62a4034b27cf37df93e3cfe38f60b3 /src/urlbar/urlresolver.h
parentMerge commit 'refs/merge-requests/124' of git://gitorious.org/rekonq/mainline... (diff)
parentintroduce search listitem (diff)
downloadrekonq-cc6d332afeb2ed940bcd3ca6bc307916b3ddf953.tar.xz
Merge commit 'refs/merge-requests/77' of git://gitorious.org/rekonq/mainline into m77
Diffstat (limited to 'src/urlbar/urlresolver.h')
-rw-r--r--src/urlbar/urlresolver.h19
1 files changed, 9 insertions, 10 deletions
diff --git a/src/urlbar/urlresolver.h b/src/urlbar/urlresolver.h
index 3c082e00..610b1fd0 100644
--- a/src/urlbar/urlresolver.h
+++ b/src/urlbar/urlresolver.h
@@ -27,7 +27,6 @@
#ifndef URL_RESOLVER_H
#define URL_RESOLVER_H
-
// KDE Includes
#include <KUrl>
@@ -43,21 +42,21 @@ class UrlSearchItem
enum types
{
- Search = 0x00000001,
- Browse = 0x00000010,
- History = 0x00000100,
- Bookmark = 0x00001000,
- Suggestion = 0x00010000,
+ Search = 0x00000001,
+ Browse = 0x00000010,
+ History = 0x00000100,
+ Bookmark = 0x00001000,
};
int type;
KUrl url;
QString title;
+ QString icon;
- UrlSearchItem(const int &_type, const KUrl &_url, const QString &_title = QString())
- : type(_type), url(_url), title(_title)
+ UrlSearchItem(const int &_type, const KUrl &_url, const QString &_title = QString(), const QString &_icon = QString())
+ : type(_type), url(_url), title(_title), icon(_icon)
{};
-
+
bool operator==(UrlSearchItem i);
};
@@ -75,7 +74,7 @@ public:
UrlSearchList orderedSearchItems();
private:
- QString _urlString;
+ QString _urlString; //TODO: give a better name
UrlSearchList webSearchesResolution();
UrlSearchList historyResolution();