CustomiOSApi 1.11
/Users/user/Documents/sviluppo/CustomiOSApi/CustomiOSApi/CustomiOSApi/CustomiOSApi.h
1//
2// CustomiOSApi.h
3// CustomiOSApi
4//
5// Created by CUSTOM on 01/07/13.
6// Copyright (c) 2013 CUSTOM. All rights reserved.
7//
8
9#ifndef CUSTOMIOSAPI_H_
10#define CUSTOMIOSAPI_H_
11
12#import <Foundation/Foundation.h>
13#import "CustomPrinter.h"
14#import <ExternalAccessory/ExternalAccessory.h>
15#import <CoreBluetooth/CoreBluetooth.h>
16
20@interface CustomiOSApi : NSObject
21{
22 @public
23
24 @protected
25
26 @private
27}
28
33- (NSString *) GetAPIVersion;
34
35// <summary>
39- (void) EnableLogAPI:(Boolean) enable;
40
41//****************************************************************************************************
42//****************************************************************************************************
43//* WIFI / ETHERNET
44//****************************************************************************************************
45//****************************************************************************************************
46
66- (NSArray *) EnumWifiDevices:(NSInteger)searchTime :(NSError**)error;
67
87- (CustomPrinter*) GetPrinterDriverWIFI:(NSString *)printerIpAddr :(NSError**)error;
88
109- (CustomPrinter*) GetPrinterDriverWIFI:(NSString *)printerIpAddr :(NSInteger)printerIpPort :(NSError**)error;
110
111//****************************************************************************************************
112//****************************************************************************************************
113//* BLUETOOTH
114//****************************************************************************************************
115//****************************************************************************************************
116
134- (NSArray *) EnumBTDevices:(NSError**)error;
135
154- (CustomPrinter*) GetPrinterDriverBT:(EAAccessory *)btdevice :(NSError**)error;
155
156//****************************************************************************************************
157//****************************************************************************************************
158//* BLE (BLUETOOTH LOW ENERGY)
159//****************************************************************************************************
160//****************************************************************************************************
161
180- (NSArray *) EnumBLEDevices:(NSInteger)searchTime :(NSError**)error;
181
201- (NSArray *) EnumBLEDevices:(NSInteger)searchTime :(NSString *)strBleGattServiceUUIDToFind :(NSError**)error;
202
221- (CustomPrinter*) GetPrinterDriverBLE:(CBPeripheral *)bledevice :(NSError**)error;
222
246- (CustomPrinter*) GetPrinterDriverBLE:(CBPeripheral *)bledevice :(NSInteger)iBleTxMaxSize :(NSInteger)iBleTxSleepms :(NSString *)strBleGattServiceUUID :(NSString *)strGattCarTx :(NSString *)strGattCarRx :(NSError**)error;
247
248@end
249
250#endif
Class definition for CUSTOM printers. Defines functionality to print text/image, read/write data to p...
Definition: CustomPrinter.h:21
Factory class to get the printer driver class for supported model id
Definition: CustomiOSApi.h:21