UniPRT SDK v1.0.0.0
 
Loading...
Searching...
No Matches
OdvMonitor.h
1//
2// OdvMonitor.h
3// TSCPrinters SDK
4//
5// Created by Realbuber on 2024/4/14.
6//
7
8#ifndef OdvMonitor_h
9#define OdvMonitor_h
10
11
12#endif /* OdvMonitor_h */
13
14#import <Foundation/Foundation.h>
15#import <UniPRT/TcpComm.h>
16#import <UniPRT/JsonComm.h>
17#import <UniPRT/OdvReport.h>
18
53@interface OdvMonitor : NSObject
54
67@property (nonatomic, strong) NSString *DONT_CARE_ID;
68
79@property (nonatomic, strong) NSThread *listenerThread;
80
91@property (nonatomic, strong) id syncContext;
92
103@property (nonatomic, strong) NSString *managedDescriptor;
104
123@property (nonatomic, assign) BOOL odvReportListening;
124
144- (instancetype)initWithTcpComm:(TcpComm *)connection;
145
165- (instancetype)initWithJsonComm:(JsonComm *)mgmtComm;
166
210- (instancetype)initWithCommDescriptor:(NSString *)commDescriptor;
211
228- (void)SetOdvReportListening:(BOOL)value;
229
249typedef void (^OdvReportCallback)(OdvReport *report);
250
267@property (nonatomic, copy) OdvReportCallback odvReportCallback;
268
269@end
Provide support for ODV related services. Module to facilitate listening/retrieval of printer unsolic...
Definition OdvMonitor.h:54
void(^ OdvReportCallback)(OdvReport *report)
A callback type for ODV report changes.
Definition OdvMonitor.h:249
OdvReportCallback odvReportCallback
Holds the function to call when ODV reports are received. Function must match the signature of OdvRep...
Definition OdvMonitor.h:267
BOOL odvReportListening
Enable/disable listening/parsing unsolicited ODV reports sent from printer.
Definition OdvMonitor.h:123
ODV Report class to show ODV/ODV2D data received from printer.
Definition OdvReport.h:33
A class for TCP communication, inheriting from AComm and conforming to the NSStreamDelegate protocol.
Definition TcpComm.h:101