9 #import "CustomPrinter.h"
11 #import "PrinterFont.h"
19 NSString* PRINTER_NAME;
20 NSInteger PAPER_WIDTH;
21 NSInteger PRINTER_RESOLUTION;
22 Boolean PRINT_ADD_PAGE_WIDTH;
23 enum Compression PRINTER_COMPRESSIONTYPE;
24 NSData* TAB_CODEPAGE_TYPE;
25 NSData* TAB_CODEPAGE_CMD;
35 -(id)initWithComm:(CommPort*)cPort;
40 - (void) Close:(NSError**)error;
41 - (enum CommPortType) GetPortType;
42 - (Boolean) IsPrinterOnline:(NSError**)error;
43 - (NSInteger) GetPrinterId:(NSError**)error;
44 - (NSString*) GetFirmwareVersion:(NSError**)error;
45 - (NSString*) GetAPIVersion;
46 - (NSData*) GetPrinterFullStatusBuffer:(NSError**)error;
48 - (NSString*) GetPrinterName;
49 - (NSInteger) GetPageWidth;
51 - (NSInteger) GetReadTimeout:(NSError**)error;
52 - (void) SetReadTimeout:(NSInteger)msecs :(NSError**)error;
53 - (NSInteger) GetWriteTimeout:(NSError**)error;
54 - (void) SetWriteTimeout:(NSInteger)msecs :(NSError**)error;
56 - (void) ClearReadBuffer:(NSError**)error;
57 - (NSData *) ReadData:(NSError**)error;
58 - (void) WriteData:(NSData *)data :(NSError**)error;
59 - (NSData *) WriteDataForResponse:(NSData *)data :(NSInteger)readSize :(NSError**)error;
61 - (void) Feed:(NSInteger)nFeeds :(NSError**)error;
62 - (void) Cut:(enum CutType)cutType :(NSError**)error;
63 - (void) Eject:(enum EjectType)ejectType :(NSError**)error;
64 - (void) Present:(NSInteger)presentMM :(NSError**)error;
66 - (void) PrintText:(NSString*)text :(NSInteger)pixel_la :(NSInteger)pixel_w :(
PrinterFont*)font :(NSError**)error;
67 - (void) PrintTextLF:(NSString*)text :(NSInteger)pixel_la :(NSInteger)pixel_w :(
PrinterFont*)font :(NSError**)error;
68 - (void) PrintText:(NSString*)text :(
PrinterFont*)font :(NSError**)error;
69 - (void) PrintTextLF:(NSString*)text :(
PrinterFont*)font :(NSError**)error;
70 - (void) PrintText:(NSString*)text :(NSError**)error;
71 - (void) PrintTextLF:(NSString*)text :(NSError**)error;
73 - (void) PrintImage:(UIImage*)image :(NSInteger)leftAlign :(enum ImageScale)widthOption :(NSInteger)imgWidth :(NSError**)error;
74 - (void) PrintImage:(UIImage*)image :(NSError**)error;
76 - (void) PrintBarcodeText:(NSString*)brcText :(enum BarcodeType)brcType :(enum BarcodeHriType)brcHriType :(enum BarcodeJustification)brcJustification :(NSInteger)brcWidth :(NSInteger)brcHeight :(NSError**)error;
78 - (void) PrintBarcodeData:(NSData*)brcData :(enum BarcodeType)brcType :(enum BarcodeHriType)brcHriType :(enum BarcodeJustification)brcJustification :(NSInteger)brcWidth :(NSInteger)brcHeight :(NSError**)error;