ITS
denMessageTableReception.cpp
Go to the documentation of this file.
2 
4 {
5  memset(&m_actionID, 0, sizeof m_actionID);
6  memset(&m_denm, 0, sizeof m_denm);
7  m_reception = 0;
8  m_thread = new QThread;
9  QObject::connect(m_thread, SIGNAL(started()), this, SLOT(execute()));
10 }
11 
13 {
14  m_denm = other.denm();
15  m_T_R_Validity = other.T_R_Validity();
16  m_actionID = other.actionID();
17  m_thread = other.m_thread;
18 }
19 
21 {
22  this->m_denm = other.denm();
23  this->m_T_R_Validity = other.T_R_Validity();
24  this->m_actionID = other.actionID();
25  this->m_thread = other.m_thread;
26 
27  return *this;
28 }
29 
31 {
32  qDebug() << "denMessageTableReception executed";
34 
35 // m_receptionThread = new QThread;
36 
37 // QObject::connect(m_receptionThread, SIGNAL(started()), m_reception, SLOT(endOfT_R_Validity()));
38 
39  QObject::connect(m_reception, SIGNAL(T_R_ValiditySignal()), this, SLOT(endOfT_R_Validity()));
40 
41 // m_reception->m_T_R_Validity_timer.start();
42 // m_reception->moveToThread(m_receptionThread);
43 // m_receptionThread->start();
44  if(m_reception->timer() > -1)
45  {
47  QTimer::singleShot(m_reception->timer(), m_reception, SLOT(endOfT_R_Validity()));
48  }
49 }
50 
52 {
53  setT_R_Validity(-1);
54 }
55 
57 {
58  /* 1) Delete DENM entry from the receiving ITS-S message table. */
60 
61  /* 2) Notify application if necessary. */
62 }
denMessageTableReceptionThread * m_reception
ActionID_t actionID() const
actionID DENM&#39;s ActionID getter.
void execute()
execute Execute the timer.
qint64 timer() const
timer Timer getter.
void setT_R_Validity(qint64 t)
setT_R_Validity Set the T_R_Validity.
DENM_t denm() const
denm DENM getter.
void T_R_ValiditySignal(ActionID_t)
T_R_ValiditySignal Signal used when T_R_Validity expires.
DEN Message Table Reception.
denMessageTableReception & operator=(const denMessageTableReception &other)
operator= Affectation operator.
void endOfT_R_Validity()
endOfT_R_Validity Slot used when T_R_Validity expires.
~denMessageTableReception()
~denMessageTableReception denMessageTableReception destructor.
qint64 T_R_Validity() const
T_R_Validity T_R_Validity getter.
denMessageTableReception()
denMessageTableReception denMessageTableReception constructor.