|
ORE Studio 0.0.4
|
Table model for filtered trades in the portfolio/book tree window. More...
#include <PortfolioExplorerTradeModel.hpp>
Inherits QAbstractTableModel.

Signals | |
| void | dataLoaded () |
| void | loadError (const QString &error_message, const QString &details={}) |
Public Member Functions | |
| PortfolioExplorerTradeModel (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 | set_filter (std::optional< boost::uuids::uuid > book_id, std::optional< boost::uuids::uuid > portfolio_id) |
| Set book/portfolio filter and clear existing data. | |
| void | set_counterparty_map (std::unordered_map< std::string, CounterpartyInfo > cpty_map) |
| Set the counterparty lookup map (UUID string -> CounterpartyInfo). | |
| void | refresh () |
| Refresh trade data from server using current filter. | |
| void | load_page (std::uint32_t offset, std::uint32_t limit) |
| Load a specific page. | |
| std::uint32_t | total_available_count () const |
| Get total available count from last fetch. | |
| const trading::domain::trade * | get_trade (int row) const |
| Get the trade at the given row. | |
Table model for filtered trades in the portfolio/book tree window.
Mirrors ClientTradeModel but adds counterparty display columns and optional book_id / portfolio_id filter fields.