|
ORE Studio 0.0.4
|
Model for displaying dataset bundles fetched from the server. More...
#include <ClientDatasetBundleModel.hpp>
Inherits QAbstractTableModel.

Public Types | |
| enum | Column { Code , Name , Description , Version , RecordedBy , RecordedAt , ColumnCount } |
| Enumeration of table columns for type-safe column access. | |
Signals | |
| void | dataLoaded () |
| Emitted when data has been successfully loaded. | |
| void | loadError (const QString &error_message, const QString &details={}) |
| Emitted when an error occurs during data loading. | |
Public Member Functions | |
| ClientDatasetBundleModel (ClientManager *clientManager, QObject *parent=nullptr) | |
| int | rowCount (const QModelIndex &parent=QModelIndex()) const override |
| int | columnCount (const QModelIndex &parent=QModelIndex()) const override |
| QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const override |
| QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override |
| void | refresh () |
| Refresh dataset bundle data from server asynchronously. | |
| const dq::domain::dataset_bundle * | getBundle (int row) const |
| Get dataset bundle at the specified row. | |
Model for displaying dataset bundles fetched from the server.
This model extends QAbstractTableModel and fetches dataset bundle data asynchronously using the ores.comms client.
| const dq::domain::dataset_bundle * getBundle | ( | int | row | ) | const |
Get dataset bundle at the specified row.
| row | The row index. |