Commit fe68f847 authored by Arek Stopczynski's avatar Arek Stopczynski

added single current packet setting method

parent 103c498f
......@@ -217,3 +217,12 @@ void Sbs2Callback::deviceFound(QMap<QString, QVariant> params_)
devicePresent = 1;
emit deviceFoundSignal(params);
}
void Sbs2Callback::setPacket(Sbs2Packet* packet)
{
thisPacket = packet;
currentPacketCounter = packet->counter;
++currentPacket;
if (sbs2DataHandler != 0)
sbs2DataHandler->setThisPacket(thisPacket);
}
......@@ -42,6 +42,8 @@ public:
static int getCurrentPacket();
QString getRawFilename();
protected:
void setPacket(Sbs2Packet* packet);
protected:
Sbs2DataHandler* sbs2DataHandler;
......
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