ITS
denMessageTableReceptionThread.cpp
Go to the documentation of this file.
2 
4 {
5  m_timer = timer;
6 }
7 
9 {
10  this->m_timer = other.timer();
12  return *this;
13 }
14 
16 {
17  printf("End of T_R_Validity : %lld\n", m_timer);
18  bool toEmit = m_timer > -1;
19 
20  if(toEmit && m_T_R_Validity_timer.elapsed() >= m_timer)
21  {
22  printf("emit T_R_ValiditySignal\n");
23  emit T_R_ValiditySignal();
24  }
25  else if(toEmit)
26  QTimer::singleShot(m_timer - m_T_R_Validity_timer.elapsed(), this, SLOT(endOfT_R_Validity()));
27 
28 }
29 /*
30 void denMessageTableReceptionThread::endOfT_F_Validity()
31 {
32  printf("End of T_F_Validity : %lld\n", m_timer);
33  bool toEmit = m_timer > -1;
34 
35  if(toEmit && m_T_F_Validity_timer.elapsed() >= m_timer)
36  {
37  printf("emit T_R_ValiditySignal\n");
38  emit T_F_ValiditySignal();
39  }
40  else if(toEmit)
41  QTimer::singleShot(m_timer - m_T_F_Validity_timer.elapsed(), this, SLOT(endOfT_F_Validity()));
42 }
43 
44 void denMessageTableReceptionThread::endOfT_Forwarding()
45 {
46  printf("End of T_Forwarding : %lld\n", m_timer);
47  bool toEmit = m_timer > -1;
48 
49  if(toEmit && m_T_Forwarding_timer.elapsed() >= m_timer)
50  {
51  printf("emit T_ForwardingSignal\n");
52  emit T_ForwardingSignal();
53  }
54  else if(toEmit)
55  QTimer::singleShot(m_timer - m_T_Forwarding_timer.elapsed(), this, SLOT(endOfT_Forwarding()));
56 }
57 */
qint64 timer() const
timer Timer getter.
denMessageTableReceptionThread & operator=(const denMessageTableReceptionThread &other)
operator= Affectation operator.
void T_R_ValiditySignal()
T_R_ValiditySignal Signal used when T_R_Validity expires.
denMessageTableReceptionThread(qint64 timer)
denMessageTableReceptionThread denMessageTableReceptionThread constructor.
Thread of a denMessageTableReception.