Commit 38cfdbfb authored by Alex Moore's avatar Alex Moore
Browse files

Updated workspace, project is now in folder WAMI

parent f608973e
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "self:WAMI_0.1.xcodeproj">
</FileRef>
</Workspace>
(function() {
var el = document.getElementById("CollectionList1");
var btn = document.getElementById("singleRight");
el.selctedIndex = selectedAdd; // Selected add is the index of selected collection
el.value = el.options[selectedAdd].value;
doTransfer1();
})();
\ No newline at end of file
//
// AppDelegate.h
// PLUCdraft
//
// Created by Alexander W. Moore on 2/3/15.
// Copyright (c) 2015 Alexander W. Moore. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
//
// AppDelegate.m
// PLUCdraft
//
// Created by Alexander W. Moore on 2/3/15.
// Copyright (c) 2015 Alexander W. Moore. All rights reserved.
//
#import "AppDelegate.h"
#import "ScanBookViewController.h"
@interface AppDelegate ()
@end
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Override point for customization after application launch.
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
return YES;
}
- (void)applicationWillResignActive:(UIApplication *)application {
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
// Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
}
- (void)applicationDidEnterBackground:(UIApplication *)application {
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
[[Captuvo sharedCaptuvoDevice] stopDecoderHardware] ;
[[Captuvo sharedCaptuvoDevice] stopPMHardware] ;
}
- (void)applicationWillEnterForeground:(UIApplication *)application {
// Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
[[Captuvo sharedCaptuvoDevice] startDecoderHardware] ;
[[Captuvo sharedCaptuvoDevice] startPMHardware] ;
}
- (void)applicationDidBecomeActive:(UIApplication *)application {
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
}
- (void)applicationWillTerminate:(UIApplication *)application {
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
[[Captuvo sharedCaptuvoDevice] stopDecoderHardware] ;
[[Captuvo sharedCaptuvoDevice] stopPMHardware] ;
}
@end
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="6214" systemVersion="14A314h" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6207"/>
<capability name="Constraints with non-1.0 multipliers" minToolsVersion="5.1"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<view contentMode="scaleToFill" id="iN0-l3-epB">
<rect key="frame" x="0.0" y="0.0" width="480" height="480"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text=" Copyright (c) 2015 BucknellECE_SeniorDesignTeam1. All rights reserved." textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" minimumFontSize="9" translatesAutoresizingMaskIntoConstraints="NO" id="8ie-xW-0ye">
<rect key="frame" x="20" y="439" width="441" height="21"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="WAMI_0.1" textAlignment="center" lineBreakMode="middleTruncation" baselineAdjustment="alignBaselines" minimumFontSize="18" translatesAutoresizingMaskIntoConstraints="NO" id="kId-c2-rCX">
<rect key="frame" x="20" y="140" width="441" height="43"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="36"/>
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
<constraints>
<constraint firstItem="kId-c2-rCX" firstAttribute="centerY" secondItem="iN0-l3-epB" secondAttribute="bottom" multiplier="1/3" constant="1" id="5cJ-9S-tgC"/>
<constraint firstAttribute="centerX" secondItem="kId-c2-rCX" secondAttribute="centerX" id="Koa-jz-hwk"/>
<constraint firstAttribute="bottom" secondItem="8ie-xW-0ye" secondAttribute="bottom" constant="20" id="Kzo-t9-V3l"/>
<constraint firstItem="8ie-xW-0ye" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="20" symbolic="YES" id="MfP-vx-nX0"/>
<constraint firstAttribute="centerX" secondItem="8ie-xW-0ye" secondAttribute="centerX" id="ZEH-qu-HZ9"/>
<constraint firstItem="kId-c2-rCX" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="20" symbolic="YES" id="fvb-Df-36g"/>
</constraints>
<nil key="simulatedStatusBarMetrics"/>
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
<point key="canvasLocation" x="548" y="455"/>
</view>
</objects>
</document>
//
// Captuvo.h
// Honeywell_SDK
//
// Created by Edward Finegan (edward@dryraintechnologies.com) on 5/20/12.
//
#import <UIKit/UIKit.h>
#import <ExternalAccessory/ExternalAccessory.h>
#pragma mark -
#pragma mark Data Types
/**
@brief Enumeration for connection status
*/
typedef enum {
ProtocolConnectionStatusConnected, /**< A successful connection was made */
ProtocolConnectionStatusAlreadyConnected, /**< The protocol is already connected */
ProtocolConnectionStatusBatteryDepleted, /**< The protocol is unable to be connected due to low battery */
ProtocolConnectionStatusUnableToConnectIncompatiableSledFirmware, /**< The protocol was unable to be connected due to an error */
ProtocolConnectionStatusUnableToConnect, /**< The protocol was unable to be connected due to an error */
} ProtocolConnectionStatus;
/*
@brief Enumeration for HID status
*/
typedef enum {
HIDActiveLock, /**<HID Active and locked */
HIDActiveUnlock, /**<HID Active and Unlocked */
HIDUnactiveLock, /**<HID UnActive and Locked */
HIDUnactiveUnlock /**<HID UnActive and Unlocked */
}HIDCurStatus;
/*
@brief Enumeration for Scan Key status
*/
typedef enum
{
ScanKeyPressing, /** Scan Key pressed */
ScanKeyReleased, /** Scan Key released */
}ScanKeyStatus;
/**
@brief Enumeration for beeper volume
*/
typedef enum {
BeeperVolumeLow, /**< Low volume */
BeeperVolumeMedium, /**< Medium volume */
BeeperVolumeHigh, /**< High volume */
BeeperVolumeOff /**< Volume off */
} BeeperVolume;
/**
@brief Enumeration for beeper pitch
*/
typedef enum {
BeeperPitchLow, /**< Low pitch */
BeeperPitchMedium, /**< Medium pitch */
BeeperPitchHigh /**< High pitch */
} BeeperPitch;
/**
@brief Enumeration for beeper pitch on error
*/
typedef enum {
BeeperErrorPitchRazz, /**< Very Low pitch */
BeeperErrorPitchMedium, /**< Medium pitch */
BeeperErrorPitchHigh /**< High pitch */
} BeeperErrorPitch;
/**
@brief Enumeration for beeper duration
*/
typedef enum {
BeeperDurationShort, /**< Short duration */
BeeperDurationNormal /**< Normal duration */
} BeeperDuration;
/**
@brief Enumeration for selecting what tracts the MSR should read
*/
typedef enum {
TrackSelectionAnyTrack, /**< Any Track */
TrackSelectionRequire1, /**< Require Track 1 Only */
TrackSelectionRequire2, /**< Require Track 2 Only */
TrackSelectionRequire1and2, /**< Require Track 1 & Track 2 */
TrackSelectionRequire3, /**< Require Track 3 Only */
TrackSelectionRequire1and3, /**< Require Track 1 & Track 3 */
TrackSelectionRequire2and3, /**< Require Track 2 & Track 3 */
TrackSelectionRequireAllTracks, /**< Require All Three Tracks */
TrackSelectionAnyTrack1or2, /**< Any Track 1 & 2 */
TrackSelectionAnyTrack2or3, /**< Any Track 2 & 3 */
TrackSelectionUndefined /**< Error state */
} TrackSelection;
/**
@brief Enumeration representing the current security level of the MSR
*/
typedef enum{
SecurityLevel0,
SecurityLevel1,
SecurityLevel2,
SecurityLevel3,
SecurityLevel4,
SecurityLevelUndefined
}SecurityLevel;
/**
@brief Enumeration for selecting symbologies
*/
typedef enum {
SymbologyAll,
SymbologyAustralianPost,
SymbologyAztecCode,
SymbologyBritishPost,
SymbologyCanadianPost,
SymbologyChinaPost,
SymbologyChineseSensibleCode,
SymbologyCodabar,
SymbologyCodablockA,
SymbologyCodablockF,
SymbologyCode11,
SymbologyCode128,
SymbologyGS1_128,
SymbologyCode32Pharmaceutical,
SymbologyCode39,
SymbologyCode49,
SymbologyCode93And93i,
SymbologyDataMatrix,
SymbologyEAN13,
SymbologyEAN13WithAddOn,
SymbologyEAN13WithExtendedCouponCode,
SymbologyEAN8,
SymbologyEAN8WithAddOn,
SymbologyGS1Composite,
SymbologyGS1DataBar,
SymbologyInfoMail,
SymbologyIntelligentMailBarcode,
SymbologyInterleaved2Of5,
SymbologyJapanesePost,
SymbologyKIXPost,
SymbologyKoreaPost,
SymbologyMatrix2Of5,
SymbologyMaxiCode,
SymbologyMicroPDF417,
SymbologyMSI,
SymbologyNEC2Of5,
SymbologyOCRMICR,
SymbologyOCRSEMIFont,
SymbologyOCRA,
SymbologyOCRB,
SymbologyPDF417,
SymbologyPlanetCode,
SymbologyPostal4i,
SymbologyPostnet,
SymbologyQRCodeAndMicroQRCode,
SymbologyStraight2Of5IATA,
SymbologyStraight2Of5Industrial,
SymbologyTCIFLinkedCode39,
SymbologyTelepen,
SymbologyUPCA,
SymbologyUPCAWithAddOn,
SymbologyUPCAWithExtendedCouponCode,
SymbologyUPCE,
SymbologyUPCEWithAddOn,
SymbologyUPCE1,
SymbologyUndefined
} Symbology;
/**
@brief Enumeration for the state of the battery and charging
*/
typedef enum {
ChargeStatusNotCharging, /**< The battery is not connected to external power. */
ChargeStatusCharging, /**< Device is connected to an external power source and is charging. */
ChargeStatusChargeComplete, /**< Device is connected to an external power but is not charing becuase the battery is full. */
ChargeStatusUndefined /**< The status of the battery can not be determined. This is often an error state. */
} ChargeStatus;
/**
@brief Enumeration for the charge remaining in the battery.
*/
typedef enum {
BatteryStatusPowerSourceConnected, /**< Device is connected to a power source */
BatteryStatus4Of4Bars, /**< Battery indicator should read 4 of 4 bars */
BatteryStatus3Of4Bars, /**< Battery indicator should read 3 of 4 bars */
BatteryStatus2Of4Bars, /**< Battery indicator should read 2 of 4 bars */
BatteryStatus1Of4Bars, /**< Battery indicator should read 1 of 4 bars */
BatteryStatus0Of4Bars, /**< Battery indicator should read 0 of 4 bars */
BatteryStatusUndefined /**< Unable to determine the battery level */
} BatteryStatus;
#pragma mark -
#pragma mark Symbology Configuration Objects
/**
@brief Enumeration of the UPC-A extended coupon code settings
*/
typedef enum {
UPCA_EAN13_ExtendedCouponCodeOff, /**< Extended coupon code off */
UPCA_EAN13_ExtendedCouponCodeAllowConcatenation, /**< Allow concatenation of the extended coupon code */
UPCA_EAN13_ExtendedCouponCodeRequireConcatenation /**< Require concatenation of the extended coupon code */
} UPCA_EAN13_ExtendedCouponCode;
/**
@brief Enumeration of the PartNumber configuration number serial number
*/
typedef struct
{
Byte mfgSignature[4];
Byte partNumber[18];
Byte configurationNumber[20];
Byte serialNumber[10];
Byte finalAssemblyDate[8];
Byte odmTrackingNumber[8];
} MfgBlockData;
/**
@brief UPCA is the object used to configure the UPC-A symbology
*/
@interface UPCA : NSObject
@property (assign,nonatomic) BOOL enabled;
@property (assign,nonatomic) BOOL enableCheckDigit;
@property (assign,nonatomic) BOOL enableNumberSystem;
@property (assign,nonatomic) BOOL enable2DigitAddenda;
@property (assign,nonatomic) BOOL enable5DigitAddenda;
@property (assign,nonatomic) BOOL requireAddenda;
@property (assign,nonatomic) BOOL enableAddendaSeparator;
@property UPCA_EAN13_ExtendedCouponCode extendedCouponCode;
@end
/**
@brief UPCE0 is the object used to configure the UPC-E0 symbology
*/
@interface UPCE0 : NSObject
@property (assign,nonatomic) BOOL enabled;
@property (assign,nonatomic) BOOL enableExpand;
@property (assign,nonatomic) BOOL requireAddenda;
@property (assign,nonatomic) BOOL enableAddendaSeparator;
@property (assign,nonatomic) BOOL enableCheckDigit;
@property (assign,nonatomic) BOOL enableNumberSystem;
@property (assign,nonatomic) BOOL enable2DigitAddenda;
@property (assign,nonatomic) BOOL enable5DigitAddenda;
@property (assign,nonatomic) BOOL enableUPCE1;
@end
/**
@brief EAN13 is the object used to configure the EAN 13 symbology
*/
@interface EAN13 : NSObject
@property (assign,nonatomic) BOOL enabled;
@property (assign,nonatomic) BOOL enableCheckDigit;
@property (assign,nonatomic) BOOL enable2DigitAddenda;
@property (assign,nonatomic) BOOL enable5DigitAddenda;
@property (assign,nonatomic) BOOL requireAddenda;
@property (assign,nonatomic) BOOL enableAddendaSeparator;
@property (assign,nonatomic) BOOL enableISBNtranslate;
@end
/**
@brief EAN8 is the object used to configure the EAN 8 symbology
*/
@interface EAN8 : NSObject
@property (assign,nonatomic) BOOL enabled;
@property (assign,nonatomic) BOOL enableCheckDigit;
@property (assign,nonatomic) BOOL enable2DigitAddenda;
@property (assign,nonatomic) BOOL enable5DigitAddenda;
@property (assign,nonatomic) BOOL requireAddenda;
@property (assign,nonatomic) BOOL enableAddendaSeparator;
@end
/**
@brief Enumeration of the Codabar checks character settings
*/
typedef enum {
CodabarCheckCharNoCheckChar, /**< Disable the check character */
CodabarCheckCharValidateNotTransmitted, /**< validate the check character but do not send it with the barcode data */
CodabarCheckCharValidateAndTransmit /**< validate the check character and send it with the barcode data */
} CodabarCheckChar;
/**
@brief Enumeration of the Codabar concatenation settings
*/
typedef enum {
CodabarConcatenationOn, /**< Concatenation on */
CodabarConcatenationOff, /**< Concatenation off */
CodabarConcatenationRequired /**< Concatenation required */
} CodabarConcatenation;
/**
@brief Codabar is the object used to configure the Codabar symbology
*/
@interface Codabar : NSObject
@property (assign,nonatomic) BOOL enabled;
@property (assign,nonatomic) BOOL transmitStatStopChar;
@property (assign,nonatomic) CodabarCheckChar checkCharStatus;
@property (assign,nonatomic) CodabarConcatenation concatenationStatus;
@property (assign,nonatomic) int minMessageLength;
@property (assign,nonatomic) int maxMessageLength;
@end
/**
@brief Enumeration of the Code 39 check character settings
*/
typedef enum {
Code39CheckCharNoCheckChar, /**< Disable the check character */
Code39CheckCharValidateNotTransmitted, /**< Vaildate the check character but do not send it with the barcode data */
Code39CheckCharValidateAndTransmit /**< Vaildate the check character and send it with the barcode data */
} Code39CheckChar;
/**
@brief Code39 is the object used to configure the Code 39 symbology
*/
@interface Code39 : NSObject
@property (assign,nonatomic) BOOL enabled;
@property (assign,nonatomic) BOOL transmitStatStopChar;
@property (assign,nonatomic) Code39CheckChar checkCharStatus;
@property (assign,nonatomic) int minMessageLength;
@property (assign,nonatomic) int maxMessageLength;
@property (assign,nonatomic) BOOL enableAppendMode;
@property (assign,nonatomic) BOOL enableCode32Pharmaceutical;
@property (assign,nonatomic) BOOL enableFullASCII;
@end
/**
@brief Enumeration of the Interleaved2of5 object's check character settings
*/
typedef enum {
Interleaved2of5CheckCharNoCheckChar, /**< Disable the check character */
Interleaved2of5CheckCharValidateNotTransmitted, /**< validate the check character but do not send it with the barcode data */
Interleaved2of5CheckCharValidateAndTransmit /**< validate the check character and send it with the barcode data */
} Interleaved2of5CheckChar;
/**
@brief Interleaved2of5 is the object used to configure the Interleaved 2 of 5 symbology
*/
@interface Interleaved2of5 : NSObject
@property (assign,nonatomic) BOOL enabled;
@property (assign,nonatomic) Interleaved2of5CheckChar checkCharStatus;
@property (assign,nonatomic) int minMessageLength;
@property (assign,nonatomic) int maxMessageLength;
@end
/**
@brief Enumeration of the NEC2of5CheckChar object's check character settings
*/
typedef enum {
NEC2of5CheckCharNoCheckChar, /**< Disable the check character */
NEC2of5CheckCharValidateNotTransmitted, /**< validate the check character but do not send it with the barcode data */
NEC2of5CheckCharValidateAndTransmit /**< validate the check character and send it with the barcode data */
} NEC2of5CheckChar;
/**
@brief NEC2of5 is the object used to configure the NEC 2 of 5 symbology
*/
@interface NEC2of5 : NSObject
@property (assign,nonatomic) BOOL enabled;
@property (assign,nonatomic) NEC2of5CheckChar checkCharStatus;
@property (assign,nonatomic) int minMessageLength;
@property (assign,nonatomic) int maxMessageLength;
@end
/**
@brief Code93 is the object used to configure the Code 93 symbology
*/
@interface Code93 : NSObject
@property (assign,nonatomic) BOOL enabled;
@property (assign,nonatomic) int minMessageLength;
@property (assign,nonatomic) int maxMessageLength;
@end
/**
@brief Straight2of5Industrial is the object used to configure the Straight 2 of 5 Industrial symbology
*/
@interface Straight2of5Industrial : NSObject
@property (assign,nonatomic) BOOL enabled;
@property (assign,nonatomic) int minMessageLength;
@property (assign,nonatomic) int maxMessageLength;
@end
/**
@brief Straight2of5IATA is the object used to configure the Straight 2 of 5 IATA symbology
*/
@interface Straight2of5IATA : NSObject
@property (assign,nonatomic) BOOL enabled;
@property (assign,nonatomic) int minMessageLength;
@property (assign,nonatomic) int maxMessageLength;
@end
/**
@brief Matrix2of5 is the object used to configure the Matrix 2 of 5 symbology
*/
@interface Matrix2of5 : NSObject
@property (assign,nonatomic) BOOL enabled;
@property (assign,nonatomic) int minMessageLength;
@property (assign,nonatomic) int maxMessageLength;
@end
/**
@brief Enumeration of the Code11 object's check digit settings
*/
typedef enum {
Code11CheckDigit1, /**< Check digit one */
Code11CheckDigit2 /**< Check digit two */
} Code11CheckDigit;
/**
@brief Code11 is the object used to configure the Code 11 symbology
*/
@interface Code11 : NSObject
@property (assign,nonatomic) BOOL enabled;
@property (assign,nonatomic) int minMessageLength;
@property (assign,nonatomic) int maxMessageLength;
@property (assign,nonatomic) Code11CheckDigit checkDigit;
@end
/**
@brief Code128 is the object used to configure the Code 128 symbology
*/
@interface Code128 : NSObject
@property (assign,nonatomic) BOOL enabled;
@property (assign,nonatomic) int minMessageLength;
@property (assign,nonatomic) int maxMessageLength;
@property (assign,nonatomic) BOOL enableISBTconcatenation;
@end
/**
@brief GS1_128 is the object used to configure the GS1-128 symbology
*/
@interface GS1_128 : NSObject
@property (assign,nonatomic) BOOL enabled;
@property (assign,nonatomic) int minMessageLength;
@property (assign,nonatomic) int maxMessageLength;
@end