summaryrefslogtreecommitdiffstats
path: root/konq-plugins/searchbar/searchbar.h
diff options
context:
space:
mode:
Diffstat (limited to 'konq-plugins/searchbar/searchbar.h')
-rw-r--r--konq-plugins/searchbar/searchbar.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/konq-plugins/searchbar/searchbar.h b/konq-plugins/searchbar/searchbar.h
index 3f03eb9..25e7ded 100644
--- a/konq-plugins/searchbar/searchbar.h
+++ b/konq-plugins/searchbar/searchbar.h
@@ -1,4 +1,6 @@
/* This file is part of the KDE project
+ Copyright (C) 2005 by Tobi Vollebregt <tobivollebregt@gmail.com>
+ Copyright (C) 2004 by Vinay Khaitan <vkhaitan@iitk.ac.in>
Copyright (C) 2004 Arend van Beelen jr. <arend@auton.nl>
This program is free software; you can redistribute it and/or
@@ -32,6 +34,7 @@
class KHTMLPart;
class KProcess;
class QPopupMenu;
+class QTimer;
/**
* Combo box which catches mouse clicks on the pixmap.
@@ -149,6 +152,22 @@ class SearchBarPlugin : public KParts::Plugin
void updateComboVisibility();
void focusSearchbar();
+
+ // Google Suggest private slots
+ void selectGoogleSuggestMode();
+ void gsStartDelay();
+ void gsMakeCompletionList();
+ void gsDataArrived(KIO::Job*, const QByteArray& data);
+ void gsJobFinished(KIO::Job* job);
+ void gsSetCompletedText(const QString& text);
+ void gsPutTextInBox(const QString& text);
+
+ signals:
+
+ // Google Suggest signals
+
+ void gsCompleteDelayed();
+
private:
void nextSearchEntry();
void previousSearchEntry();
@@ -157,12 +176,20 @@ class SearchBarPlugin : public KParts::Plugin
SearchBarCombo *m_searchCombo;
KWidgetAction *m_searchComboAction;
QPopupMenu *m_popupMenu;
+ KSelectAction *m_googleMenu;
QPixmap m_searchIcon;
SearchModes m_searchMode;
QString m_providerName;
bool m_urlEnterLock;
QString m_currentEngine;
QStringList m_searchEngines;
+
+ // Google Suggest private members
+
+ QTimer m_gsTimer;
+ QString m_gsData;
+ enum GoogleMode {GoogleOnly,ForAll,Never};
+ GoogleMode m_googleMode;
};
#endif // SEARCHBAR_PLUGIN