1 #ifndef DOWNLOADMODEL_H
2 #define DOWNLOADMODEL_H
4 #include <QAbstractListModel>
8 class DownloadModel : public QAbstractListModel {
13 DownloadModel(DownloadManager *downloadManager, QObject *parent);
14 int rowCount(const QModelIndex &parent = QModelIndex()) const;
15 QVariant data(const QModelIndex &index, int role) const;
16 friend class DownloadManager;
17 void setHoveredRow(int row);
21 void enterPlayIconHover();
22 void exitPlayIconHover();
23 void enterPlayIconPressed();
24 void exitPlayIconPressed();
26 void updatePlayIcon();
29 int columnCount() { return 1; }
31 DownloadManager *downloadManager;
38 #endif // DOWNLOADMODEL_H