-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathquickpass.h
43 lines (36 loc) · 945 Bytes
/
quickpass.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 QUICKPASS_H
#define QUICKPASS_H
#include <QFile>
#include <QMainWindow>
namespace Ui {
class Quickpass;
}
class Quickpass : public QMainWindow {
Q_OBJECT
public:
explicit Quickpass(QWidget *parent = nullptr);
QString Accounts;
QString GetAccounts();
QString GetAccountFilepath();
QString GetPasswordTypeChars(QString);
QList<QString> GeneratePassword(QString, int, int);
void SetEditMode(bool);
void LoadCurrentAccounts();
int InsertNewAccountData(QString);
~Quickpass();
private slots:
void on_editModeCheckbox_clicked();
void on_generateNewAccount_clicked();
void on_generateNewPassword_clicked();
void on_saveFileBtn_clicked();
void on_searchEntry_returnPressed();
private:
Ui::Quickpass *ui;
QString GetAccount();
bool IsEditable();
bool IsFileUsable(QFile &);
bool IsRequestedAccount(QString, QString);
void ResetTextBuffer();
bool SaveAccountChanges();
};
#endif // QUICKPASS_H