mirror of
https://github.com/modelec/ihm.git
synced 2026-01-18 16:47:32 +01:00
Add sigint and sigterm handle
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
#include <QStackedWidget>
|
||||
#include <QPixmap>
|
||||
#include <QSettings>
|
||||
#include <atomic>
|
||||
|
||||
#include "HomePage.h"
|
||||
#include "Homologation.h"
|
||||
@@ -32,6 +33,10 @@ public:
|
||||
|
||||
void turnOnTheWindow();
|
||||
|
||||
bool shouldStop() const { return _shouldStop; }
|
||||
|
||||
void setShouldStop(bool value) { _shouldStop = value; }
|
||||
|
||||
protected slots:
|
||||
void onHomePressed();
|
||||
|
||||
@@ -70,4 +75,6 @@ private:
|
||||
|
||||
MyTCPClient* tcpClient;
|
||||
QSettings* settings;
|
||||
|
||||
std::atomic<bool> _shouldStop = false;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user