Cockatrice 2026-09-01-Development-3.1.0-beta.10
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
TabModeration Class Reference

#include <tab_moderation.h>

Inheritance diagram for TabModeration:
[legend]
Collaboration diagram for TabModeration:
[legend]

Public Member Functions

 TabModeration (TabSupervisor *_tabSupervisor, AbstractClient *_client, const QString &initialUser={})
void retranslateUi () override
QString getTabText () const override
void investigate (const QString &userName)
Public Member Functions inherited from Tab
 Tab (TabSupervisor *_tabSupervisor)
const QList< QMenu * > & getTabMenus () const
TabSupervisorgetTabSupervisor () const
bool getContentsChanged () const
void setContentsChanged (bool _contentsChanged)
virtual bool closeRequest ()
virtual void tabActivated ()

Private Slots

void investigateUser ()
void userInfoResponse (const Response &response)
void sessionsResponse (const Response &response)
void altsResponse (const Response &response)
void moderatorLoginsResponse (const Response &response)
void resetPassword ()
void resetPasswordResponse (const Response &response)
void removeAvatar ()
void removeAvatarResponse (const Response &response)

Private Member Functions

void requestUserInfo (const QString &userName)
void requestSessions (const QString &userName)
void requestAlts (const QString &userName)
void requestModeratorLogins ()
void clearUserData ()
QString formatEpoch (quint64 ts) const

Private Attributes

AbstractClientclient
QString currentUser
QLineEdit * searchEdit
QPushButton * investigateButton
QPushButton * resetPasswordButton
QPushButton * removeAvatarButton
QGroupBox * userInfoGroup
QLabel * userInfoNameLabel
QLabel * userInfoNameValue
QLabel * userInfoRegisteredLabel
QLabel * userInfoRegisteredValue
QLabel * userInfoLastLoginLabel
QLabel * userInfoLastLoginValue
QLabel * userInfoStatusLabel
QLabel * userInfoStatusValue
QLabel * userInfoCountsLabel
QLabel * userInfoCountsValue
QLabel * userInfoNotesLabel
QTextEdit * userInfoNotesEdit
QGroupBox * altsGroup
QTableWidget * altsTable
QGroupBox * sessionsGroup
QTableWidget * sessionsTable
QGroupBox * staffGroup
QTableWidget * staffTable
QPushButton * refreshStaffButton

Additional Inherited Members

Signals inherited from Tab
void userEvent (bool globalEvent=true)
void tabTextChanged (Tab *tab, const QString &newTabText)
void cockatriceLinkActivated (const QString &url)
Protected Slots inherited from Tab
void showCardInfoPopup (const QPoint &pos, const CardRef &cardRef)
void deleteCardInfoPopup (const QString &cardName)
Protected Member Functions inherited from Tab
void addTabMenu (QMenu *menu)
Protected Attributes inherited from Tab
TabSupervisortabSupervisor

Detailed Description

Staff investigation tool. Lets moderators look up a user's account data, alternate accounts, login sessions, and staff login activity, and offers the password-reset and remove-avatar actions.

Constructor & Destructor Documentation

◆ TabModeration()

TabModeration::TabModeration ( TabSupervisor * _tabSupervisor,
AbstractClient * _client,
const QString & initialUser = {} )
explicit
Here is the call graph for this function:

Member Function Documentation

◆ altsResponse

void TabModeration::altsResponse ( const Response & response)
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ clearUserData()

void TabModeration::clearUserData ( )
private
Here is the caller graph for this function:

◆ formatEpoch()

QString TabModeration::formatEpoch ( quint64 ts) const
nodiscardprivate
Here is the caller graph for this function:

◆ getTabText()

QString TabModeration::getTabText ( ) const
inlinenodiscardoverridevirtual

Implements Tab.

◆ investigate()

void TabModeration::investigate ( const QString & userName)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ investigateUser

void TabModeration::investigateUser ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ moderatorLoginsResponse

void TabModeration::moderatorLoginsResponse ( const Response & response)
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ removeAvatar

void TabModeration::removeAvatar ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ removeAvatarResponse

void TabModeration::removeAvatarResponse ( const Response & response)
privateslot
Here is the caller graph for this function:

◆ requestAlts()

void TabModeration::requestAlts ( const QString & userName)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ requestModeratorLogins()

void TabModeration::requestModeratorLogins ( )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ requestSessions()

void TabModeration::requestSessions ( const QString & userName)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ requestUserInfo()

void TabModeration::requestUserInfo ( const QString & userName)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ resetPassword

void TabModeration::resetPassword ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ resetPasswordResponse

void TabModeration::resetPasswordResponse ( const Response & response)
privateslot
Here is the caller graph for this function:

◆ retranslateUi()

void TabModeration::retranslateUi ( )
overridevirtual

Implements Tab.

Here is the caller graph for this function:

◆ sessionsResponse

void TabModeration::sessionsResponse ( const Response & response)
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ userInfoResponse

void TabModeration::userInfoResponse ( const Response & response)
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ altsGroup

QGroupBox* TabModeration::altsGroup
private

◆ altsTable

QTableWidget* TabModeration::altsTable
private

◆ client

AbstractClient* TabModeration::client
private

◆ currentUser

QString TabModeration::currentUser
private

◆ investigateButton

QPushButton* TabModeration::investigateButton
private

◆ refreshStaffButton

QPushButton* TabModeration::refreshStaffButton
private

◆ removeAvatarButton

QPushButton* TabModeration::removeAvatarButton
private

◆ resetPasswordButton

QPushButton* TabModeration::resetPasswordButton
private

◆ searchEdit

QLineEdit* TabModeration::searchEdit
private

◆ sessionsGroup

QGroupBox* TabModeration::sessionsGroup
private

◆ sessionsTable

QTableWidget* TabModeration::sessionsTable
private

◆ staffGroup

QGroupBox* TabModeration::staffGroup
private

◆ staffTable

QTableWidget* TabModeration::staffTable
private

◆ userInfoCountsLabel

QLabel* TabModeration::userInfoCountsLabel
private

◆ userInfoCountsValue

QLabel* TabModeration::userInfoCountsValue
private

◆ userInfoGroup

QGroupBox* TabModeration::userInfoGroup
private

◆ userInfoLastLoginLabel

QLabel* TabModeration::userInfoLastLoginLabel
private

◆ userInfoLastLoginValue

QLabel* TabModeration::userInfoLastLoginValue
private

◆ userInfoNameLabel

QLabel* TabModeration::userInfoNameLabel
private

◆ userInfoNameValue

QLabel* TabModeration::userInfoNameValue
private

◆ userInfoNotesEdit

QTextEdit* TabModeration::userInfoNotesEdit
private

◆ userInfoNotesLabel

QLabel* TabModeration::userInfoNotesLabel
private

◆ userInfoRegisteredLabel

QLabel* TabModeration::userInfoRegisteredLabel
private

◆ userInfoRegisteredValue

QLabel* TabModeration::userInfoRegisteredValue
private

◆ userInfoStatusLabel

QLabel* TabModeration::userInfoStatusLabel
private

◆ userInfoStatusValue

QLabel* TabModeration::userInfoStatusValue
private

The documentation for this class was generated from the following files: