![]() |
Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
|
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). | |
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.
| bool ReportCategories::isValid | ( | const QString & | key | ) |
Whether key is a valid report category (case-insensitive).
| const QStringList & ReportCategories::keys | ( | ) |
The complete list of valid category keys, in canonical order.