-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTDBAuthDialog.h
53 lines (43 loc) · 1 KB
/
TDBAuthDialog.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
50
51
52
53
#ifndef TDBAUTHDIALOG_H
#define TDBAUTHDIALOG_H
#include <QLabel>
#include <QPushButton>
#include <QLineEdit>
#include <QDoubleValidator>
#include <QSqlQuery>
#include <QString>
#include <QVariant>
#include <QSqlRecord>
#include <QCryptographicHash>
#include <QByteArray>
#include <QDialog>
#include <QGridLayout>
#include <QPushButton>
#include <QValidator>
// included by TDBApplication.h
// #include "TDBApplication.h"
#include <QDebug>
#include "TDBDatabase.h"
class TDBAuthDialog : public QDialog
{
Q_OBJECT
private:
int admin;
int perm;
QGridLayout* layout;
QLabel* trigramme_label;
QLabel* passwd_label;
QLineEdit* trigramme_edit;
QLineEdit* passwd_edit;
QPushButton* ok_button;
QPushButton* cancel_button;
public:
TDBAuthDialog(QWidget* parent = 0);
~TDBAuthDialog();
int get_admin();
int get_perm();
public slots:
void ok_pressed();
void cancel_pressed();
};
#endif