![]() |
Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
|
#include <remote_replay_list_tree_widget.h>
Classes | |
| class | Node |
| class | MatchNode |
| class | ReplayNode |
Signals | |
| void | treeRefreshed () |
Public Member Functions | |
| RemoteReplayList_TreeModel (AbstractClient *_client, QObject *parent=nullptr) | |
| ~RemoteReplayList_TreeModel () override | |
| int | rowCount (const QModelIndex &parent=QModelIndex()) const override |
| int | columnCount (const QModelIndex &=QModelIndex()) const override |
| QVariant | data (const QModelIndex &index, int role) const override |
| QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override |
| QModelIndex | index (int row, int column, const QModelIndex &parent=QModelIndex()) const override |
| QModelIndex | parent (const QModelIndex &index) const override |
| Qt::ItemFlags | flags (const QModelIndex &index) const override |
| void | clearTree () |
| void | refreshTree () |
| ServerInfo_Replay const * | getReplay (const QModelIndex &index) const |
| ServerInfo_ReplayMatch const * | getReplayMatch (const QModelIndex &index) const |
| ServerInfo_ReplayMatch const * | getEnclosingReplayMatch (const QModelIndex &index) const |
| void | addMatchInfo (const ServerInfo_ReplayMatch &matchInfo) |
| void | updateMatchInfo (int gameId, const ServerInfo_ReplayMatch &matchInfo) |
| void | removeMatchInfo (int gameId) |
Private Slots | |
| void | replayListFinished (const Response &r) |
Private Member Functions | |
| void | clearAll () |
Private Attributes | |
| AbstractClient * | client |
| QList< MatchNode * > | replayMatches |
| QIcon | dirIcon |
| QIcon | fileIcon |
| QIcon | lockIcon |
Static Private Attributes | |
| static const int | numberOfColumns = 6 |
|
explicit |
|
override |
| void RemoteReplayList_TreeModel::addMatchInfo | ( | const ServerInfo_ReplayMatch & | matchInfo | ) |
|
private |
Deletes all items in the model
| void RemoteReplayList_TreeModel::clearTree | ( | ) |
|
inlinenodiscardoverride |
|
nodiscardoverride |
|
nodiscardoverride |
|
nodiscard |
|
nodiscard |
|
nodiscard |
|
nodiscardoverride |
|
nodiscardoverride |
|
nodiscardoverride |
| void RemoteReplayList_TreeModel::refreshTree | ( | ) |
| void RemoteReplayList_TreeModel::removeMatchInfo | ( | int | gameId | ) |
|
privateslot |
|
nodiscardoverride |
|
signal |
| void RemoteReplayList_TreeModel::updateMatchInfo | ( | int | gameId, |
| const ServerInfo_ReplayMatch & | matchInfo ) |
|
private |
|
private |
|
private |
|
private |
|
staticprivate |