Skip to content

Commit 627c337

Browse files
authored
Upgrade to v3.1.9 (#6)
* Upgrade brother printer SDK to 3.1.9 * Bump cocoapods version
1 parent bc38076 commit 627c337

15 files changed

+406
-115
lines changed

BRPtouchPrinterKit.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Pod::Spec.new do |s|
1616
#
1717

1818
s.name = "BRPtouchPrinterKit"
19-
s.version = "3.1.6"
19+
s.version = "3.1.9"
2020
s.summary = "Brother Print SDK for iPhone/iPad."
2121

2222
s.description = <<-DESC
@@ -73,7 +73,7 @@ Pod::Spec.new do |s|
7373
# Supports git, hg, bzr, svn and HTTP.
7474
#
7575

76-
s.source = { :git => "https://github.com/envoy/BRPtouchPrinterKit.git", :tag => "3.1.6" }
76+
s.source = { :git => "https://github.com/envoy/BRPtouchPrinterKit.git", :tag => "3.1.9" }
7777

7878

7979
# ――― Source Code ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
Binary file not shown.
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
//
2+
// BRPtouchBLEManager.h
3+
// BRPtouchPrinterKit
4+
//
5+
// Copyright (c) 2017-2018 Brother Industries, Ltd. All rights reserved.
6+
//
7+
8+
#import <Foundation/Foundation.h>
9+
#import "BRPtouchDeviceInfo.h"
10+
#import <CoreBluetooth/CoreBluetooth.h>
11+
12+
@interface BRPtouchBLEManager : NSObject
13+
14+
+ (BRPtouchBLEManager *)sharedManager;
15+
16+
/**
17+
Start searching BLE printers
18+
@return NO if BLE is not available, otherwise YES
19+
*/
20+
typedef void (^BRBLEManagerSearchCompletionHandler)(BRPtouchDeviceInfo *deviceInfo);
21+
- (BOOL)startSearchWithCompletionHandler:(BRBLEManagerSearchCompletionHandler)handler;
22+
23+
/**
24+
Stop searching BLE printers
25+
*/
26+
- (void)stopSearch;
27+
28+
@end
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
//
2+
// BRPtouchBatteryInfo.h
3+
// BRPtouchPrinterKit
4+
//
5+
// Copyright (c) 2018 Brother Industries, Ltd. All rights reserved.
6+
//
7+
#import <Foundation/Foundation.h>
8+
9+
typedef NS_ENUM(NSUInteger, BRPtouchBatteryInfoBatteryHealthStatus) {
10+
BRPtouchBatteryInfoBatteryHealthStatusExcellent,
11+
BRPtouchBatteryInfoBatteryHealthStatusGood,
12+
BRPtouchBatteryInfoBatteryHealthStatusReplaceSoon,
13+
BRPtouchBatteryInfoBatteryHealthStatusReplaceBattery,
14+
BRPtouchBatteryInfoBatteryHealthStatusNotInstalled,
15+
};
16+
17+
@interface BRPtouchBatteryInfo : NSObject
18+
@property (nonatomic, readonly) int8_t batteryChargeLevel; // 0~100[%] Not Installed: -1
19+
@property (nonatomic, readonly) int8_t batteryHealthLevel; // 0~100[%] Not Installed: -1
20+
@property (nonatomic, readonly) BRPtouchBatteryInfoBatteryHealthStatus batteryHealthStatus;
21+
22+
- (instancetype)initWithChargeLevel:(int8_t)chargeLevel
23+
healthLevel:(int8_t)healthLevel
24+
healthStatusData:(int8_t)healthStatusData;
25+
26+
@end

Frameworks/BRPtouchPrinterKit.framework/Versions/A/Headers/BRPtouchBluetoothManager.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// BRPtouchBluetoothManager.h
33
// BRSearchModule
44
//
5-
// Copyright (c) 2017 Brother. All rights reserved.
5+
// Copyright (c) 2015-2018 Brother Industries, Ltd. All rights reserved.
66
//
77

88

Frameworks/BRPtouchPrinterKit.framework/Versions/A/Headers/BRPtouchDeviceInfo.h

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,21 @@
22
// BRPtouchDevice.h
33
// BRSearchModule
44
//
5-
// Copyright (c) 2017 Brother. All rights reserved.
5+
// Copyright (c) 2015-2018 Brother Industries, Ltd. All rights reserved.
66
//
77

88
#import <Foundation/Foundation.h>
99

1010
@interface BRPtouchDeviceInfo : NSObject
1111

12-
@property (copy,nonatomic)NSString* strIPAddress;
13-
@property (copy,nonatomic)NSString* strLocation;
14-
@property (copy,nonatomic)NSString* strModelName;
15-
@property (copy,nonatomic)NSString* strPrinterName;
16-
@property (copy,nonatomic)NSString* strSerialNumber;
17-
@property (copy,nonatomic)NSString* strNodeName;
18-
@property (copy,nonatomic)NSString* strMACAddress;
12+
@property (copy,nonatomic)NSString* strIPAddress;
13+
@property (copy,nonatomic)NSString* strLocation;
14+
@property (copy,nonatomic)NSString* strModelName;
15+
@property (copy,nonatomic)NSString* strPrinterName;
16+
@property (copy,nonatomic)NSString* strSerialNumber;
17+
@property (copy,nonatomic)NSString* strNodeName;
18+
@property (copy,nonatomic)NSString* strMACAddress;
19+
@property (copy,nonatomic)NSString* strBLEAdvertiseLocalName;
1920

2021
- (NSString *)description;
2122

Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
//
2+
// BRPtouchLabelInfo.h
3+
// BRPtouchPrinterKit
4+
//
5+
// Copyright (c) 2016-2018 Brother Industries, Ltd. All rights reserved.
6+
//
7+
8+
#import <Foundation/Foundation.h>
9+
10+
typedef NS_ENUM(NSUInteger, LabelIdType) {
11+
12+
//QL
13+
LabelIdTypeW17H54 = 0x01,
14+
LabelIdTypeW17H87 = 0x02,
15+
LabelIdTypeW23H23 = 0x03,
16+
LabelIdTypeW29H42 = 0x04,
17+
LabelIdTypeW29H90 = 0x05,
18+
LabelIdTypeW38H90 = 0x06,
19+
LabelIdTypeW39H48 = 0x07,
20+
LabelIdTypeW52H29 = 0x08,
21+
LabelIdTypeW62H29 = 0x09,
22+
LabelIdTypeW62H100 = 0x0a,
23+
LabelIdTypeW12 = 0x0b, //also used in PT
24+
LabelIdTypeW29 = 0xc,
25+
LabelIdTypeW38 = 0xd,
26+
LabelIdTypeW50 = 0xe,
27+
LabelIdTypeW54 = 0xf,
28+
LabelIdTypeW62 = 0x10,
29+
LabelIdTypeW60H86 = 0x11,
30+
31+
//PT
32+
LabelIdTypeW3_5 = 0x12,
33+
LabelIdTypeW6 = 0x13,
34+
LabelIdTypeW9 = 0x14,
35+
LabelIdTypeW18 = 0x15,
36+
LabelIdTypeW24 = 0x16,
37+
LabelIdTypeHS_W6 = 0x17,
38+
LabelIdTypeHS_W9 = 0x18,
39+
LabelIdTypeHS_W12 = 0x19,
40+
LabelIdTypeHS_W18 = 0x1a,
41+
LabelIdTypeHS_W24 = 0x1b,
42+
LabelIdTypeW36 = 0x1c,
43+
44+
LabelIdTypeR6_5 = 0x1d,
45+
LabelIdTypeR6_0 = 0x1f,
46+
LabelIdTypeR5_0 = 0x20,
47+
LabelIdTypeR4_0 = 0x21,
48+
LabelIdTypeR3_5 = 0x22,
49+
LabelIdTypeR3_0 = 0x23,
50+
LabelIdTypeR2_5 = 0x24,
51+
52+
LabelIdTypeFLE_W21H45 = 0x25,
53+
54+
//QL-8対応
55+
LabelIdTypeW62RB = 0x26,
56+
LabelIdTypeW54H29 = 0x27,
57+
58+
//QL_1100
59+
LabelIdTypeW102 = 0x28,
60+
LabelIdTypeW102H51 = 0x29,
61+
LabelIdTypeW102H152 = 0x30,
62+
LabelIdTypeW103 = 0x31,
63+
LabelIdTypeW103H164 = 0x32,
64+
LabelIdTypeDT_W90 = 0x33,
65+
LabelIdTypeDT_W102 = 0x34,
66+
LabelIdTypeDT_W102H51 = 0x35,
67+
LabelIdTypeDT_W102H152 = 0x36,
68+
69+
LabelIdTypeLABEL_MAX
70+
71+
};
72+
73+
typedef NS_ENUM(NSUInteger, ColorType) {
74+
WHITE = 0x01,
75+
OTHERS,
76+
CLEAR,
77+
RED,
78+
BLUE,
79+
YELLOW,
80+
GREEN,
81+
BLACK,
82+
CLEAR_WHITE,
83+
GOLD = 0x0A ,
84+
GOLD_PREMIUM = 0x0B,
85+
SILVER_PREMIUM = 0x0C,
86+
OTHERS_PREMIUM = 0x0D,
87+
OTHERS_MASKING = 0x0E,
88+
MATTE_WHITE = 0x20,
89+
MATTE_CLEAR,
90+
MATTE_SILVER,
91+
SATIN_GOLD,
92+
SATIN_SILVER = 0x24,
93+
BLUE_WHITE = 0x30,
94+
RED_WHITE = 0x31,
95+
FLOURESCENT_ORANGE = 0x40,
96+
FLOURESCENT_YELLOW = 0x41,
97+
BERRY_PINK = 0x50,
98+
LIGHT_GLAY,
99+
LIME_GREEN = 0x52,
100+
FABRIC_YELLOW = 0x60,
101+
FABRIC_PINK = 0x61,
102+
FABRIC_BLUE = 0x62,
103+
TUBE_WHITE = 0x70,
104+
SELF_WHITE = 0x80,
105+
FLEXIBLE_WHITE = 0x90,
106+
FLEXIBLE_YELLOW = 0x91,
107+
CLEANING = 0xF0,
108+
STENCIL = 0xF1,
109+
UNSUPPORT = 0xFF,
110+
};
111+
112+
@interface BRPtouchLabelInfoStatus : NSObject
113+
@property (nonatomic) LabelIdType labelID;
114+
@property (nonatomic) ColorType labelColor;
115+
@property (nonatomic) ColorType fontColor;
116+
117+
@end
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
//
2+
// BRPtouchLabelParam.h
3+
// BRPtouchPrinterKit
4+
//
5+
// Copyright (c) 2016-2018 Brother Industries, Ltd. All rights reserved.
6+
//
7+
8+
#import <Foundation/Foundation.h>
9+
10+
@interface BRPtouchLabelParam : NSObject
11+
@property (nonatomic) unsigned int paperID;
12+
@property (nonatomic, copy) NSString* paperName;
13+
@property (nonatomic) unsigned int paperSize;
14+
@property (nonatomic) unsigned int pinOffsetLeft;
15+
@property (nonatomic) unsigned int pinOffsetRight;
16+
@property (nonatomic) unsigned int physicalOffsetX;
17+
@property (nonatomic) unsigned int physicalOffsetY;
18+
@property (nonatomic) unsigned int paperWidth; //dot
19+
@property (nonatomic) float paperWidth_mm; //mm
20+
@property (nonatomic) unsigned int paperLength; //dot
21+
@property (nonatomic) float paperLength_mm; //mm
22+
@property (nonatomic) unsigned int imageAreaWidth; //dot
23+
@property (nonatomic) unsigned int imageAreaWidth_mm; //mm
24+
@property (nonatomic) unsigned int imageAreaLength; //dot
25+
@property (nonatomic) unsigned int imageAreaLength_mm; //mm
26+
27+
@end

Frameworks/BRPtouchPrinterKit.framework/Versions/A/Headers/BRPtouchNetworkManager.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// BRPtouchNetwork.h
33
// BRPtouchPrinterKit
44
//
5-
// Copyright (c) 2017 Brother Industries, Ltd. All rights reserved.
5+
// Copyright (c) 2012-2018 Brother Industries, Ltd. All rights reserved.
66
//
77

88
#import <Foundation/Foundation.h>
@@ -15,8 +15,6 @@
1515

1616
@protocol BRPtouchNetworkDelegate;
1717

18-
@class PLNetworkModule;
19-
2018
@interface BRPtouchNetworkManager : NSObject <NSNetServiceBrowserDelegate,NSNetServiceDelegate>
2119

2220

@@ -39,6 +37,8 @@
3937

4038
@protocol BRPtouchNetworkDelegate <NSObject>
4139

42-
-(void) didFinishSearch:(id)sender;
40+
- (void)didFinishSearch:(id)sender;
41+
@optional
42+
- (void)didFindDevice:(BRPtouchDeviceInfo *)deviceInfo;
4343

4444
@end

0 commit comments

Comments
 (0)