Enable use of StationListModel
[quandoparte] / application / stationlistview.h
1 #ifndef STATIONLISTVIEW_H
2 #define STATIONLISTVIEW_H
3
4 #include <QMainWindow>
5 #include <QModelIndex>
6
7 namespace Ui {
8     class StationListView;
9 }
10
11 class QActionGroup;
12 class QStringListModel;
13 class QSortFilterProxyModel;
14 class KeyPressForwarder;
15
16 class StationView;
17 class StationListModel;
18
19 class StationListView : public QMainWindow
20 {
21     Q_OBJECT
22
23 public:
24     explicit StationListView(StationListModel *model, QWidget *parent = 0);
25     ~StationListView();
26
27 signals:
28     void stationSelected(const QString &);
29     void aboutTriggered(void);
30
31 private slots:
32     void showSettings(void);
33     void showStation(const QModelIndex &index);
34     void handleFilterChanges(const QString &filter);
35
36 private:
37     Ui::StationListView *ui;
38     QActionGroup *viewSelectionGroup;
39     StationListModel *stationListModel;
40     QSortFilterProxyModel *filterModel;
41     KeyPressForwarder *keyPressForwarder;
42 };
43
44 #endif // STATIONLISTVIEW_H