-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmainwindow.h
66 lines (50 loc) · 1.63 KB
/
mainwindow.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
54
55
56
57
58
59
60
61
62
63
64
65
66
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
// Inclui as bibliotecas necessárias para o funcionamento da classe
#define SQLITE_HAS_CODEC
#include "qsqlcipherclass.h" // Inclui a definição da classe QSQLCipherClass
#include "qsqliteclass.h" // Inclui a definição da classe QSQLiteClass
#include "qsqlitebaseclass.h" // Inclui a definição da classe QSQLiteBaseClass
#include "secondwindow.h" // Inclui a definição da classe SecondWindow
#include <iostream>
#include <sqlcipher/sqlite3.h> // Inclui a biblioteca SQLite com suporte a SQLCipher
#include <QDebug>
#include <QApplication>
#include <QMainWindow>
#include <QList>
#include <QVariant>
#include <QFile>
#include <QObject>
#include <QJsonDocument>
#include <QJsonObject>
#include <QTextEdit>
using namespace std;
QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
// Construtor e Destrutor da classe MainWindow
MainWindow(QWidget *parent = nullptr);
~MainWindow();
private slots:
// Slots para responder a eventos de clique em botões
void on_btnCriarBD_clicked();
void on_btnImprimir_clicked();
void on_btnTabela_clicked();
void on_btnJson_clicked();
void on_btnShowJson_clicked();
void on_btnNovaJanela_clicked();
private:
// Ponto de acesso para a interface gráfica
Ui::MainWindow *ui;
// Apontador para objeto da classe QSQLiteBaseClass
QSQLiteBaseClass *db;
// Objeto da classe QSQLCipherClass
QSQLCipherClass dbCipher;
// Apontador para objeto do tipo QStandardItemModel
QStandardItemModel *model;
};
#endif // MAINWINDOW_H