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

#include <intent_open_shared_deck.h>

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

Public Member Functions

 IntentOpenSharedDeck (TabSupervisor *_tabSupervisor, RemoteClient *_remoteClient, const CardDatabaseQuerier *_querier, std::unique_ptr< ContextOpenDeck > _context)
Public Member Functions inherited from Intent
 Intent (QObject *parent=nullptr)
 ~Intent () override
void execute ()

Protected Member Functions

bool checkPrecondition () const override
void onPreconditionSatisfied () override
void onPreconditionNotSatisfied () override
Protected Member Functions inherited from Intent
void runDependency (Intent *dependency)
void emitFinished ()
void emitFailed (const QString &reason)
void emitCancelled ()

Private Slots

void listShareFinished (const Response &response, const CommandContainer &commandContainer)
void downloadShareFinished (const Response &response, const CommandContainer &commandContainer)
void onDownloadTimeout ()

Private Member Functions

void startDownloads (const QList< int > &itemIds)
void downloadNextItem ()
void onItemFailure (const QString &reason)
void finishAll ()

Private Attributes

TabSupervisor * tabSupervisor
RemoteClient * remoteClient
const CardDatabaseQuerier * querier
QScopedPointer< ContextOpenDeck > context
DlgSharedDecksPreview * previewDialog = nullptr
QTimer * downloadTimer
QMap< int, QString > itemNames
QList< int > pendingItemIds
QList< LoadedDeck > loadedDecks
bool listPhase = true
int currentItemId = 0
int totalItems = 0
int completedItems = 0

Additional Inherited Members

Signals inherited from Intent
void finished ()
void failed (QString reason)
void cancelled ()

Constructor & Destructor Documentation

◆ IntentOpenSharedDeck()

IntentOpenSharedDeck::IntentOpenSharedDeck ( TabSupervisor * _tabSupervisor,
RemoteClient * _remoteClient,
const CardDatabaseQuerier * _querier,
std::unique_ptr< ContextOpenDeck > _context )
Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ checkPrecondition()

bool IntentOpenSharedDeck::checkPrecondition ( ) const
overrideprotectedvirtual

Implements Intent.

Here is the call graph for this function:

◆ downloadNextItem()

void IntentOpenSharedDeck::downloadNextItem ( )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ downloadShareFinished

void IntentOpenSharedDeck::downloadShareFinished ( const Response & response,
const CommandContainer & commandContainer )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ finishAll()

void IntentOpenSharedDeck::finishAll ( )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ listShareFinished

void IntentOpenSharedDeck::listShareFinished ( const Response & response,
const CommandContainer & commandContainer )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ onDownloadTimeout

void IntentOpenSharedDeck::onDownloadTimeout ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ onItemFailure()

void IntentOpenSharedDeck::onItemFailure ( const QString & reason)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ onPreconditionNotSatisfied()

void IntentOpenSharedDeck::onPreconditionNotSatisfied ( )
overrideprotectedvirtual

Implements Intent.

Here is the call graph for this function:

◆ onPreconditionSatisfied()

void IntentOpenSharedDeck::onPreconditionSatisfied ( )
overrideprotectedvirtual

Implements Intent.

Here is the call graph for this function:

◆ startDownloads()

void IntentOpenSharedDeck::startDownloads ( const QList< int > & itemIds)
private
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ completedItems

int IntentOpenSharedDeck::completedItems = 0
private

◆ context

QScopedPointer<ContextOpenDeck> IntentOpenSharedDeck::context
private

◆ currentItemId

int IntentOpenSharedDeck::currentItemId = 0
private

◆ downloadTimer

QTimer* IntentOpenSharedDeck::downloadTimer
private

◆ itemNames

QMap<int, QString> IntentOpenSharedDeck::itemNames
private

◆ listPhase

bool IntentOpenSharedDeck::listPhase = true
private

◆ loadedDecks

QList<LoadedDeck> IntentOpenSharedDeck::loadedDecks
private

◆ pendingItemIds

QList<int> IntentOpenSharedDeck::pendingItemIds
private

◆ previewDialog

DlgSharedDecksPreview* IntentOpenSharedDeck::previewDialog = nullptr
private

◆ querier

const CardDatabaseQuerier* IntentOpenSharedDeck::querier
private

◆ remoteClient

RemoteClient* IntentOpenSharedDeck::remoteClient
private

◆ tabSupervisor

TabSupervisor* IntentOpenSharedDeck::tabSupervisor
private

◆ totalItems

int IntentOpenSharedDeck::totalItems = 0
private

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