IDBLUE logo
Public Member Functions
ResponseHandlerCollection Class Reference
Inheritance diagram for ResponseHandlerCollection:
ObjectCollection

Public Member Functions

(BOOL) - addHandler:
(BOOL) - removeHandler:
(int) - removeAllHandlers
(BOOL) - hasHandler:
(id< IResponseHandler >) - handlerAtIndex:
(void) - commandSent:
(void) - asynchronousResponseReceived:
(void) - synchronousResponseReceived:

Detailed Description

A collection of ResponseHandler objects


Member Function Documentation

- (BOOL) addHandler: (id<IResponseHandler>)  handler

Add an ResponseHandler to the list of handlers that are notified of respones received from an IDBLUE device.

Notifies all listeners that a asynchronous response was received

Parameters:
resopnsethe resopnse that was received
- (void) commandSent: (IDBlueCommand*)  command

Notifies all listeners that a command was sent to IDBLUE

Parameters:
commandthe command that was sent
- (id< IResponseHandler >) handlerAtIndex: (int)  index

Returns the handler at the specified index

Parameters:
indexthe index to retrieve the handler from
Returns:
the ResponseHandler found
Remarks:
will return nil if index is out of the collections range
- (BOOL) hasHandler: (id<IResponseHandler>)  handler

Determines if the given ResponseHandler is contained in the list of handlers that are notified of responses received from an IDBLUE device.

Remove all ResponseHandlers from the list of handlers that are notified of responses received from an IDBLUE device.

- (BOOL) removeHandler: (id<IResponseHandler>)  handler

Removes an ResponseHandler from the list of handlers that are notified of responses received from an IDBLUE device.

Notifies all listeners that a synchronous resopnse was received

Parameters:
commandthe command that initiaited the synchronous response

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

 

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