equal
deleted
inserted
replaced
19 #define IRMAINMODEL_H |
19 #define IRMAINMODEL_H |
20 |
20 |
21 #include <QAbstractListModel> |
21 #include <QAbstractListModel> |
22 #include <QStringList> |
22 #include <QStringList> |
23 |
23 |
|
24 class IRPlayList; |
|
25 |
24 class IRMainModel : public QAbstractListModel |
26 class IRMainModel : public QAbstractListModel |
25 { |
27 { |
26 Q_OBJECT |
28 Q_OBJECT |
27 public: |
29 public: |
28 explicit IRMainModel(QObject *aParent = 0); |
30 explicit IRMainModel(IRPlayList *aPlayList, QObject *aParent = 0); |
29 |
31 |
30 int rowCount(const QModelIndex &aParent = QModelIndex()) const; |
32 int rowCount(const QModelIndex &aParent = QModelIndex()) const; |
31 QVariant data(const QModelIndex &aIndex, int aRole = Qt::DisplayRole) const; |
33 QVariant data(const QModelIndex &aIndex, int aRole = Qt::DisplayRole) const; |
32 |
34 |
33 void checkUpdate(); |
35 void checkUpdate(); |
34 |
36 |
35 private: |
37 private: |
36 void initModel(); |
38 void initModel(); |
37 |
39 |
38 private: |
40 private: |
|
41 IRPlayList *iPlayList; |
39 QStringList iPrimaryTexts; |
42 QStringList iPrimaryTexts; |
40 QStringList iSecondaryTexts; |
|
41 }; |
43 }; |
42 |
44 |
43 #endif |
45 #endif |