Advertisement
Guest User

Untitled

a guest
Jul 25th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.84 KB | None | 0 0
  1. #ifndef AVMSLAVEINFOS_HPP
  2. #define AVMSLAVEINFOS_HPP
  3.  
  4. #include <QVariantMap>
  5. #include "et_types.hpp"
  6.  
  7. namespace aep { namespace addon {
  8.  
  9. class AvmSlaveInfos
  10. {
  11. public:
  12. explicit AvmSlaveInfos(const ETList<ETSlaveInfo>& slavesInfo, uint16 slaveQuantity, uint16 expectedSlaveQuantity);
  13.  
  14. void toMap(QVariantMap& map) const;
  15. void fromMap(const QVariantMap& map);
  16.  
  17. private:
  18. const ETList<ETSlaveInfo>& m_slavesInfo;
  19. uint16 m_slaveQuantity;
  20. uint16 m_expectedSlaveQuantity;
  21.  
  22. static const char* SLAVE_INFO_DATA;
  23.  
  24. static const char* SLAVE_INFO_SLAVE_QUANTITY;
  25. static const char* SLAVE_INFO_EXPECTED_SLAVE_QUANTITY;
  26.  
  27. static const char* SLAVE_INFO_ENABLED ;
  28. static const char* SLAVE_INFO_ERORS ;
  29. static const char* SLAVE_INFO_POLE ;
  30.  
  31. static const char* SLAVE_INFO_ERORS_NUM ;
  32. static const char* SLAVE_INFO_DEVICE_NAME ; // Tic name
  33. static const char* SLAVE_INFO_DEVICE_TYPE ; // Tipo di dispositivo (letto da TICParam)
  34. static const char* SLAVE_INFO_DEVICE_SN ; // Numero di serie del dispositivo slave
  35. static const char* SLAVE_INFO_PRODUCT_RELEASE ; // Numero di rilascio del prodotto
  36. static const char* SLAVE_INFO_SW_MAJVER ; // versione software major
  37. static const char* SLAVE_INFO_SW_MINVER ; // versione software minor
  38. static const char* SLAVE_INFO_POWERUP_TIMESTAMP ; // Time stamp del power up del client
  39. static const char* SLAVE_INFO_COACH_ID ; // indirizzo di protocollo
  40. static const char* SLAVE_INFO_ACTIVITY_TIMESTAMP; // Ultima volta che il dispositivo e` stato visto
  41. static const char* SLAVE_INFO_SYNCHRONIZED ;
  42.  
  43. private:
  44. QVariantMap slaveToMap(const struct ETSlaveInfo& slaveInfo) const;
  45. };
  46.  
  47. }}
  48.  
  49. #endif // AVMSLAVEINFOS_HPP
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement