Cockatrice 2026-09-01-Development-3.1.0-beta.10
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
game_link.cpp File Reference
#include "game_link.h"
#include <QUrl>
#include <QUrlQuery>
Include dependency graph for game_link.cpp:

Functions

QString makeGameJoinLink (const QString &hostname, int port, int roomId, int gameId, const QString &description)

Function Documentation

◆ makeGameJoinLink()

QString makeGameJoinLink ( const QString & hostname,
int port,
int roomId,
int gameId,
const QString & description = QString() )

Builds a cockatrice://joingame link for the given server game. The receiver's client opens it through the intent chain (connect -> join room -> join game). description, when non-empty, is embedded in the link as the URL-encoded "game" query item so the receiving client can name the game in its confirm prompt and chat anchor instead of only its numeric id. Links built without it stay valid: the parser and chat renderer fall back to the id alone.

Here is the caller graph for this function: