Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
deck_share_utils.h File Reference
#include <QDateTime>
#include <QString>
Include dependency graph for deck_share_utils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  DeckShareUtils::ShareResponse
 The outcome of a successful share-create response. More...

Namespaces

namespace  DeckShareUtils
 Shared helpers for creating temporary deck shares.

Functions

QString DeckShareUtils::buildShareLink (const AbstractClient *client, const QString &token)
 Builds the cockatrice:// link for a freshly created deck share.
QString DeckShareUtils::copyShareLinkToClipboard (const QString &link)
 Copies the share link to the clipboard.
QString DeckShareUtils::formatShareExpiry (const QDateTime &expiry)
 Formats the expiration timestamp for a share.
ShareResponse DeckShareUtils::handleShareResponse (const AbstractClient *client, const Response &response)
 Handles a successful Response_DeckShareCreate: builds the share link, copies it to the clipboard, and derives the share expiry.