Ajout config CPU Watchdog dans la page des settings

This commit is contained in:
2023-10-29 15:22:03 -04:00
parent a4028c2385
commit 454935965f
25 changed files with 1189 additions and 101 deletions
+34
View File
@@ -0,0 +1,34 @@
#include "CPUWatchdogConfig.h"
CCPUWatchdogConfig::CCPUWatchdogConfig()
{
mWatchdogEnabled = false;
mWatchdogTimeout = 600; //10 minutes
}
CCPUWatchdogConfig& CCPUWatchdogConfig::operator=(const CCPUWatchdogConfig &source)
{
if(&source == this)
return *this;
this->mWatchdogEnabled = source.mWatchdogEnabled;
this->mWatchdogTimeout = source.mWatchdogTimeout;
return *this;
}
QDataStream &operator>>(QDataStream &in, CCPUWatchdogConfig &dest)
{
in >> dest.mWatchdogEnabled
>> dest.mWatchdogTimeout;
return in;
}
QDataStream &operator<<(QDataStream &out, const CCPUWatchdogConfig &source)
{
out << source.mWatchdogEnabled
<< source.mWatchdogTimeout;
return out;
}