summaryrefslogtreecommitdiff
path: root/src/urlbar/urlresolver.h
diff options
context:
space:
mode:
authorlionelc <lionelc@lionelc.(none)>2010-04-15 18:36:07 +0200
committerlionelc <lionelc@lionelc.(none)>2010-04-15 18:36:07 +0200
commitee9fc135d6ee214e999aebebb59459fce9147b38 (patch)
tree0974172232b487ea996b33cd1b9bef99e297d12f /src/urlbar/urlresolver.h
parentSVN_SILENT made messages (.desktop file) (diff)
downloadrekonq-ee9fc135d6ee214e999aebebb59459fce9147b38.tar.xz
introduce search listitem
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();