ImmuNoattri/ImmuNoattri.hpp

52 lines
1.1 KiB
C++
Raw Normal View History

2020-06-08 20:40:44 +00:00
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
2020-06-15 21:50:52 +00:00
#include <QCloseEvent>
2020-06-08 20:40:44 +00:00
#include <QFile>
#include <QMainWindow>
#include <QTimer>
2020-06-15 21:50:52 +00:00
#include <memory>
2020-06-08 20:40:44 +00:00
#include "Anagrafica.hpp"
2020-06-08 20:40:44 +00:00
#include "sqliteInterface.hpp"
2020-06-14 21:08:34 +00:00
#include "wManualInsert.hpp"
2020-06-08 20:40:44 +00:00
const int MESSAGE_TIMEOUT = 15e3; // 15 s
2020-07-16 16:27:23 +00:00
2020-06-08 20:40:44 +00:00
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow {
Q_OBJECT
public:
/**
* @brief MainWindow Constructor
* @param parent Parent Handle
*/
explicit MainWindow(QWidget* parent = 0);
~MainWindow();
private slots:
// GUI Events
void on_pushMano_clicked();
void on_actionAbout_triggered();
void on_lineTessera_textEdited(const QString& text);
void on_lineTessera_timer_timeout();
void on_statusbar_changed();
void on_smartcard_check();
private:
Ui::MainWindow* ui;
std::unique_ptr<wManualInsert> wmanualInsert;
QFile* csv_file;
QTimer lineTessera_timer;
QTimer smartcard_check_timer;
SqliteInterface sqliteInterface;
void closeEvent(QCloseEvent* event);
void addVisitor(QString& codfis, Anagrafica& anagrafica);
2020-06-08 20:40:44 +00:00
};
#endif