Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef AVMSLAVEINFOS_HPP
- #define AVMSLAVEINFOS_HPP
- #include <QVariantMap>
- #include "et_types.hpp"
- namespace aep { namespace addon {
- class AvmSlaveInfos
- {
- public:
- explicit AvmSlaveInfos(const ETList<ETSlaveInfo>& slavesInfo, uint16 slaveQuantity, uint16 expectedSlaveQuantity);
- void toMap(QVariantMap& map) const;
- void fromMap(const QVariantMap& map);
- private:
- const ETList<ETSlaveInfo>& m_slavesInfo;
- uint16 m_slaveQuantity;
- uint16 m_expectedSlaveQuantity;
- static const char* SLAVE_INFO_DATA;
- static const char* SLAVE_INFO_SLAVE_QUANTITY;
- static const char* SLAVE_INFO_EXPECTED_SLAVE_QUANTITY;
- static const char* SLAVE_INFO_ENABLED ;
- static const char* SLAVE_INFO_ERORS ;
- static const char* SLAVE_INFO_POLE ;
- static const char* SLAVE_INFO_ERORS_NUM ;
- static const char* SLAVE_INFO_DEVICE_NAME ; // Tic name
- static const char* SLAVE_INFO_DEVICE_TYPE ; // Tipo di dispositivo (letto da TICParam)
- static const char* SLAVE_INFO_DEVICE_SN ; // Numero di serie del dispositivo slave
- static const char* SLAVE_INFO_PRODUCT_RELEASE ; // Numero di rilascio del prodotto
- static const char* SLAVE_INFO_SW_MAJVER ; // versione software major
- static const char* SLAVE_INFO_SW_MINVER ; // versione software minor
- static const char* SLAVE_INFO_POWERUP_TIMESTAMP ; // Time stamp del power up del client
- static const char* SLAVE_INFO_COACH_ID ; // indirizzo di protocollo
- static const char* SLAVE_INFO_ACTIVITY_TIMESTAMP; // Ultima volta che il dispositivo e` stato visto
- static const char* SLAVE_INFO_SYNCHRONIZED ;
- private:
- QVariantMap slaveToMap(const struct ETSlaveInfo& slaveInfo) const;
- };
- }}
- #endif // AVMSLAVEINFOS_HPP
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement