-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
123 changed files
with
10,810 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+7.52 KB
ios/libs/BRLMPrinterKit.framework/GenericMobileLabelModelPaperSizeViewController.nib
Binary file not shown.
727 changes: 727 additions & 0 deletions
727
ios/libs/BRLMPrinterKit.framework/Headers/BMSPrinterDriver.h
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
// | ||
// BMSPrinterKit.h | ||
// BMSPrinterKit | ||
// | ||
// Created by BMS on 9/6/12. | ||
// Copyright (c) 2012 Brother Mobile Solutions. All rights reserved. | ||
// | ||
|
||
|
||
#ifndef REMOVE_BRPTOUCH_SDK | ||
#import "BRPtouchPrinterKit.h" | ||
#endif | ||
|
||
#import "BMSPrinterDriver.h" | ||
|
||
#import "PrintSettings.h" | ||
#import "GenericPocketJetPrintSettings.h" | ||
#import "PJ673PrintSettings.h" | ||
#import "PJ763MFiPrintSettings.h" | ||
#import "PJ773PrintSettings.h" | ||
#import "GenericMobileLabelModelPrintSettings.h" | ||
#import "RJ4030AiPrintSettings.h" | ||
#import "RJ4040PrintSettings.h" | ||
#import "RJ4230BPrintSettings.h" | ||
#import "RJ4250WBPrintSettings.h" | ||
#import "RJ3050PrintSettings.h" | ||
#import "RJ3050AiPrintSettings.h" | ||
#import "RJ3150PrintSettings.h" | ||
#import "RJ3150AiPrintSettings.h" | ||
#import "TD2120NPrintSettings.h" | ||
#import "TD2130NPrintSettings.h" | ||
#import "RJ2050PrintSettings.h" | ||
#import "RJ2140PrintSettings.h" | ||
#import "RJ2150PrintSettings.h" | ||
#import "TD4550DNWBPrintSettings.h" | ||
|
||
#import "PrintSettingsViewController.h" | ||
#import "GenericPocketJetPrintSettingsViewController.h" | ||
#import "PJ673PrintSettingsViewController.h" | ||
#import "PJ763MFiPrintSettingsViewController.h" | ||
#import "PJ773PrintSettingsViewController.h" | ||
#import "GenericMobileLabelModelPrintSettingsViewController.h" | ||
#import "RJ4030AiPrintSettingsViewController.h" | ||
#import "RJ4040PrintSettingsViewController.h" | ||
#import "RJ4230BPrintSettingsViewController.h" | ||
#import "RJ4250WBPrintSettingsViewController.h" | ||
#import "RJ3050PrintSettingsViewController.h" | ||
#import "RJ3050AiPrintSettingsViewController.h" | ||
#import "RJ3150PrintSettingsViewController.h" | ||
#import "RJ3150AiPrintSettingsViewController.h" | ||
#import "TD2120NPrintSettingsViewController.h" | ||
#import "TD2130NPrintSettingsViewController.h" | ||
#import "RJ2050PrintSettingsViewController.h" | ||
#import "RJ2140PrintSettingsViewController.h" | ||
#import "RJ2150PrintSettingsViewController.h" | ||
#import "TD4550DNWBPrintSettingsViewController.h" | ||
|
||
@interface BMSPrinterKit : NSObject | ||
|
||
@end |
107 changes: 107 additions & 0 deletions
107
ios/libs/BRLMPrinterKit.framework/Headers/BRCustomPaperInfoCommand.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
// | ||
// BRCustomPaperInfoCommand.h | ||
// BRPtouchPrinterKit | ||
// | ||
// Copyright (c) 2018 Brother Industries, Ltd. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
@interface BRCustomPaperInfoCommand : NSObject | ||
|
||
typedef enum { | ||
Inch = 1, | ||
Mm = 2 | ||
}UnitOfLengthParameter; | ||
|
||
typedef enum { | ||
Roll = 1, | ||
DieCut = 2, | ||
MarkRoll = 3 | ||
}PaperKindParameter; | ||
|
||
typedef enum { | ||
InternalError = -1, | ||
NoErrorParameters = 0, | ||
// Basic | ||
TapeWidth = 1, | ||
TapeLength = 2, | ||
RightMargin = 3, | ||
LeftMargin = 4, | ||
TopMargin = 5, | ||
BottomMargin = 6, | ||
LabelPitch = 7, | ||
MarkPosition = 8, | ||
MarkHeight = 9, | ||
DisplayName = 10, | ||
}ErrorParameterName; | ||
|
||
typedef enum { | ||
NoError = 0, | ||
ExceptionError = 1, | ||
OverTheUpperLimit = 2, | ||
BelowTheLowerLimit = 3, | ||
FailToCreateCommand = 4, | ||
FailToReadPTDFile = 5, | ||
}ErrorParameterDetail; | ||
|
||
|
||
// Basic Settings (readonly) | ||
@property(nonatomic, strong, readonly) NSString *printerName_; | ||
@property(readonly) float tapeWidth_; | ||
@property(readonly) float tapeLength_; | ||
@property(readonly) float rightMargin_; | ||
@property(readonly) float leftMagin_; | ||
@property(readonly) float topMargin_; | ||
@property(readonly) float bottomMargin_; | ||
@property(readonly) float labelPitch_; | ||
@property(readonly) float markPosition_; | ||
@property(readonly) float markHeight_; | ||
@property(readonly) UnitOfLengthParameter unitOfLengthParameter_; | ||
@property(readonly) PaperKindParameter paperKindParameter_; | ||
|
||
// Advance Settings | ||
@property(nonatomic, strong) NSString *displayName; | ||
@property(readwrite) int energyRank; | ||
@property(readwrite) float dieStartRevPlus; | ||
@property(readwrite) float dieStartFwdPlus; | ||
@property(readwrite) float afterFeedPlus; | ||
@property(readwrite) float mediaSensorSensitivity; | ||
@property(readwrite) float mediaSensorIntensity; | ||
|
||
- (id) initWithPrinterNameForRoll: (NSString *) printerName | ||
tapeWidth: (float) tapeWidth | ||
rightMargin: (float) rightMargin | ||
leftMagin: (float) leftMagin | ||
topMargin: (float) topMargin | ||
unitOfLength: (UnitOfLengthParameter) unitOfLengthParameter; | ||
|
||
- (id) initWithPrinterNameForDieCut: (NSString *) printerName | ||
tapeWidth: (float) tapeWidth | ||
tapeLength: (float) tapeLength | ||
rightMargin: (float) rightMargin | ||
leftMagin: (float) leftMagin | ||
topMargin: (float) topMargin | ||
bottomMargin: (float) bottomMargin | ||
labelPitch: (float) labelPitch | ||
unitOfLength: (UnitOfLengthParameter) unitOfLengthParameter; | ||
|
||
- (id) initWithPrinterNameForMarkRoll: (NSString *) printerName | ||
tapeWidth: (float) tapeWidth | ||
tapeLength: (float) tapeLength | ||
rightMargin: (float) rightMargin | ||
leftMagin: (float) leftMagin | ||
topMargin: (float) topMargin | ||
bottomMargin: (float) bottomMargin | ||
markPosition: (float) markPosition | ||
markHeight: (float) markHeight | ||
unitOfLength: (UnitOfLengthParameter) unitOfLengthParameter; | ||
|
||
- (NSData *) getCustomPaperInfoCommandData: (NSMutableArray **)errorArr; | ||
|
||
- (NSString *) valueOfErrorParameter:(ErrorParameterName)errorParameterName; | ||
- (NSString *) valueOfErrorParameterDetail:(ErrorParameterDetail)errorParameterDetail; | ||
|
||
@end | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// | ||
// BRLMPrinterAddress.h | ||
// BRLMPrinterKit | ||
// | ||
// Copyright © 2020 Brother Industries, Ltd. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
#import "BRLMPrinterDefine.h" | ||
|
||
// Set the "serialNumber" that can be getting from EAAccessory. | ||
// Or set the "Bluetooth Address" that can be getting from your printer (*by self-printing and so on). | ||
// Please note that it is NOT the serial number of your Printer. | ||
typedef NSString BRLMExternalAccessorySerialNumber; | ||
|
||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
@interface BRLMChannel : NSObject | ||
|
||
@property (nonatomic, readonly) BRLMChannelType channelType; | ||
@property (nonatomic, readonly) NSString *channelInfo; | ||
|
||
- (instancetype)initWithWifiIPAddress:(NSString *)ipAddress; | ||
- (instancetype)initWithBluetoothSerialNumber:(BRLMExternalAccessorySerialNumber *)serialNumber; | ||
- (instancetype)initWithBLELocalName:(NSString *)localName; | ||
|
||
- (instancetype)init __unavailable; | ||
- (instancetype)copy __unavailable; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
69 changes: 69 additions & 0 deletions
69
ios/libs/BRLMPrinterKit.framework/Headers/BRLMCustomPaperSize.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
// | ||
// BRLMCustomPaperSize.h | ||
// BRLMPrinterKit | ||
// | ||
// Copyright © 2020 Brother Industries, Ltd. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
#import "BRLMPrintImageSettings.h" | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
typedef NS_ENUM(NSInteger, BRLMCustomPaperSizeLengthUnit) { | ||
BRLMCustomPaperSizeLengthUnitInch, | ||
BRLMCustomPaperSizeLengthUnitMm, | ||
// BRLMCustomPaperSizeLengthUnitDot, | ||
}; | ||
|
||
typedef NS_ENUM(NSInteger, BRLMCustomPaperSizePaperKind) { | ||
BRLMCustomPaperSizePaperKindRoll, | ||
BRLMCustomPaperSizePaperKindDieCut, | ||
BRLMCustomPaperSizePaperKindMarkRoll, | ||
BRLMCustomPaperSizePaperKindByFile, | ||
}; | ||
|
||
typedef struct | ||
{ | ||
CGFloat top; | ||
CGFloat left; | ||
CGFloat bottom; | ||
CGFloat right; | ||
} BRLMCustomPaperSizeMargins; | ||
BRLMCustomPaperSizeMargins BRLMCustomPaperSizeMarginsMake(CGFloat top, CGFloat left, CGFloat bottom, CGFloat right); | ||
|
||
/// immutable | ||
@interface BRLMCustomPaperSize : NSObject <NSCoding> | ||
|
||
- (instancetype) initRollWithTapeWidth:(CGFloat) tapeWidth | ||
margins:(BRLMCustomPaperSizeMargins)margins // disable bottomMargin | ||
unitOfLength:(BRLMCustomPaperSizeLengthUnit) unit; | ||
|
||
- (instancetype) initDieCutWithTapeWidth:(CGFloat) tapeWidth | ||
tapeLength:(CGFloat) tapeLength | ||
margins:(BRLMCustomPaperSizeMargins)margins | ||
gapLength:(CGFloat) gapLength | ||
unitOfLength:(BRLMCustomPaperSizeLengthUnit) unit; | ||
|
||
- (instancetype) initMarkRollWithTapeWidth:(CGFloat) tapeWidth | ||
tapeLength:(CGFloat) tapeLength | ||
margins:(BRLMCustomPaperSizeMargins)margins | ||
markPosition:(CGFloat) markVerticalOffset | ||
markHeight:(CGFloat) markLength | ||
unitOfLength:(BRLMCustomPaperSizeLengthUnit) unit; | ||
|
||
- (instancetype) initWithFile:(NSURL*)filePath; | ||
|
||
@property (nonatomic, readonly) BRLMCustomPaperSizePaperKind paperKind; | ||
@property (nonatomic, nullable, readonly) NSURL *paperBinFilePath; | ||
@property (nonatomic, readonly) CGFloat tapeWidth; | ||
@property (nonatomic, readonly) CGFloat tapeLength; | ||
@property (nonatomic, readonly) BRLMCustomPaperSizeMargins margins; | ||
@property (nonatomic, readonly) CGFloat gapLength; | ||
@property (nonatomic, readonly) CGFloat markVerticalOffset; | ||
@property (nonatomic, readonly) CGFloat markLength; | ||
@property (nonatomic, readonly) BRLMCustomPaperSizeLengthUnit unit; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// | ||
// BRLMError.h | ||
// BRLMPrinterKit | ||
// | ||
// Copyright © 2020 Brother Industries, Ltd. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
@interface BRLMError : NSObject | ||
|
||
- (NSString *)description; | ||
@property(nonatomic, readonly, copy, nullable) NSString *errorRecoverySuggestion; | ||
|
||
@property(nonatomic, readonly, copy, nullable) NSDictionary *errorUserInfo; | ||
|
||
|
||
- (instancetype)init __unavailable; | ||
- (instancetype)copy __unavailable; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
27 changes: 27 additions & 0 deletions
27
ios/libs/BRLMPrinterKit.framework/Headers/BRLMGetStatusError.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// | ||
// BRLMGetStatusError.h | ||
// BRLMPrinterKit | ||
// | ||
// Copyright © 2020 Brother Industries, Ltd. All rights reserved. | ||
// | ||
|
||
#import "BRLMError.h" | ||
|
||
typedef NS_ENUM(NSInteger, BRLMGetStatusErrorCode) { | ||
BRLMGetStatusErrorCodeNoError, | ||
BRLMGetStatusErrorCodePrinterNotFound, | ||
BRLMGetStatusErrorCodeTimeout, | ||
}; | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
@interface BRLMGetStatusError : BRLMError | ||
|
||
@property(nonatomic, readonly) BRLMGetStatusErrorCode code; | ||
|
||
- (instancetype)init __unavailable; | ||
- (instancetype)copy __unavailable; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
35 changes: 35 additions & 0 deletions
35
ios/libs/BRLMPrinterKit.framework/Headers/BRLMMWPrintSettings.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// | ||
// BRLMMWPrintSettings.h | ||
// BRLMPrinterKit | ||
// | ||
// Copyright © 2020 Brother Industries, Ltd. All rights reserved. | ||
// | ||
|
||
#import "BRLMPrintSettingsProtocol.h" | ||
#import "BRLMPrintImageSettings.h" | ||
|
||
#import "BRLMCustomPaperSize.h" | ||
|
||
typedef float BRLMMWPrintLengthScale; | ||
|
||
|
||
typedef NS_ENUM(NSInteger, BRLMMWPrintSettingsPaperSize) { | ||
BRLMMWPrintSettingsPaperSizeA6, | ||
BRLMMWPrintSettingsPaperSizeA7, | ||
}; | ||
|
||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
@interface BRLMMWPrintSettings : NSObject <NSCoding, BRLMPrintSettingsProtocol, BRLMPrintImageSettings> | ||
|
||
|
||
@property (nonatomic, readonly) BRLMMWPrintSettingsPaperSize paperSize; | ||
|
||
// override | ||
- (nullable instancetype)initDefaultPrintSettingsWithPrinterModel:(BRLMPrinterModel)model; | ||
- (nullable instancetype)copyWithPrinterModel:(BRLMPrinterModel)model; | ||
@end | ||
|
||
|
||
NS_ASSUME_NONNULL_END |
27 changes: 27 additions & 0 deletions
27
ios/libs/BRLMPrinterKit.framework/Headers/BRLMOpenChannelError.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// | ||
// BRLMOpenChannelError.h | ||
// BRLMPrinterKit | ||
// | ||
// Copyright © 2020 Brother Industries, Ltd. All rights reserved. | ||
// | ||
|
||
#import "BRLMError.h" | ||
|
||
typedef NS_ENUM(NSInteger, BRLMOpenChannelErrorCode) { | ||
BRLMOpenChannelErrorCodeNoError, | ||
BRLMOpenChannelErrorCodeOpenStreamFailure, | ||
BRLMOpenChannelErrorCodeTimeout, | ||
}; | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
@interface BRLMOpenChannelError : BRLMError | ||
|
||
@property(nonatomic, readonly) BRLMOpenChannelErrorCode code; | ||
|
||
- (instancetype)init __unavailable; | ||
- (instancetype)copy __unavailable; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
Oops, something went wrong.