Cockatrice 2025-11-30-Development-2.11.0-beta.38
A cross-platform virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
TappedOutInterface Class Reference

#include <tapped_out_interface.h>

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

Public Member Functions

 TappedOutInterface (CardDatabase &_cardDatabase, QObject *parent=nullptr)
void analyzeDeck (DeckList *deck)

Private Slots

void queryFinished (QNetworkReply *reply)
void getAnalyzeRequestData (DeckList *deck, QByteArray *data)

Private Member Functions

void copyDeckSplitMainAndSide (DeckList &source, DeckList &mainboard, DeckList &sideboard)

Private Attributes

QNetworkAccessManager * manager
CardDatabasecardDatabase

Detailed Description

TappedOutInterface exists in order to support the "Analyze on TappedOut" feature. An http POST request is sent and the result is retrieved from the reply. Parsing logic is implemented in TappedOutInterface::queryFinished().

Constructor & Destructor Documentation

◆ TappedOutInterface()

TappedOutInterface::TappedOutInterface ( CardDatabase & _cardDatabase,
QObject * parent = nullptr )
explicit
Here is the call graph for this function:

Member Function Documentation

◆ analyzeDeck()

void TappedOutInterface::analyzeDeck ( DeckList * deck)
Here is the call graph for this function:

◆ copyDeckSplitMainAndSide()

void TappedOutInterface::copyDeckSplitMainAndSide ( DeckList & source,
DeckList & mainboard,
DeckList & sideboard )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getAnalyzeRequestData

void TappedOutInterface::getAnalyzeRequestData ( DeckList * deck,
QByteArray * data )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ queryFinished

void TappedOutInterface::queryFinished ( QNetworkReply * reply)
privateslot
Here is the caller graph for this function:

Member Data Documentation

◆ cardDatabase

CardDatabase& TappedOutInterface::cardDatabase
private

◆ manager

QNetworkAccessManager* TappedOutInterface::manager
private

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