-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcmainwindow.h
47 lines (33 loc) · 1.02 KB
/
cmainwindow.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
/******************************
* Author : YangRongBao
* Date : 2021.4
******************************/
#ifndef CMAINWINDOW_H
#define CMAINWINDOW_H
#include "cmodifypassworddialog.h"
#include "cproductinformationdialog.h"
#include "cmodifysecretivequestionsdialog.h"
#include <QDebug>
#include <QTcpSocket>
#include <QMainWindow>
#include <QCoreApplication>
QT_BEGIN_NAMESPACE
namespace Ui { class CMainWindow; }
QT_END_NAMESPACE
class CMainWindow : public QMainWindow
{
Q_OBJECT
signals:
void logout();
public:
explicit CMainWindow(const QString account, QWidget *parent = nullptr);
~CMainWindow();
private:
Ui::CMainWindow *ui;
const QString *m_account = nullptr;
const QString path_users_dir = QCoreApplication::applicationDirPath() + "/users/";
bool isNetwork = false;
CModifyPasswordDialog *m_modifyPasswordDialog = nullptr;
CModifySecretiveQuestionsDialog *m_modifySecretiveQuestionsDialog = nullptr;
};
#endif // CMAINWINDOW_H