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

Slim dialog to create a temporary share for the deck open in the editor. More...

#include <dlg_share_deck.h>

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

Public Member Functions

 DlgShareDeck (AbstractClient *_client, const QSharedPointer< DeckList > &_deck, QWidget *parent=nullptr)

Private Slots

void actShare ()
void shareFinished (const Response &response, const CommandContainer &commandContainer)
void onShareTimeout ()

Private Attributes

AbstractClient * client
QSharedPointer< DeckList > deck
QLineEdit * nameEdit
QDialogButtonBox * buttonBox
QTimer * shareTimeoutTimer

Detailed Description

Slim dialog to create a temporary share for the deck open in the editor.

Asks for a share name, sends Command_DeckShareCreate for the single inline deck, and copies the resulting link to the clipboard.

Constructor & Destructor Documentation

◆ DlgShareDeck()

DlgShareDeck::DlgShareDeck ( AbstractClient * _client,
const QSharedPointer< DeckList > & _deck,
QWidget * parent = nullptr )
Here is the call graph for this function:

Member Function Documentation

◆ actShare

void DlgShareDeck::actShare ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ onShareTimeout

void DlgShareDeck::onShareTimeout ( )
privateslot
Here is the caller graph for this function:

◆ shareFinished

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

Member Data Documentation

◆ buttonBox

QDialogButtonBox* DlgShareDeck::buttonBox
private

◆ client

AbstractClient* DlgShareDeck::client
private

◆ deck

QSharedPointer<DeckList> DlgShareDeck::deck
private

◆ nameEdit

QLineEdit* DlgShareDeck::nameEdit
private

◆ shareTimeoutTimer

QTimer* DlgShareDeck::shareTimeoutTimer
private

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