-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathuser_account_check.h
43 lines (31 loc) · 976 Bytes
/
user_account_check.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
#ifndef USER_ACCOUNT_CHECK_H
#define USER_ACCOUNT_CHECK_H
#include <QMainWindow>
#include <regex>
#include <QFile>
class UserAccount : public QMainWindow
{
Q_OBJECT
public:
explicit UserAccount(QWidget *parent = nullptr);
bool emailValidation (QString emailStr, QString &error_msg);
bool usernameValidation(QString usernameStr, QString &error_msg);
bool passwordValidtion(QString passwordStr, QString &error_msg);
void setUsername(QString usernameStr);
void setEmail(QString emailStr);
void setPassword(QString passwordStr);
QString getUsername();
QString getEmail();
QString getPassword();
void set_info_complete(int i, bool set);
bool get_info_complete(int i);
void printReadyState();
signals:
public slots:
private:
QString acct_username;
QString acct_email;
QString acct_password;
bool info_complete[]; // stores 3 true values(username,email,password)
};
#endif // USER_ACCOUNT_CHECK_H