-
Notifications
You must be signed in to change notification settings - Fork 0
/
profil.h
48 lines (39 loc) · 1.16 KB
/
profil.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
#ifndef PROFIL_H
#define PROFIL_H
#include <QWidget>
#include <QPushButton>
#include <QLineEdit>
#include <QLabel>
#include <QPlainTextEdit>
#include <QMessageBox>
#include "database.h"
using namespace std;
class Profil : public QWidget
{
Q_OBJECT
public:
Profil(QWidget *parent = nullptr, string pseudo = "");
~Profil();
void displayChatNotif();
void displayStateFRNotif();
void displayNewFRNotif();
void displayInvitationNotif();
void displayAcceptedFRNotif(string name);
void displayDeclinedFRNotif(string name);
void displayDeleteFriendNotif(string name);
private:
QPushButton *updatePseudo, *updatePassword, *deleteAccountButton;
QPlainTextEdit *notificationList;
QLineEdit *pseudoInput, *passwordInput, *confirmPasswordInput, *password, *pseudo, *winrate;
QLabel *informations, *winrateLabel, *pseudoLabel, *passwordLabel, *notifs;
Database db;
string pseudonyme;
private slots:
void changePassword();
void changePseudo();
void deleteAccount();
signals:
void deleteAccountSignal();
void pseudoChanged(string pseudo);
};
#endif // PROFIL_H