![]() |
Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
|
#include "deck_share_utils.h"#include <QClipboard>#include <QGuiApplication>#include <QLocale>#include <QStringLiteral>#include <QTimeZone>#include <QUrl>#include <QUrlQuery>#include <QtGlobal>#include <libcockatrice/network/client/abstract/abstract_client.h>#include <libcockatrice/protocol/pb/response.pb.h>#include <libcockatrice/protocol/pb/response_deck_share_create.pb.h>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. | |