/* */ #ifndef _D_BT_ALLOWED_FAST_MESSAGE_H_ #define _D_BT_ALLOWED_FAST_MESSAGE_H_ #include "SimpleBtMessage.h" class BtAllowedFastMessage; typedef SharedHandle BtAllowedFastMessageHandle; class BtAllowedFastMessage : public SimpleBtMessage { private: uint32_t index; char* msg; static uint32_t MESSAGE_LENGTH; public: BtAllowedFastMessage(uint32_t index = 0) :SimpleBtMessage(), index(index), msg(0) {} virtual ~BtAllowedFastMessage() { delete [] msg; } enum ID_t { ID = 17 }; void setIndex(uint32_t index) { this->index = index; } uint32_t getIndex() const { return index; } static BtAllowedFastMessageHandle create(const unsigned char* data, uint32_t dataLength); virtual int32_t getId() const { return ID; } virtual void doReceivedAction(); virtual const char* getMessage(); virtual uint32_t getMessageLength(); virtual string toString() const; virtual void onSendComplete(); }; #endif // _D_BT_ALLOWED_FAST_MESSAGE_H_