![]() |
Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
|
#include <pending_command.h>
Signals | |
| void | finished (const Response &response, const CommandContainer &commandContainer, const QVariant &extraData) |
Public Member Functions | |
| PendingCommand (const CommandContainer &_commandContainer, QVariant _extraData=QVariant()) | |
| CommandContainer & | getCommandContainer () |
| void | setExtraData (const QVariant &_extraData) |
| QVariant | getExtraData () const |
| void | processResponse (const Response &response) |
| int | tick () |
| void | startTiming () |
| Starts the round-trip timer. Called by the client thread right before the command container is handed to the transport layer. | |
| qint64 | elapsedMs () const |
Private Attributes | |
| CommandContainer | commandContainer |
| QVariant | extraData |
| int | ticks |
| QElapsedTimer | startTime |
|
explicit |
| qint64 PendingCommand::elapsedMs | ( | ) | const |
|
signal |
| CommandContainer & PendingCommand::getCommandContainer | ( | ) |
| QVariant PendingCommand::getExtraData | ( | ) | const |
| void PendingCommand::processResponse | ( | const Response & | response | ) |
| void PendingCommand::setExtraData | ( | const QVariant & | _extraData | ) |
| void PendingCommand::startTiming | ( | ) |
Starts the round-trip timer. Called by the client thread right before the command container is handed to the transport layer.
| int PendingCommand::tick | ( | ) |
|
private |
|
private |
|
private |
|
private |