sensitivity.io for iOS & macOS  1.1.4
ScannerExecutor.h
1 //
2 // ScannerExecutor.h
3 //
4 // Created by Andreea ERDELYI <andreea.erdelyi@cososys.com>
5 //
6 // Copyright (C) 2017 CoSoSys Ltd team@sensitivity.io
7 // CoSoSys Ltd. All rights reserved.
8 // Please see the COPYING for more details.
9 //
10 
11 #import <Foundation/Foundation.h>
12 
13 @class ThreadPool;
14 @class ThreatHandler;
15 @class ThreatHandlerFuture;
16 @class ThreatInfosFuture;
17 
21 @interface ScannerExecutor : NSObject
22 
23 - (instancetype _Null_unspecified) init NS_UNAVAILABLE;
24 + (instancetype _Null_unspecified) new NS_UNAVAILABLE;
25 - (instancetype _Null_unspecified) copy NS_UNAVAILABLE;
34 - (instancetype _Nullable) initWithError:(NSError * _Nullable * _Nullable)error NS_DESIGNATED_INITIALIZER NS_SWIFT_NAME(init());
35 
44 - (ThreadPool* _Nullable) threadPoolWithError:(NSError * _Nullable * _Nullable)error;
45 
46 // Core scan API
47 
60 - (ThreatHandlerFuture* _Nullable) scanString:(NSString * _Nonnull)text withThreatHandler:(ThreatHandler * _Nonnull)threatHandler withPriotiry:(NSInteger)priority withError:(NSError * _Nullable * _Nullable)error NS_SWIFT_NAME(scanString(_:threatHandler:priority:));
74 - (ThreatHandlerFuture* _Nullable) scanData:(NSData * _Nonnull)data withThreatHandler:(ThreatHandler * _Nonnull)threatHandler fileName:(NSString * _Nullable)fileName withPriotiry:(NSInteger)priority withError:(NSError * _Nullable * _Nullable)error NS_SWIFT_NAME(scanData(_:threatHandler:fileName:priority:));
87 - (ThreatHandlerFuture* _Nullable) scanFileAtPath:(NSString * _Nonnull)filePath withThreatHandler:(ThreatHandler * _Nonnull)threatHandler withPriotiry:(NSInteger)priority withError:(NSError * _Nullable * _Nullable)error NS_SWIFT_NAME(scanFile(atPath:threatHandler:priority:));
88 
89 // Convenience scan API
102 - (ThreatInfosFuture* _Nullable) scanString:(NSString * _Nonnull)text stopAtFirstThreat:(BOOL)stopAtFirst withPriotiry:(NSInteger)priority withError:(NSError * _Nullable * _Nullable)error NS_SWIFT_NAME(scanString(_:stopAtFirstThreat:priority:));
116 - (ThreatInfosFuture* _Nullable) scanData:(NSData * _Nonnull)data stopAtFirstThreat:(BOOL)stopAtFirst fileName:(NSString * _Nullable)fileName withPriotiry:(NSInteger)priority withError:(NSError * _Nullable * _Nullable)error NS_SWIFT_NAME(scanData(_:stopAtFirstThreat:fileName:priority:));
129 - (ThreatInfosFuture* _Nullable) scanFileAtPath:(NSString * _Nonnull)filePath stopAtFirstThreat:(BOOL)stopAtFirst withPriotiry:(NSInteger)priority withError:(NSError * _Nullable * _Nullable)error NS_SWIFT_NAME(scanFile(atPath:stopAtFirstThreat:priority:));
130 
131 @end
Definition: ScannerExecutor.h:21
Definition: ThreadPool.h:18
Definition: ThreatInfosFuture.h:18
Definition: ThreatHandlerFuture.h:16
Definition: ThreatHandler.h:19