IDBLUE logo
Public Member Functions
PropertyGenerator Class Reference

Public Member Functions

(GetPropertyClassInfo *) - supportedProperties
(void) - setSupportedProperties:
(SetPropertyCommand *) - buildSetRequest:withArgs:
(IDBlueResponse *) - allocResponse:
(IDBlueResponse *) - allocResponseByProperty:

Detailed Description

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.


Member Function Documentation

Create an instance (or subclass) of IDBlueResponse from the given packet that is a response to the GET_PROPERTY command.

Parameters:
packetA response packet to the GET_PROPERTY command
Returns:
An allocated (but not initialized) IDBlueResponse object. initFromPacket needs to be called on the returned value.
- (IDBlueResponse *) allocResponseByProperty: (PropertyIdentifier)  property

Create an instance (or subclass) of IDBlueResponse from the given property identifier.

Parameters:
propertyThe property to create a response for
Returns:
An allocated (but not initialized) IDBlueResponse object. initFromPacket needs to be called on the returned value.
- (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.

Parameters:
propertyThe property identifier of the property to be set
argsThe value of the property to be set
Returns:
The IDBlueCommand if the set request could be generated, nil otherwise.

Sets the supported IDBLUE properties

Gets the supported IDBLUE properties


The documentation for this class was generated from the following files:

 

Generated on Mon Jan 19 2015 15:47:40
Copyright © 2015 Cathexis Innovations Inc. All Rights Reserved.