summaryrefslogtreecommitdiff
path: root/src/urlbar/completionwidget.h
diff options
context:
space:
mode:
authormegabigbug <megabigbug@arrakis.(none)>2010-04-23 08:25:45 +0200
committermegabigbug <megabigbug@arrakis.(none)>2010-04-23 08:25:45 +0200
commitfb871ac2b4c5d20489c8d77022269b99634b5778 (patch)
tree759f224adc5b71c079b251e80bc414737512631c /src/urlbar/completionwidget.h
parentMerge branch 'master' of gitorious.org:rekonq/mainline (diff)
downloadrekonq-fb871ac2b4c5d20489c8d77022269b99634b5778.tar.xz
refractoring on search engines
Diffstat (limited to 'src/urlbar/completionwidget.h')
-rw-r--r--src/urlbar/completionwidget.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/urlbar/completionwidget.h b/src/urlbar/completionwidget.h
index e9851484..afd9b7e1 100644
--- a/src/urlbar/completionwidget.h
+++ b/src/urlbar/completionwidget.h
@@ -34,6 +34,7 @@
// KDE Includes
#include <KLineEdit>
+#include <KService>
// Qt Includes
#include <QFrame>
@@ -49,8 +50,8 @@ public:
virtual bool eventFilter(QObject *obj, QEvent *ev);
void setVisible(bool visible);
- QString searchEngine() { return _searchEngine; };
- void setCurrentEngine(const QString &engine) { _searchEngine = engine; };
+ KService::Ptr searchEngine() { return _searchEngine; };
+ void setCurrentEngine(KService::Ptr engine) { _searchEngine = engine; };
private slots:
void itemChosen(ListItem *item, Qt::MouseButton = Qt::LeftButton);
@@ -61,8 +62,6 @@ signals:
void nextItemSubChoice();
private:
- QString defaultSearchEngine();
-
void insertSearchList(const UrlSearchList &list, const QString& text);
void popup();
void clear();
@@ -76,7 +75,7 @@ private:
UrlSearchList _list;
int _currentIndex;
- QString _searchEngine;
+ KService::Ptr _searchEngine;
};
#endif // COMPLETION_WIDGET_H