Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
amitraj77 committed Apr 30, 2024
0 parents commit d520a64
Show file tree
Hide file tree
Showing 119 changed files with 5,917 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>AvailableLibraries</key>
<array>
<dict>
<key>BinaryPath</key>
<string>ZebraScannerFramework.framework/ZebraScannerFramework</string>
<key>LibraryIdentifier</key>
<string>ios-arm64</string>
<key>LibraryPath</key>
<string>ZebraScannerFramework.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
</dict>
<dict>
<key>BinaryPath</key>
<string>ZebraScannerFramework.framework/ZebraScannerFramework</string>
<key>LibraryIdentifier</key>
<string>ios-arm64_x86_64-simulator</string>
<key>LibraryPath</key>
<string>ZebraScannerFramework.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
</array>
<key>CFBundlePackageType</key>
<string>XFWK</string>
<key>XCFrameworkFormatVersion</key>
<string>1.0</string>
</dict>
</plist>
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
//
// FirmwareUpdateEvent.h
// ScannerSDKApp
//
// Created by pqj647 on 6/7/16.
// Copyright © 2016 Alexei Igumnov. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "SbtScannerInfo.h"
#import "SbtSdkDefs.h"

@interface FirmwareUpdateEvent : NSObject
/**
Scanner that triggered the event
**/
@property (nonatomic, retain) SbtScannerInfo *scannerInfo;
/*
Maximum number of records contained in the firmware update file
*/
@property(readonly) int maxRecords;
/**Software component number that download has started. */
@property(readonly) int swComponent;
/*
Record number that is being download. This will be available in SCANNER_UF_DL_PROGRESS
*/
@property(readonly) int currentRecord;
/*
Size of the
*/
@property(readonly) int size;
/*
Status of the event.
*/
@property(readonly) SBT_FW_UPDATE_RESULT status;

- (instancetype)initWithScannerInfo:(SbtScannerInfo*)_scannerInfo withRecords:(int)_maxRecords withSWComponenet:(int)_swComponent withCurrentRecord:(int)_currentRecord withStatus:(SBT_FW_UPDATE_RESULT)_status;

@end
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
/******************************************************************************
*
* Copyright Zebra Technologies Corporation. 2013 - 2015
*
* The copyright notice above does not evidence any
* actual or intended publication of such source code.
* The code contains Zebra Technologies
* Confidential Proprietary Information.
*
*
* Description: ISbtSdkApi.h
*
* Notes:
*
******************************************************************************/

#import <Foundation/Foundation.h>

#import "SbtSdkDefs.h"
#import "ISbtSdkApiDelegate.h"
#import <UIKit/UIKit.h>

@protocol ISbtSdkApi <NSObject>

- (SBT_RESULT) sbtSetDelegate:(id<ISbtSdkApiDelegate>)delegate;
- (NSString*) sbtGetVersion;
- (SBT_RESULT) sbtSetOperationalMode:(int)operationalMode;
- (SBT_RESULT) sbtSubsribeForEvents:(int)sdkEventsMask;
- (SBT_RESULT) sbtUnsubsribeForEvents:(int)sdkEventsMask;
/* note: App is responsible for allocation and deallocation of array */
- (SBT_RESULT) sbtGetAvailableScannersList:(NSMutableArray**)availableScannersList;
/* note: App is responsible for allocation and deallocation of array */
- (SBT_RESULT) sbtGetActiveScannersList:(NSMutableArray**)activeScannersList;
- (SBT_RESULT) sbtEstablishCommunicationSession:(int)scannerID;
- (SBT_RESULT) sbtTerminateCommunicationSession:(int)scannerID;
- (SBT_RESULT) sbtEnableAvailableScannersDetection:(BOOL)enable;
- (SBT_RESULT) sbtEnableBluetoothScannerDiscovery:(BOOL)enable;
- (SBT_RESULT) sbtEnableAutomaticSessionReestablishment:(BOOL)enable forScanner:(int)scannerID;
- (SBT_RESULT) sbtExecuteCommand:(int)opCode aInXML:(NSString*)inXML aOutXML:(NSMutableString**)outXML forScanner:(int)scannerID;
- (SBT_RESULT) sbtLedControl:(BOOL)enable aLedCode:(int)ledCode forScanner:(int)scannerID;
- (SBT_RESULT) sbtBeepControl:(int)beepCode forScanner:(int)scannerID;
- (void) sbtSetBTAddress:(NSString*)btAdd;
- (UIImage*) sbtGetPairingBarcode:(BARCODE_TYPE)barcodeType withComProtocol:(STC_COM_PROTOCOL)comProtocol withSetDefaultStatus:(SETDEFAULT_STATUS)setDefaultsStatus withBTAddress:(NSString*)btAddress withImageFrame:(CGRect)imageFrame;
- (UIImage*) sbtGetPairingBarcode:(BARCODE_TYPE)barcodeType withComProtocol:(STC_COM_PROTOCOL)comProtocol withSetDefaultStatus:(SETDEFAULT_STATUS)setDefaultsStatus withImageFrame:(CGRect)imageFrame;
- (SBT_RESULT) sbtAutoConnectToLastConnectedScannerOnAppRelaunch:(BOOL)enable;

@end
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
/******************************************************************************
*
* Copyright Zebra Technologies Corporation. 2013 - 2015
*
* The copyright notice above does not evidence any
* actual or intended publication of such source code.
* The code contains Zebra Technologies
* Confidential Proprietary Information.
*
*
* Description: ISbtSdkApiDelegate.h
*
* Notes:
*
******************************************************************************/

#import <Foundation/Foundation.h>
#import "SbtScannerInfo.h"
#import "FirmwareUpdateEvent.h"

@protocol ISbtSdkApiDelegate <NSObject>

- (void)sbtEventScannerAppeared:(SbtScannerInfo*)availableScanner;
- (void)sbtEventScannerDisappeared:(int)scannerID;
- (void)sbtEventCommunicationSessionEstablished:(SbtScannerInfo*)activeScanner;
- (void)sbtEventCommunicationSessionTerminated:(int)scannerID;
- (void)sbtEventBarcode:(NSString*)barcodeData barcodeType:(int)barcodeType fromScanner:(int)scannerID;
- (void)sbtEventBarcodeData:(NSData*)barcodeData barcodeType:(int)barcodeType fromScanner:(int)scannerID;
- (void)sbtEventFirmwareUpdate:(FirmwareUpdateEvent*)fwUpdateEventObj;

/* TBD */
- (void)sbtEventImage:(NSData*)imageData fromScanner:(int)scannerID;
/* TBD */
- (void)sbtEventVideo:(NSData*)videoFrame fromScanner:(int)scannerID;

@end
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
/******************************************************************************
*
* Copyright Zebra Technologies Corporation. 2014 - 2015
*
* The copyright notice above does not evidence any
* actual or intended publication of such source code.
* The code contains Zebra Technologies
* Confidential Proprietary Information.
*
*
* Description: RMDAttributes.h
*
* Notes:
*
******************************************************************************/

#ifndef __RMD_ATTRIBUTES_H__
#define __RMD_ATTRIBUTES_H__

/* nrv364: in accordance with Motorola Scanner SDK Attribute Data Dictionary 72E-149786-01 */
/* attribute identifiers */
#define RMD_ATTR_MODEL_NUMBER 533
#define RMD_ATTR_SERIAL_NUMBER 534
#define RMD_ATTR_ID_SERIAL_NUMBER 0x0216
#define RMD_ATTR_ID_NAME 0x025F
#define RMD_ATTR_BEEPER_VOLUME 140
#define RMD_ATTR_BEEPER_FREQUENCY 145
#define RMD_ATTR_ACTION_BEEPER_LED 6000
#define RMD_ATTR_SYM_UPC_A 1
#define RMD_ATTR_SYM_UPC_E 2
#define RMD_ATTR_SYM_UPC_E_1 12
#define RMD_ATTR_SYM_EAN_8_JAN_8 4
#define RMD_ATTR_SYM_EAN_13_JAN_13 3
#define RMD_ATTR_SYM_BOOKLAND_EAN 83
#define RMD_ATTR_SYM_CODE_128 8
#define RMD_ATTR_SYM_UCC_EAN_128 14
#define RMD_ATTR_SYM_CODE_39 0
#define RMD_ATTR_SYM_CODE_93 9
#define RMD_ATTR_SYM_CODE_11 10
#define RMD_ATTR_SYM_INTERLEAVED_2_OF_5 6
#define RMD_ATTR_SYM_DISCRETE_2_OF_5 5
#define RMD_ATTR_SYM_CHINESE_2_OF_5 408
#define RMD_ATTR_SYM_CODABAR 7
#define RMD_ATTR_SYM_MSI 11
#define RMD_ATTR_SYM_DATAMATRIXQR 292
#define RMD_ATTR_SYM_PDF 15
#define RMD_ATTR_SYM_ISBT_128 84
#define RMD_ATTR_UCC_COUPEN_EXTENDED_CODE 85
#define RMD_ATTR_FRMWR_VERSION 20012
#define RMD_ATTR_MFD 535
#define RMD_ATTR_REBOOT_AND_UNPAIR 6045

#define RMD_ATTR_SYM_US_Postnet 89
#define RMD_ATTR_SYM_US_Planet 90
#define RMD_ATTR_SYM_UK_POST 91
#define RMD_ATTR_SYM_US_POSTAL_CHECK_DIGIT 95
#define RMD_ATTR_SYM_UK_POSTAL_CHECK_DIGIT 96
#define RMD_ATTR_SYM_JAPAN_POST 290
#define RMD_ATTR_SYM_AUS_POST 291
#define RMD_ATTR_SYM_Netherlands_KIX 326
#define RMD_ATTR_SYM_UPU_FICS 611
#define RMD_ATTR_SYM_USPS_4CB_ONECODE_INTELLIGENT_MAIL 592

#define RMD_ATTR_SYM_GS1_DATABAR_14 338
#define RMD_ATTR_SYM_GS1_DATABAR_LIMITED 339
#define RMD_ATTR_SYM_GS1_DATABAR_EXPANDED 340

#define RMD_ATTR_SYM_MICRO_PDF 227
#define RMD_ATTR_SYM_MAXI_CODE 294
#define RMD_ATTR_ISSN_EAN 617
#define RMD_ATTR_MATRIX_2_OF_5 618
#define RMD_ATTR_KOREAN_3_OF_5 581
#define RMD_ATTR_QR_CODE 293
#define RMD_ATTR_MICRO_QR 573
#define RMD_ATTR_AZTEC 574
#define RMD_ATTR_SYM_DOT_CODE 1906

#define RMD_ATTR_HANXIN 1167
#define RMD_ATTR_COMPOSITE_CC_C 341
#define RMD_ATTR_COMPOSITE_CC_A_B 342
#define RMD_ATTR_COMPOSITE_TLC_39 371

/* attribute values */
#define RMD_ATTR_VALUE_BEEPER_VOLUME_LOW 2
#define RMD_ATTR_VALUE_BEEPER_VOLUME_MEDIUM 1
#define RMD_ATTR_VALUE_BEEPER_VOLUME_HIGH 0

#define RMD_ATTR_VALUE_BEEPER_FREQ_LOW 2
#define RMD_ATTR_VALUE_BEEPER_FREQ_MEDIUM 1
#define RMD_ATTR_VALUE_BEEPER_FREQ_HIGH 0

#define RMD_ATTR_VALUE_ACTION_HIGH_SHORT_BEEP_1 0
#define RMD_ATTR_VALUE_ACTION_HIGH_SHORT_BEEP_2 1
#define RMD_ATTR_VALUE_ACTION_HIGH_SHORT_BEEP_3 2
#define RMD_ATTR_VALUE_ACTION_HIGH_SHORT_BEEP_4 3
#define RMD_ATTR_VALUE_ACTION_HIGH_SHORT_BEEP_5 4
#define RMD_ATTR_VALUE_ACTION_LOW_SHORT_BEEP_1 5
#define RMD_ATTR_VALUE_ACTION_LOW_SHORT_BEEP_2 6
#define RMD_ATTR_VALUE_ACTION_LOW_SHORT_BEEP_3 7
#define RMD_ATTR_VALUE_ACTION_LOW_SHORT_BEEP_4 8
#define RMD_ATTR_VALUE_ACTION_LOW_SHORT_BEEP_5 9
#define RMD_ATTR_VALUE_ACTION_HIGH_LONG_BEEP_1 10
#define RMD_ATTR_VALUE_ACTION_HIGH_LONG_BEEP_2 11
#define RMD_ATTR_VALUE_ACTION_HIGH_LONG_BEEP_3 12
#define RMD_ATTR_VALUE_ACTION_HIGH_LONG_BEEP_4 13
#define RMD_ATTR_VALUE_ACTION_HIGH_LONG_BEEP_5 14
#define RMD_ATTR_VALUE_ACTION_LOW_LONG_BEEP_1 15
#define RMD_ATTR_VALUE_ACTION_LOW_LONG_BEEP_2 16
#define RMD_ATTR_VALUE_ACTION_LOW_LONG_BEEP_3 17
#define RMD_ATTR_VALUE_ACTION_LOW_LONG_BEEP_4 18
#define RMD_ATTR_VALUE_ACTION_LOW_LONG_BEEP_5 19
#define RMD_ATTR_VALUE_ACTION_FAST_WARBLE_BEEP 20
#define RMD_ATTR_VALUE_ACTION_SLOW_WARBLE_BEEP 21
#define RMD_ATTR_VALUE_ACTION_HIGH_LOW_BEEP 22
#define RMD_ATTR_VALUE_ACTION_LOW_HIGH_BEEP 23
#define RMD_ATTR_VALUE_ACTION_HIGH_LOW_HIGH_BEEP 24
#define RMD_ATTR_VALUE_ACTION_LOW_HIGH_LOW_BEEP 25
#define RMD_ATTR_VALUE_ACTION_HIGH_HIGH_LOW_LOW_BEEP 26
#define RMD_ATTR_VALUE_ACTION_LED_GREEN_OFF 42
#define RMD_ATTR_VALUE_ACTION_LED_GREEN_ON 43
#define RMD_ATTR_VALUE_ACTION_LED_YELLOW_ON 45
#define RMD_ATTR_VALUE_ACTION_LED_YELLOW_OFF 46
#define RMD_ATTR_VALUE_ACTION_LED_RED_ON 47
#define RMD_ATTR_VALUE_ACTION_LED_RED_OFF 48
#define RMD_ATTR_VALUE_ACTION_FAST_BLINK 85
#define RMD_ATTR_VALUE_ACTION_FAST_BLINK_OFF 90
#define RMD_ATTR_VALUE_ACTION_REBOOT_AND_UNPAIR 1
#define RMD_ATTR_VALUE_ACTION_VIRTUAL_TETHER_SIMULATION_ENABLE 232
#define RMD_ATTR_VALUE_ACTION_VIRTUAL_TETHER_SIMULATION_DISABLE 233
#define RMD_ATTR_VALUE_AUTO_RECONNECT 604
#define RMD_ATTR_VALUE_PARAMETER_BARCODE 236

#endif /* __RMD_ATTRIBUTES_H__ */
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
/******************************************************************************
*
* Copyright Zebra Technologies Corporation. 2013 - 2015
*
* The copyright notice above does not evidence any
* actual or intended publication of such source code.
* The code contains Zebra Technologies
* Confidential Proprietary Information.
*
*
* Description: SbtScannerInfo.h
*
* Notes:
*
******************************************************************************/

#import <Foundation/Foundation.h>

@interface SbtScannerInfo : NSObject
{
int m_ScannerID; /* SDK assigned unique id */
int m_ConnectionType; /* mfi, btle */
BOOL m_AutoCommunicationSessionReestablishment;
BOOL m_Active; /* communication session is established */
BOOL m_Available;
BOOL m_IsStcConnected;
NSString *m_ScannerName;
NSString *m_ScannerModel;
}

- (id)init;
- (void)dealloc;

- (void)setScannerID:(int)scannerID;
- (void)setConnectionType:(int)connectionType;
- (void)setAutoCommunicationSessionReestablishment:(BOOL)enable;
- (void)setActive:(BOOL)active;
- (void)setAvailable:(BOOL)available;
- (void)setScannerName:(NSString*)scannerName;
- (void)setScannerModel:(NSString*)scannerModel;
- (void)setStcConnected:(BOOL)connected;

- (int)getScannerID;
- (int)getConnectionType;
- (BOOL)getAutoCommunicationSessionReestablishment;
- (BOOL)isActive;
- (BOOL)isAvailable;
- (BOOL)isStcConnected;
- (NSString*)getScannerName;
- (NSString*)getScannerModel;

@property(nonatomic, retain) NSString *firmwareVersion;
@property(nonatomic, retain) NSString *mFD;
@property(nonatomic, retain) NSString *serialNo;
@property(nonatomic, retain) NSString *scannerModelString;

@end
Loading

0 comments on commit d520a64

Please sign in to comment.