Cockatrice 2026-09-01-Development-3.1.0-beta.10
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
CommanderSpellbookApiAccessor Class Referencefinal

#include <commander_spellbook_api_accessor.h>

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

Public Types

using RequestId = quint64

Signals

void estimateBracketFinished (RequestId id, QObject *requester, const EstimateBracketResult &result)
void estimateBracketError (RequestId id, QObject *requester, const QString &errorMessage)

Public Member Functions

RequestId estimateBracket (const DeckList &deck, QObject *requester)

Static Public Member Functions

static CommanderSpellbookApiAccessorinstance ()

Private Member Functions

 CommanderSpellbookApiAccessor (QObject *parent=nullptr)
void onEstimateReplyFinished (QNetworkReply *reply)

Private Attributes

QNetworkAccessManager network
RequestId nextRequestId = 1

Member Typedef Documentation

◆ RequestId

Constructor & Destructor Documentation

◆ CommanderSpellbookApiAccessor()

CommanderSpellbookApiAccessor::CommanderSpellbookApiAccessor ( QObject * parent = nullptr)
explicitprivate
Here is the caller graph for this function:

Member Function Documentation

◆ estimateBracket()

CommanderSpellbookApiAccessor::RequestId CommanderSpellbookApiAccessor::estimateBracket ( const DeckList & deck,
QObject * requester )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ estimateBracketError

void CommanderSpellbookApiAccessor::estimateBracketError ( RequestId id,
QObject * requester,
const QString & errorMessage )
signal
Here is the call graph for this function:
Here is the caller graph for this function:

◆ estimateBracketFinished

void CommanderSpellbookApiAccessor::estimateBracketFinished ( RequestId id,
QObject * requester,
const EstimateBracketResult & result )
signal
Here is the caller graph for this function:

◆ instance()

CommanderSpellbookApiAccessor & CommanderSpellbookApiAccessor::instance ( )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ onEstimateReplyFinished()

void CommanderSpellbookApiAccessor::onEstimateReplyFinished ( QNetworkReply * reply)
private
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ network

QNetworkAccessManager CommanderSpellbookApiAccessor::network
private

◆ nextRequestId

RequestId CommanderSpellbookApiAccessor::nextRequestId = 1
private

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