1 #ifndef __SEARCHVIEW_H__
2 #define __SEARCHVIEW_H__
12 class SearchView : public QWidget, public View {
17 SearchView(QWidget *parent);
18 void updateRecentKeywords();
19 void updateRecentChannels();
23 QMap<QString, QVariant> metadata() {
24 QMap<QString, QVariant> metadata;
25 metadata.insert("title", "");
26 metadata.insert("description", tr("Make yourself comfortable"));
31 void watch(QString query);
32 void watchChannel(QString channel);
33 void watchKeywords(QString query);
36 void search(SearchParams*);
39 void paintEvent(QPaintEvent *);
43 void textChanged(const QString &text);
44 void searchTypeChanged(int index);
47 YouTubeSuggest *youtubeSuggest;
48 ChannelSuggest *channelSuggest;
51 SearchLineEdit *queryEdit;
52 QLabel *recentKeywordsLabel;
53 QBoxLayout *recentKeywordsLayout;
54 QLabel *recentChannelsLabel;
55 QBoxLayout *recentChannelsLayout;
57 QPushButton *watchButton;
61 #endif // __SEARCHVIEW_H__