Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
RemoteReplayList_TreeWidget Class Reference

#include <remote_replay_list_tree_widget.h>

Inheritance diagram for RemoteReplayList_TreeWidget:
[legend]
Collaboration diagram for RemoteReplayList_TreeWidget:
[legend]

Public Member Functions

 RemoteReplayList_TreeWidget (AbstractClient *_client, QWidget *parent=nullptr)
ServerInfo_Replay const * getReplay (const QModelIndex &ind) const
ServerInfo_ReplayMatch const * getReplayMatch (const QModelIndex &ind) const
QList< ServerInfo_Replay const * > getSelectedReplays () const
QSet< ServerInfo_ReplayMatch const * > getSelectedReplayMatches () const
void clearTree ()
void refreshTree ()
void addMatchInfo (const ServerInfo_ReplayMatch &matchInfo)
void updateMatchInfo (int gameId, const ServerInfo_ReplayMatch &matchInfo)
void removeMatchInfo (int gameId)

Private Attributes

RemoteReplayList_TreeModel * treeModel
QSortFilterProxyModel * proxyModel

Constructor & Destructor Documentation

◆ RemoteReplayList_TreeWidget()

RemoteReplayList_TreeWidget::RemoteReplayList_TreeWidget ( AbstractClient * _client,
QWidget * parent = nullptr )
explicit
Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ addMatchInfo()

void RemoteReplayList_TreeWidget::addMatchInfo ( const ServerInfo_ReplayMatch & matchInfo)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ clearTree()

void RemoteReplayList_TreeWidget::clearTree ( )
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getReplay()

ServerInfo_Replay const * RemoteReplayList_TreeWidget::getReplay ( const QModelIndex & ind) const
nodiscard

Gets the replay at the given index

Returns
The replay. Returns nullptr if there is no replay at the index.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getReplayMatch()

ServerInfo_ReplayMatch const * RemoteReplayList_TreeWidget::getReplayMatch ( const QModelIndex & ind) const
nodiscard

Gets the replay match at the given index

Returns
The replay match. Returns nullptr if there is no replay match at the index.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getSelectedReplayMatches()

QSet< ServerInfo_ReplayMatch const * > RemoteReplayList_TreeWidget::getSelectedReplayMatches ( ) const
nodiscard

Gets all currently selected replayMatches. If a non-folder node is selected, it will return the parent folder of that node.

Returns
A Set of pointers to the selected replayMatches.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getSelectedReplays()

QList< ServerInfo_Replay const * > RemoteReplayList_TreeWidget::getSelectedReplays ( ) const
nodiscard

Gets all currently selected replays. Any selection that isn't a replay file (e.g. a folder) will appear as a nullptr in the list. Make sure to check the list for nullptr before using it.

Returns
A List of pointers to the selected replays, as well as nullptr for any selection that isn't a replay.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ refreshTree()

void RemoteReplayList_TreeWidget::refreshTree ( )
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ removeMatchInfo()

void RemoteReplayList_TreeWidget::removeMatchInfo ( int gameId)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateMatchInfo()

void RemoteReplayList_TreeWidget::updateMatchInfo ( int gameId,
const ServerInfo_ReplayMatch & matchInfo )
inline
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ proxyModel

QSortFilterProxyModel* RemoteReplayList_TreeWidget::proxyModel
private

◆ treeModel

RemoteReplayList_TreeModel* RemoteReplayList_TreeWidget::treeModel
private

The documentation for this class was generated from the following files: