Cockatrice 2026-09-01-Development-3.1.0-beta.10
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
dlg_report_user.h
Go to the documentation of this file.
1#ifndef COCKATRICE_DLG_REPORT_USER_H
2#define COCKATRICE_DLG_REPORT_USER_H
3
4#include <QDialog>
5#include <libcockatrice/protocol/pb/response.pb.h>
6
8class QComboBox;
9class QDialogButtonBox;
10class QLineEdit;
11class QTextEdit;
12class QLabel;
13
14class DlgReportUser : public QDialog
15{
16 Q_OBJECT
17public:
19 const QString &_reportedUser,
20 int _gameId = -1,
21 const QString &_autoChatLog = QString(),
22 QWidget *parent = nullptr);
23
24private slots:
25 void actSubmit();
26 void reportResponse(const Response &response);
27
28private:
30 QString reportedUser;
31 int gameId;
32
34 QLabel *gameIdLabel = nullptr;
35 QLineEdit *gameIdEdit = nullptr;
36 QComboBox *categoryBox;
37 QTextEdit *descriptionEdit;
38 QTextEdit *chatLogEdit;
39 QDialogButtonBox *buttonBox;
40};
41
42#endif // COCKATRICE_DLG_REPORT_USER_H
Definition abstract_client.h:57
void reportResponse(const Response &response)
Definition dlg_report_user.cpp:172
QLabel * reportedUserLabel
Definition dlg_report_user.h:33
DlgReportUser(AbstractClient *_client, const QString &_reportedUser, int _gameId=-1, const QString &_autoChatLog=QString(), QWidget *parent=nullptr)
Definition dlg_report_user.cpp:19
QLineEdit * gameIdEdit
Definition dlg_report_user.h:35
QDialogButtonBox * buttonBox
Definition dlg_report_user.h:39
int gameId
Definition dlg_report_user.h:31
AbstractClient * client
Definition dlg_report_user.h:29
QComboBox * categoryBox
Definition dlg_report_user.h:36
QTextEdit * chatLogEdit
Definition dlg_report_user.h:38
void actSubmit()
Definition dlg_report_user.cpp:127
QString reportedUser
Definition dlg_report_user.h:30
QLabel * gameIdLabel
Definition dlg_report_user.h:34
QTextEdit * descriptionEdit
Definition dlg_report_user.h:37
Definition response.proto:11