summaryrefslogtreecommitdiff
path: root/client-qt/udm-client-qt/downloads_model.h
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss@sss.chaoslab.ru>2015-09-22 13:59:38 +0300
committerGluzskiy Alexandr <sss@sss.chaoslab.ru>2015-09-22 13:59:38 +0300
commitbd7207d8bf82c58c60399c05c29c2312a8c0f258 (patch)
treebd8674bdf03e23d6797ab9e69ece4523307607ff /client-qt/udm-client-qt/downloads_model.h
parentacfde068698184249e50e0781a22bb38ba87cf3f (diff)
protocol:
added download state field to "download" added module defined download state names to "module_info" few fields description server: added download state to downloader api structures setting download states in outgoing downloads client-qt: basic implementation of download state in downloads table (withoud module defined states) fixed downloads table model update (working)
Diffstat (limited to 'client-qt/udm-client-qt/downloads_model.h')
-rw-r--r--client-qt/udm-client-qt/downloads_model.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/client-qt/udm-client-qt/downloads_model.h b/client-qt/udm-client-qt/downloads_model.h
index 08172d5..519d8ba 100644
--- a/client-qt/udm-client-qt/downloads_model.h
+++ b/client-qt/udm-client-qt/downloads_model.h
@@ -31,12 +31,21 @@ class downloads_model : public QAbstractTableModel
Q_OBJECT
public:
downloads_model(std::vector<download> &downloads, QObject *parent = 0);
+
int rowCount(const QModelIndex &parent = QModelIndex()) const;
+ int columnCount ( 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;
- int columnCount ( const QModelIndex & parent = QModelIndex() ) const;
+
+ QModelIndex index ( int row, int column, const QModelIndex & parent = QModelIndex() ) const;
+ QModelIndex parent ( const QModelIndex & index ) const;
+
+
bool insertRows(int position, int rows, const QModelIndex &index = QModelIndex());
bool removeRows(int position, int rows, const QModelIndex &index = QModelIndex());
+
+
void sort ( int column, Qt::SortOrder order = Qt::AscendingOrder );