/* */ #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: int32_t index; unsigned char* msg; static int32_t MESSAGE_LENGTH; public: BtAllowedFastMessage(int32_t index = 0) :SimpleBtMessage(), index(index), msg(0) {} virtual ~BtAllowedFastMessage() { delete [] msg; } static const int8_t ID = 17; void setIndex(int32_t index) { this->index = index; } int32_t getIndex() const { return index; } static BtAllowedFastMessageHandle create(const unsigned char* data, int32_t dataLength); virtual int8_t getId() { return ID; } virtual void doReceivedAction(); virtual const unsigned char* getMessage(); virtual int32_t getMessageLength(); virtual string toString() const; virtual void onSendComplete(); }; #endif // _D_BT_ALLOWED_FAST_MESSAGE_H_