summaryrefslogtreecommitdiff
path: root/src/urlbar/urlresolver.h
diff options
context:
space:
mode:
authorlionelc <lionelc@lionelc.(none)>2010-04-01 19:53:18 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-04-02 22:01:33 +0200
commitb18f2e5dfcc17615d73fdbd20cb4e312ea83dfaf (patch)
tree00fb0c3437445658a7eec270b0d5c24ff8e1e22a /src/urlbar/urlresolver.h
parentmanage common item of bookmarks and history (diff)
downloadrekonq-b18f2e5dfcc17615d73fdbd20cb4e312ea83dfaf.tar.xz
multiple icons for type of items
display icon of website
Diffstat (limited to 'src/urlbar/urlresolver.h')
-rw-r--r--src/urlbar/urlresolver.h20
1 files changed, 16 insertions, 4 deletions
diff --git a/src/urlbar/urlresolver.h b/src/urlbar/urlresolver.h
index 54b96d63..489a5a79 100644
--- a/src/urlbar/urlresolver.h
+++ b/src/urlbar/urlresolver.h
@@ -35,13 +35,25 @@
class UrlSearchItem
{
-public:
+
+ public:
+
+ enum types
+ {
+ Search = 0x00000001,
+ Browse = 0x00000010,
+ History = 0x00000100,
+ Bookmark = 0x00001000,
+ Suggestion = 0x00010000,
+ };
+
+ int type;
QString url;
QString title;
QString icon;
-
- UrlSearchItem(const QString &_url, const QString &_title = QString(), const QString &_icon = QString())
- : url(_url), title(_title), icon(_icon)
+
+ UrlSearchItem(const int &_type, const QString &_url, const QString &_title = QString(), const QString &_icon = QString())
+ : type(_type), url(_url), title(_title), icon(_icon)
{};
bool operator==(UrlSearchItem i);