RobotKit API
RobotKit/RKDeviceMessenger.h
00001 //
00002 //  RKDeviceMessenger.h
00003 //  RobotKit
00004 //
00005 //  Created by Brian Smith on 5/27/11.
00006 //  Copyright 2011 Orbotix Inc. All rights reserved.
00007 //
00008 
00009 #import <Foundation/Foundation.h>
00010 
00011 @class RKDeviceCommand;
00012 @class RKRobot;
00013 @class RKDeviceConnection;
00014 
00021 @interface RKDeviceMessenger : NSObject {
00022     @private
00023         RKDeviceConnection  *connection;
00024         NSMutableArray      *responseObservers;
00025     NSLock              *responseObserversLock;
00026     NSMutableArray      *dataStreamingObservers;
00027     NSLock              *dataStreamingOberversLock;
00028 }
00029 
00031 + (RKDeviceMessenger *)sharedMessenger;
00032 
00037 - (void)postCommand:(RKDeviceCommand *)command;
00043 - (void)postCommand:(RKDeviceCommand *)command delay:(NSTimeInterval)delay;
00050 - (void)addResponseObserver:(id)observer selector:(SEL)handler;
00055 - (void)removeResponseObserver:(id)observer;
00056 
00063 - (void)addDataStreamingObserver:(id)observer selector:(SEL)handler;
00064 
00069 - (void)removeDataStreamingObserver:(id)observer;
00070 
00071 @end
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties