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

Functions

const QStringList & keys ()
 The complete list of valid category keys, in canonical order.
bool isValid (const QString &key)
 Whether key is a valid report category (case-insensitive).

Detailed Description

Canonical report categories, shared by the client and the server.

This is the single source of truth for the category keys exchanged over the wire (Command_Report.category) and stored in the reports table. The server only accepts keys from this list and the client report dialog only offers keys from this list, so the two sides cannot drift apart again.

Function Documentation

◆ isValid()

bool ReportCategories::isValid ( const QString & key)

Whether key is a valid report category (case-insensitive).

Here is the call graph for this function:
Here is the caller graph for this function:

◆ keys()

const QStringList & ReportCategories::keys ( )

The complete list of valid category keys, in canonical order.

Here is the call graph for this function:
Here is the caller graph for this function: