Cognex Mobile Barcode SDK
SDK for supporting communication with Cognex Barcode Reader devices
CDMDataManSystemDelegate.h
Go to the documentation of this file.
1 //
2 // CDMDataManSystemDelegate.h
3 //
4 // Copyright (c) 2014 Cognex Corporation. All rights reserved.
5 //
6 
7 #import <Foundation/Foundation.h>
8 #import <UIKit/UIKit.h>
9 #import "CDMResponse.h"
10 
11 @class CDMDataManSystem;
12 
16 typedef NS_ENUM(NSInteger, CDMTransferDirection)
17 {
20 };
21 
25 @protocol CDMDataManSystemDelegate <NSObject>
26 
31 - (void)dataManSystemDidConnect:(CDMDataManSystem *)dataManSystem;
32 
38 - (void)dataManSystemDidDisconnect:(CDMDataManSystem *)dataManSystem withError:(NSError *)error;
39 
49 - (void)dataManSystem:(CDMDataManSystem *)dataManSystem didReceiveReadString:(NSString *)readString withId:(int)resultId;
50 
60 - (void)dataManSystem:(CDMDataManSystem *)dataManSystem didReceiveImage:(UIImage *)image withId:(int)resultId;
61 
62 @optional
63 
69 - (void)dataManSystemDidMissHeartbeatResponse:(CDMDataManSystem *)dataManSystem;
70 
79 - (void)dataManSystem:(CDMDataManSystem *)dataManSystem didReceiveXmlStatistics:(NSData *)xml;
80 
90 - (void)dataManSystem:(CDMDataManSystem *)dataManSystem didReceiveXmlResult:(NSData *)xml withId:(int)resultId;
91 
101 - (void)dataManSystem:(CDMDataManSystem *)dataManSystem didReceiveImageGraphics:(NSData *)graphics withId:(int)resultId;
102 
111 - (void)dataManSystem:(CDMDataManSystem *)dataManSystem didReceiveTrainingResult:(NSString *)trainingResult;
112 
118 - (void)dataManSystem:(CDMDataManSystem *)dataManSystem didReceiveStatusEvent:(NSData *)data;
119 
127 - (void)dataManSystem:(CDMDataManSystem *)dataManSystem didReceiveTransferProgress:(CDMTransferDirection)direction totalSize:(NSInteger)total sizeTransferred:(NSInteger)size;
128 
134 - (void)dataManSystem:(CDMDataManSystem *)dataManSystem didReceiveOffProtocolByte:(Byte)byte;
135 
137 // * Occurs when an off protocol byte is received by the connected remote system
138 // * @param dataManSystem the DataMan system that is sending the delegate
139 // */
140 //- (void)dataManSystemDidBecomeUnavailable:(CDMDataManSystem *)dataManSystem;
141 
142 @end
Represents a remote DataMan system.
Definition: CDMDataManSystem.h:267
Definition: CDMDataManSystemDelegate.h:19
Definition: CDMDataManSystemDelegate.h:18
CDMTransferDirection
Indicates the direction of the transfer.
Definition: CDMDataManSystemDelegate.h:16