diff options
author | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2015-09-10 00:15:07 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2015-09-10 00:15:07 +0300 |
commit | ccffc685c412183b56f822438da5cc8a575d757e (patch) | |
tree | 4ff9b3abb4ac1d94941ff5aa5aee9ee4cbe74a3e /client-qt/udm-client-qt/downloads_model.h | |
parent | b5af51e358073145cdf66470cc890d98547a6dac (diff) |
client-qt:
handle disconnect
basic downloads model (still draft with unimplemented basic features like dynamic columns count, dynamic columns will be implemented next)
basic handler for download list (in theory it's already working now, but untested)
basic modules info handler (just store data in memory for now, all basic features still unimplemented, download info ui templates generation will be implemented next here)
basic core info handler (just store data in memory for now, core settings and core info ui will be implemented next here.)
server:
api:
added client metadata manipulation api for downloader modules
added metadata map to download structure in downloader modules
curl_downloader:
implemented new api's
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 |