summaryrefslogtreecommitdiff
path: root/src/urlbar/urlresolver.h
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-09-02 10:32:09 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-09-02 10:32:09 +0200
commitad83718d864898600356031acc39ebfe403eeaad (patch)
treee9b9be2a72aadbca1fba96ab4406b660f66b240c /src/urlbar/urlresolver.h
parentfix memory leak when delete current job in opensearchmanager (diff)
parentbig commit: fix fast typing (diff)
downloadrekonq-ad83718d864898600356031acc39ebfe403eeaad.tar.xz
Merge commit 'refs/merge-requests/195' of git://gitorious.org/rekonq/mainline into m195
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);