|
ORE Studio 0.0.4
|
Read-only table model that joins results, workunits, and batches. More...
#include <ComputeTaskViewModel.hpp>


Public Types | |
| enum | Column { Label , State , Outcome , Host , Duration , Batch , Received , ColumnCount } |
Public Member Functions | |
| ComputeTaskViewModel (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 () |
| Fetch and join all batches, workunits, and results. | |
| const compute_task * | get_task (int row) const |
| Returns the task at the given row, or nullptr if out of range. | |
| void | set_host_name_cache (HostDisplayNameCache *cache) |
| Sets the host display-name cache (not owned). | |
Additional Inherited Members | |
Signals inherited from AbstractClientModel | |
| void | dataLoaded () |
| void | loadError (const QString &error_message, const QString &details={}) |
Read-only table model that joins results, workunits, and batches.
Issues three async NATS requests (batches, workunits, results) in a single background task, joins them by UUID, and presents one row per result. The Host column is resolved lazily via HostDisplayNameCache.