Ajout config CPU Watchdog dans la page des settings
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user