35 lines
733 B
C++
35 lines
733 B
C++
#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;
|
|
}
|
|
|
|
|