![]() |
Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
|
#include <user_context_menu.h>
Signals | |
| void | openMessageDialog (const QString &userName, bool focus) |
Public Member Functions | |
| UserContextMenu (TabSupervisor *_tabSupervisor, QWidget *_parent, AbstractGame *_game=0) | |
| void | retranslateUi () |
| void | showContextMenu (const QPoint &pos, const QString &userName, UserLevelFlags userLevel, bool online=true, int playerId=-1) |
| void | showContextMenu (const QPoint &pos, const QString &userName, UserLevelFlags userLevel, ChatView *chatView) |
| void | showContextMenu (const QPoint &pos, const QString &userName, UserLevelFlags userLevel, bool online, int playerId, const QString &deckHash, ChatView *chatView=nullptr) |
| const UserListProxy * | getUserListProxy () const |
| void | setGameInviteLinkProvider (std::function< QList< GameInviteOption >()> provider) |
| QList< GameInviteOption > | inviteOptionsForUser (const QString &userName) const |
| bool | hasGameInviteLink (const QString &userName) const |
| void | execChat (const QString &userName) |
| void | execInvite (const QString &userName) |
| void | execDetails (const QString &userName) |
| void | execShowGames (const QString &userName) |
| void | execViewPublicDecks (const QString &userName) |
| void | execAddToBuddy (const QString &userName) |
| void | execRemoveFromBuddy (const QString &userName) |
| void | execAddToIgnore (const QString &userName) |
| void | execRemoveFromIgnore (const QString &userName) |
| void | execKick (int playerId) |
| void | execBan (const QString &userName) |
| void | execWarn (const QString &userName) |
| void | execBanHistory (const QString &userName) |
| void | execWarnHistory (const QString &userName) |
| void | execAdminNotes (const QString &userName) |
| void | execInvestigateUser (const QString &userName) |
| void | execAdjustMod (const QString &userName, bool shouldBeMod) |
| void | execAdjustJudge (const QString &userName, bool shouldBeJudge) |
| void | execAdjustDeveloper (const QString &userName, bool shouldBeDeveloper) |
Private Slots | |
| void | banUser_processUserInfoResponse (const Response &resp) |
| void | warnUser_processGetWarningsListResponse (const Response &r) |
| void | warnUser_processUserInfoResponse (const Response &resp) |
| void | banUserHistory_processResponse (const Response &resp) |
| void | warnUserHistory_processResponse (const Response &resp) |
| void | getAdminNotes_processResponse (const Response &resp) |
| void | adjustMod_processUserResponse (const Response &resp, const CommandContainer &commandContainer) |
| void | banUser_dialogFinished () |
| void | warnUser_dialogFinished () |
| void | updateAdminNotes_dialogFinished () |
| void | gamesOfUserReceived (const Response &resp, const CommandContainer &commandContainer) |
Private Member Functions | |
| void | execInvite (const QString &userName, const GameInviteOption &option) |
Private Attributes | |
| AbstractClient * | client |
| TabSupervisor * | tabSupervisor |
| const UserListProxy * | userListProxy |
| AbstractGame * | game |
| QAction * | aUserName |
| QAction * | aDetails |
| QAction * | aShowGames |
| QAction * | aViewPublicDecks |
| QAction * | aChat |
| QAction * | aAddToBuddyList |
| QAction * | aRemoveFromBuddyList |
| QAction * | aAddToIgnoreList |
| QAction * | aRemoveFromIgnoreList |
| QAction * | aKick |
| QAction * | aReport |
| QAction * | aBan |
| QAction * | aBanHistory |
| QAction * | aPromoteToMod |
| QAction * | aDemoteFromMod |
| QAction * | aPromoteToJudge |
| QAction * | aDemoteFromJudge |
| QAction * | aPromoteToDeveloper |
| QAction * | aDemoteFromDeveloper |
| QAction * | aWarnUser |
| QAction * | aWarnHistory |
| QAction * | aGetAdminNotes |
| std::function< QList< GameInviteOption >()> | gameInviteLinkProvider |
| QAction * | aInvestigateUser |
| UserContextMenu::UserContextMenu | ( | TabSupervisor * | _tabSupervisor, |
| QWidget * | _parent, | ||
| AbstractGame * | _game = 0 ) |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
| void UserContextMenu::execAddToBuddy | ( | const QString & | userName | ) |
| void UserContextMenu::execAddToIgnore | ( | const QString & | userName | ) |
| void UserContextMenu::execAdjustDeveloper | ( | const QString & | userName, |
| bool | shouldBeDeveloper ) |
| void UserContextMenu::execAdjustJudge | ( | const QString & | userName, |
| bool | shouldBeJudge ) |
| void UserContextMenu::execAdjustMod | ( | const QString & | userName, |
| bool | shouldBeMod ) |
| void UserContextMenu::execAdminNotes | ( | const QString & | userName | ) |
| void UserContextMenu::execBan | ( | const QString & | userName | ) |
| void UserContextMenu::execBanHistory | ( | const QString & | userName | ) |
| void UserContextMenu::execChat | ( | const QString & | userName | ) |
| void UserContextMenu::execDetails | ( | const QString & | userName | ) |
| void UserContextMenu::execInvestigateUser | ( | const QString & | userName | ) |
| void UserContextMenu::execInvite | ( | const QString & | userName | ) |
|
private |
| void UserContextMenu::execKick | ( | int | playerId | ) |
| void UserContextMenu::execRemoveFromBuddy | ( | const QString & | userName | ) |
| void UserContextMenu::execRemoveFromIgnore | ( | const QString & | userName | ) |
| void UserContextMenu::execShowGames | ( | const QString & | userName | ) |
| void UserContextMenu::execViewPublicDecks | ( | const QString & | userName | ) |
| void UserContextMenu::execWarn | ( | const QString & | userName | ) |
| void UserContextMenu::execWarnHistory | ( | const QString & | userName | ) |
|
privateslot |
|
privateslot |
|
inline |
|
inline |
Whether at least one invite link is currently available for userName.
| QList< GameInviteOption > UserContextMenu::inviteOptionsForUser | ( | const QString & | userName | ) | const |
The games currently inviteable for userName, honoring the room's buddy-only setting (the inviter must be the game's creator and the target a buddy of theirs). Empty when there is no live provider.
|
signal |
| void UserContextMenu::retranslateUi | ( | ) |
|
inline |
| void UserContextMenu::showContextMenu | ( | const QPoint & | pos, |
| const QString & | userName, | ||
| UserLevelFlags | userLevel, | ||
| bool | online, | ||
| int | playerId, | ||
| const QString & | deckHash, | ||
| ChatView * | chatView = nullptr ) |
| void UserContextMenu::showContextMenu | ( | const QPoint & | pos, |
| const QString & | userName, | ||
| UserLevelFlags | userLevel, | ||
| bool | online = true, | ||
| int | playerId = -1 ) |
| void UserContextMenu::showContextMenu | ( | const QPoint & | pos, |
| const QString & | userName, | ||
| UserLevelFlags | userLevel, | ||
| ChatView * | chatView ) |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |