diff options
Diffstat (limited to 'client-qt/udm-client-qt/downloads_model.h')
-rw-r--r-- | client-qt/udm-client-qt/downloads_model.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/client-qt/udm-client-qt/downloads_model.h b/client-qt/udm-client-qt/downloads_model.h index 5a27e90..fc7cfbc 100644 --- a/client-qt/udm-client-qt/downloads_model.h +++ b/client-qt/udm-client-qt/downloads_model.h @@ -24,12 +24,13 @@ #define DOWNLOADS_MODEL_H #include <QAbstractItemModel> +#include "../../protocol/udm.pb.h" class downloads_model : public QAbstractTableModel { Q_OBJECT public: - downloads_model(QObject *parent = 0); + downloads_model(std::vector<download> &downloads, QObject *parent = 0); int rowCount(const QModelIndex &parent = QModelIndex()) const; QVariant data(const QModelIndex &index, int role) const; QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const; @@ -42,6 +43,8 @@ public: signals: public slots: +private: + std::vector<download> &downloads; }; #endif // DOWNLOADS_MODEL_H |