ITS
caReceptionManagement.h
Go to the documentation of this file.
1 
11 #ifndef caReceptionManagement_H
12 #define caReceptionManagement_H
13 
14 #include <QObject>
15 #include <QUdpSocket>
16 #include <constantes.h>
17 #include <api.h>
18 #include <UpperTesterPrimitives.h>
19 #include <Manager.h>
20 
21 #include <CAM.h>
22 
23 
24 class caReceptionManagement : public QObject
25 {
26  Q_OBJECT
27 public:
37 
43  bool decodeCam(QByteArray data);
44 
45 signals:
46  //void camEventIndication(QString);
47 
48 public slots:
49  // void execute();
53  void readDatagram();
54 
55 private:
60  void camEventIndication(QByteArray packet);
61  QUdpSocket* cam2app;
62  quint16 appPort;
64  QUdpSocket *m_internalSocket;
65 };
66 
67 #endif // caReceptionManagement_H
Usefull functions and declarations.
Manager class.
~caReceptionManagement()
~caReceptionManagement caReceptionManagement destructor.
Primitives message types definition.
caReceptionManagement(ParameterNetwork *network)
Constantes used everywhere.
void camEventIndication(QByteArray packet)
camEventIndication Notify the Application of receiving a CAM.
void readDatagram()
readDatagram Slot used when a datagram is received.
bool decodeCam(QByteArray data)
decodeCam Try to decode received CAM.