summaryrefslogtreecommitdiff
path: root/src/urlbar/urlresolver.h
diff options
context:
space:
mode:
authorlionelc <megabigbug@yahoo.fr>2010-09-01 19:32:44 +0200
committerlionelc <megabigbug@yahoo.fr>2010-09-01 19:32:44 +0200
commit3e527d1d33fc147989942d03ee59497e6f3e42d0 (patch)
tree5c398b70f754e6c48b5c05e3c50ce5b667930951 /src/urlbar/urlresolver.h
parentThis should improve adblock retrieving by NOT asking for SSL confirmations (diff)
downloadrekonq-3e527d1d33fc147989942d03ee59497e6f3e42d0.tar.xz
big commit: fix fast typing
Diffstat (limited to 'src/urlbar/urlresolver.h')
-rw-r--r--src/urlbar/urlresolver.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/urlbar/urlresolver.h b/src/urlbar/urlresolver.h
index 4e85e917..dc579e0e 100644
--- a/src/urlbar/urlresolver.h
+++ b/src/urlbar/urlresolver.h
@@ -33,7 +33,7 @@
// KDE Includes
#include <KUrl>
-
+#include <KService>
// Qt Includes
#include <QString>
@@ -104,6 +104,16 @@ public:
UrlSearchList orderedSearchItems();
+ static KService::Ptr searchEngine()
+ {
+ return _searchEngine;
+ };
+
+ static void setSearchEngine(KService::Ptr engine)
+ {
+ _searchEngine = engine;
+ };
+
private:
QString _typedString;
@@ -124,6 +134,8 @@ private:
static QRegExp _browseRegexp;
static QRegExp _searchEnginesRegexp;
+
+ static KService::Ptr _searchEngine;
private slots:
void suggestionsReceived(const QString &text, const QStringList &suggestions);