Bit de présence internet
This commit is contained in:
@@ -37,8 +37,10 @@ bool CInternetMonitor::IsInternetActive()
|
||||
return mInternetActive;
|
||||
}
|
||||
|
||||
int CInternetMonitor::Start()
|
||||
int CInternetMonitor::Start(quint64 CANReportingBit)
|
||||
{
|
||||
mCANReportingMask = 1;
|
||||
mCANReportingMask <<= CANReportingBit;
|
||||
CheckInternet();
|
||||
return RET_OK;
|
||||
}
|
||||
@@ -101,3 +103,13 @@ void CInternetMonitor::ConnectionTimerExpired()
|
||||
}
|
||||
mInternetActive = false;
|
||||
}
|
||||
|
||||
quint64 CInternetMonitor::GetCANInternetStatusMask()
|
||||
{
|
||||
if(mInternetActive == true)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
return mCANReportingMask;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user