+ private slots:
+ void on_searchButton_clicked();
+ void on_searchResult(QWidget* resultWidget);
+ void on_loadFinished(bool ok);
+ void on_linkClicked(const QUrl& url);
+ void on_downloadFinished(QString filepath);
+
+ private:
+ void ParseSearchEngineDescriptions(const QDir& dir);
+
+ private:
+ QComboBox *comboBox_; // Holds the search engine names. Combobox index maps to engineTemplates_ index
+ QLineEdit *searchLine_;
+ QPushButton *searchButton_;
+ QWebView *result_; // Do not delete, plugin host takes ownership
+ DownloadManager *dlManager_;
+ PluginHostInterface* host_;
+ std::vector<QString> engineTemplates_; // Holds the search URL templates