forked from Rescator7/Hearts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconnect.h
50 lines (38 loc) · 902 Bytes
/
connect.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#ifdef ONLINE_PLAY
#ifndef CONNECT_H
#define CONNECT_H
#include <QDialog>
#include <QAbstractButton>
#include <QPushButton>
namespace Ui {
class Connect;
}
class Connect : public QDialog
{
Q_OBJECT
public:
explicit Connect(QWidget *parent = nullptr);
~Connect();
QString getHost();
QString getPort();
QString getHandle();
QString getPassword();
void config(QString &username, QString &password, bool warning);
bool WarningAccepted();
bool WarningDisabled();
bool isUnRegistered();
private:
QPushButton *button_Connect;
QPushButton *button_Register;
QPushButton *button_Cancel;
Ui::Connect *ui;
bool warning_accepted;
bool warning_disabled;
bool UnRegistered;
private slots:
void on_checkBox_clicked();
public slots:
void diagButtonClicked(QAbstractButton *button);
};
#endif // CONNECT_H
#endif // ONLINE_PLAY