| CustomiOSApi 1.06

- Main Page
- Classes

All Classes Functions Enumerations Enumerator Pages
CustomPrinterBase.h
1 //
2 // CustomPrinterBase.h
3 // CustomiOSApi
4 //
5 // Created by CUSTOM on 08/07/13.
6 // Copyright (c) 2013 CUSTOM. All rights reserved.
7 //
8
9 #import "CustomPrinter.h"
10 #import "CommPort.h"
11 #import "PrinterFont.h"
12 #import "Graphics.h"
13
14 //Hide it in the documentation
15 // @cond PRIVATE
16 @interface CustomPrinterBase : CustomPrinter
17 {
18 @public
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;
26
27 @protected
28 CommPort* commPort;
29 PrinterFont* currentFont;
30
31 @private
32
33 }
34
35 -(id)initWithComm:(CommPort*)cPort;
36
37 //***********************************************
38 // COMMON FUNCTIONS
39 //***********************************************
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;
47 - (PrinterStatus*) GetPrinterFullStatus:(NSError**)error;
48 - (NSString*) GetPrinterName;
49 - (NSInteger) GetPageWidth;
50
51 - (NSInteger) GetReadTimeout:(NSError**)error;
52 - (void) SetReadTimeout:(NSInteger)msecs :(NSError**)error;
53 - (NSInteger) GetWriteTimeout:(NSError**)error;
54 - (void) SetWriteTimeout:(NSInteger)msecs :(NSError**)error;
55
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;
60
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;
65
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) PrintTextArrayLF:(NSArray*)textarray :(PrinterFont*)font :(NSError**)error;
71 - (void) PrintText:(NSString*)text :(NSError**)error;
72 - (void) PrintTextLF:(NSString*)text :(NSError**)error;
73 - (void) PrintTextArrayLF:(NSArray*)textarray :(NSError**)error;
74
75
76 - (void) PrintImage:(UIImage*)image :(NSInteger)leftAlign :(enum ImageScale)widthOption :(NSInteger)imgWidth :(NSError**)error;
77 - (void) PrintImage:(UIImage*)image :(NSError**)error;
78
79 - (void) PrintBarcodeText:(NSString*)brcText :(enum BarcodeType)brcType :(enum BarcodeHriType)brcHriType :(enum BarcodeJustification)brcJustification :(NSInteger)brcWidth :(NSInteger)brcHeight :(NSError**)error;
80
81 - (void) PrintBarcodeData:(NSData*)brcData :(enum BarcodeType)brcType :(enum BarcodeHriType)brcHriType :(enum BarcodeJustification)brcJustification :(NSInteger)brcWidth :(NSInteger)brcHeight :(NSError**)error;
82
83 @end
84
85