IDBLUE logo
iOSSession.h
00001 
00002 // Copyright © 2013 Cathexis Innovations Inc. All rights reserved.
00003 
00004 #import <Foundation/Foundation.h>
00005 #import "IDBlueSession.h"
00006 #import <ExternalAccessory/ExternalAccessory.h>
00007 #import <ExternalAccessory/EASession.h>
00008 #import "ObjectCollection.h"
00009 
00014 @interface iOSSession : IDBlueSession <NSStreamDelegate> {
00015 @private
00016         // The current IDBLUE device
00017         EAAccessory* _accessory;
00018         
00019         // The current session to the IDBLUE device
00020         EASession* _session;
00021         
00022 @private
00023         BOOL _inputStreamOpen;
00024         BOOL _outputStreamOpen;
00025 }
00026 
00034 -(BOOL) setDevice: (EAAccessory*) device;
00035 
00040 -(void) eaAccessoryDidConnectNotification:(NSNotification*) notification;
00041 
00046 -(void) eaAccessoryDidDisconnectNotification:(NSNotification*) notification;
00047 
00055 -(unsigned int) readIncomingData: (NSInputStream*) input withFlush: (BOOL) flush;
00056 
00061 -(EAAccessory*) getDevice;
00062 
00071 +(ObjectCollection*) getDevices;
00072 
00077 -(BOOL) openFirstIDBlueDevice;
00078 
00084 +(EAAccessory*) getFirstIDBlueDevice;
00085 
00090 +(BOOL) isIDBlueDevice: (EAAccessory*) accessory;
00091 @end

 

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