Sayonara Player
SomaFMStationModel.h
1 #ifndef SomaFMStationModel_H
2 #define SomaFMStationModel_H
3 
4 #include "GUI/Helper/SearchableWidget/AbstractSearchModel.h"
5 #include <QMap>
6 
8 {
9  Q_OBJECT
10 public:
11  explicit SomaFMStationModel(QObject *parent = 0);
12 
13 private:
14  QStringList _stations;
15 
16  // QAbstractItemModel interface
17 public:
18  int rowCount(const QModelIndex& parent=QModelIndex()) const;
19  QVariant data(const QModelIndex& index, int role) const;
20 
21  // AbstractSearchModelInterface interface
22 public:
23  QModelIndex getFirstRowIndexOf(QString substr);
24  QModelIndex getNextRowIndexOf(QString substr, int cur_row, const QModelIndex& parent);
25  QModelIndex getPrevRowIndexOf(QString substr, int cur_row, const QModelIndex& parent);
26  QMap<QChar, QString> getExtraTriggers();
27 
28 
29  void setStringList(const QStringList& stations);
30 };
31 
32 #endif // SomaFMStationModel_H
Definition: AbstractSearchModel.h:56
Definition: SomaFMStationModel.h:7