Merge remote-tracking branch 'huffman/atp' into atp

This commit is contained in:
Stephen Birarda 2015-07-07 16:15:03 -07:00
commit 191ede4675
2 changed files with 5 additions and 3 deletions

View file

@ -11,9 +11,9 @@
#include "PacketList.h"
PacketList::PacketList(PacketType::Value packetType, bool isOrdered) :
PacketList::PacketList(PacketType::Value packetType) :
_packetType(packetType),
_isOrdered(isOrdered)
_isOrdered(false)
{
}

View file

@ -18,13 +18,15 @@
template <class T> class PacketList : public QIODevice {
public:
PacketList(PacketType::Value packetType, bool isOrdered = false);
PacketList(PacketType::Value packetType);
virtual bool isSequential() const { return true; }
void startSegment() { _segmentStartIndex = _currentPacket->payload().pos(); }
void endSegment() { _segmentStartIndex = -1; }
int getNumPackets() const { return _packets.size() + (_currentPacket ? 1 : 0); }
void closeCurrentPacket();
void setExtendedHeader(const QByteArray& extendedHeader) { _extendedHeader = extendedHeader; }