-
Notifications
You must be signed in to change notification settings - Fork 0
/
resetpassword.h
49 lines (41 loc) · 1.22 KB
/
resetpassword.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
#ifndef RESETPASSWORD_H
#define RESETPASSWORD_H
#include <QDialog>
// =====================
// Namespace Declarations
// =====================
namespace Ui {
class resetPassword;
}
// =====================
// Class Declaration
// =====================
class resetPassword : public QDialog
{
Q_OBJECT
public:
// =========================
// Constructor & Destructor
// =========================
explicit resetPassword(QWidget *parent = nullptr);
~resetPassword();
signals:
// ===================
// Signal Declarations
// ===================
void resetCanceled(); // Signal emitted when the cancel button is clicked
void passwordUpdated(const QString &newPassword); // Signal to send the new password when confirmed
private slots:
// ==================
// Slot Declarations
// ==================
void on_cancelButton_clicked(); // Handles the cancel button click event
void on_confirmButton_clicked(); // Handles the confirm button click event
private:
// =====================
// Private Members
// =====================
Ui::resetPassword *ui; // UI pointer for the resetPassword dialog
void closeEvent(QCloseEvent *event);
};
#endif // RESETPASSWORD_H