![]() |
Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
|
#include <intent.h>
Signals | |
| void | finished () |
| void | failed (QString reason) |
| void | cancelled () |
Public Member Functions | |
| Intent (QObject *parent=nullptr) | |
| ~Intent () override | |
| void | execute () |
Protected Member Functions | |
| virtual bool | checkPrecondition () const =0 |
| virtual void | onPreconditionSatisfied ()=0 |
| virtual void | onPreconditionNotSatisfied ()=0 |
| void | runDependency (Intent *dependency) |
| void | emitFinished () |
| void | emitFailed (const QString &reason) |
| void | emitCancelled () |
Private Attributes | |
| bool | completed = false |
|
explicit |
|
overridedefault |
|
signal |
|
protectedpure virtual |
Implemented in IntentConnectToServer, IntentDisconnectFromServer, IntentGetLoginCredentials, IntentJoinServerGame, IntentJoinServerRoom, IntentOpenLocalDeck, IntentOpenServerRoomByName, IntentOpenSharedDeck, and IntentWaitForDatabaseLoad.
|
protected |
|
protected |
|
protected |
| void Intent::execute | ( | ) |
|
signal |
|
signal |
|
protectedpure virtual |
Implemented in IntentConnectToServer, IntentDisconnectFromServer, IntentGetLoginCredentials, IntentJoinServerGame, IntentJoinServerRoom, IntentOpenLocalDeck, IntentOpenServerRoomByName, IntentOpenSharedDeck, and IntentWaitForDatabaseLoad.
|
protectedpure virtual |
Implemented in IntentConnectToServer, IntentDisconnectFromServer, IntentGetLoginCredentials, IntentJoinServerGame, IntentJoinServerRoom, IntentOpenLocalDeck, IntentOpenServerRoomByName, IntentOpenSharedDeck, and IntentWaitForDatabaseLoad.
|
protected |
|
private |