Protocols: Fix includes to use the explicit path of the header files
[remote/remote-mci.git] / protocols / host_server / MsgHostConfirm.h
blob578a5173058062716b2df2a5185607ae626c6ad8
1 #ifndef REMOTE_PROTOCOLS_HOST_SERVER_MSGHOSTCONFIRM_H
2 #define REMOTE_PROTOCOLS_HOST_SERVER_MSGHOSTCONFIRM_H
4 #include "protocols/BaseMsg.h"
5 #include "protocols/MsgPayload.h"
6 #include "protocols/host_server/MsgMoteAddresses.h"
8 namespace remote { namespace protocols { namespace host_server {
10 enum MSGHOSTCONFIRM_STATUS {
11 MSGHOSTCONFIRM_OK,
12 MSGHOSTCONFIRM_UNKNOWN_MOTE
15 class MsgHostConfirm : public BaseMsg
17 public:
18 MsgHostConfirm(uint8_t status, MsgMoteAddresses& adressess, MsgPayload& message);
19 MsgHostConfirm(uint8_t*& buffer, uint32_t& buflen);
20 ~MsgHostConfirm();
22 uint32_t getLength();
23 uint8_t* write(uint8_t* buffer, uint32_t& buflen);
24 void print(FILE* s);
26 uint8_t getStatus();
27 MsgMoteAddresses& getMoteAddresses();
28 MsgPayload& getMessage();
30 protected:
31 uint8_t* read(uint8_t* buffer, uint32_t& buflen);
32 uint8_t status;
33 MsgMoteAddresses* addresses;
34 MsgPayload* message;
35 bool deleteMsg;
38 }}}
39 #endif