ITS
RepetitionPacketBuffer.h
Go to the documentation of this file.
1 
7 #ifndef RepetitionPacketBuffer_H
8 #define RepetitionPacketBuffer_H
9 
10 #include <QObject>
11 #include <QVector>
12 #include <RepetitionPacketEntry.h>
13 #include <GNDataRequest.h>
14 #include <QMutex>
15 
16 class RepetitionPacketBuffer : public QObject
17 {
18  Q_OBJECT
19 public:
20  /* Constructors */
25 
30  void addPacket(gnDataRequest_t gnDR);
31 
35  void clear();
36 
37 signals:
42  void sendPacketToGn(gnDataRequest_t packet);
46  void killAll();
47 
48 public slots:
52  void erase();
58 
59 private:
60  QMutex* m_mutex;
61  QVector<RepetitionPacketEntry*> m_repetitionPacketBuffer;
62 };
63 
64 #endif // _RepetitionPacketBuffer_H
gnDataRequest_t structure is the GN data request definition.
Definition: GNDataRequest.h:46
void addPacket(gnDataRequest_t gnDR)
addPacket Add packet to the buffer.
void clear()
clear Clear the buffer.
QVector< RepetitionPacketEntry * > m_repetitionPacketBuffer
RepetitionPacketBuffer()
RepetitionPacketBuffer Default constructor.
GN data request definition.
void killAll()
killAll Signal used to kill all the entries.
void erase()
erase Slot used to erase entry.
Repetition of the RepetitionPacketBuffer.
void sendPacketToGn(gnDataRequest_t packet)
sendPacketToGn Signal used to send packet.
void sendPacketIndication(gnDataRequest_t packet)
sendPacketIndication Slot used to notify of sending packet.