Commit f9c5e979 authored by Bryan Godbolt's avatar Bryan Godbolt

filling in virtual functions

parent cfb64a72
......@@ -42,8 +42,16 @@ int OpalLink::getLinkQuality()
qint64 OpalLink::getTotalUpstream()
{
statisticsMutex.lock();
return bitsSentTotal / ((MG::TIME::getGroundTimeNow() - connectionStartTime) / 1000);
qint64 totalUpstream = bitsSentTotal / ((MG::TIME::getGroundTimeNow() - connectionStartTime) / 1000);
statisticsMutex.unlock();
return totalUpstream;
}
qint64 OpalLink::getTotalDownstream() {
statisticsMutex.lock();
qint64 totalDownstream = bitsReceivedTotal / ((MG::TIME::getGroundTimeNow() - connectionStartTime) / 1000);
statisticsMutex.unlock();
return totalDownstream;
}
qint64 OpalLink::getCurrentUpstream()
......@@ -69,3 +77,18 @@ bool OpalLink::isFullDuplex()
{
return false;
}
bool OpalLink::connect()
{
return false;
}
bool OpalLink::disconnect()
{
return false;
}
qint64 OpalLink::bytesAvailable()
{
return 0;
}
......@@ -29,6 +29,7 @@ class OpalLink : public LinkInterface
bool isFullDuplex();
int getLinkQuality();
qint64 getTotalUpstream();
qint64 getTotalDownstream();
qint64 getCurrentUpstream();
qint64 getMaxUpstream();
qint64 getBitsSent();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment