![]() |
Public Member Functions | |
(GetPropertyClassInfo *) | - supportedProperties |
(void) | - setSupportedProperties: |
(SetPropertyCommand *) | - buildSetRequest:withArgs: |
(IDBlueResponse *) | - allocResponse: |
(IDBlueResponse *) | - allocResponseByProperty: |
PropertyGenerator is used to create SET_PROPERTY commands to be sent to an IDBLUE device, and to process GET_PROPERTY responses from an IDBLUE device.
GET_PROPERTY commands are not handled by the PropertyGenerator since they are fairly easy to create (most commands only have one or 2 parameters).
SET_PROPERTY responses are not handled by the PropeertyGenerator either, since the response to a set property command is a response packet, with the property identifier that was set contained in the payload.
- (IDBlueResponse *) allocResponse: | (IDBluePacket*) | packet |
Create an instance (or subclass) of IDBlueResponse from the given packet that is a response to the GET_PROPERTY command.
packet | A response packet to the GET_PROPERTY command |
- (IDBlueResponse *) allocResponseByProperty: | (PropertyIdentifier) | property |
Create an instance (or subclass) of IDBlueResponse from the given property identifier.
property | The property to create a response for |
- (SetPropertyCommand *) buildSetRequest: | (PropertyIdentifier) | property | |
withArgs: | (void*) | args | |
Create an IDBlueCommand to be sent to an IDBLUE device that will set the specified property using the specified arguments.
property | The property identifier of the property to be set |
args | The value of the property to be set |
- (void) setSupportedProperties: | (GetPropertyClassInfo*) | properties |
Sets the supported IDBLUE properties
Gets the supported IDBLUE properties