diff --git a/iphone/Barcodes/Barcodes.xcodeproj/project.pbxproj b/iphone/Barcodes/Barcodes.xcodeproj/project.pbxproj index b0d43b7e5..6cb0081db 100755 --- a/iphone/Barcodes/Barcodes.xcodeproj/project.pbxproj +++ b/iphone/Barcodes/Barcodes.xcodeproj/project.pbxproj @@ -578,6 +578,7 @@ "-Objc", ); PRODUCT_NAME = Barcodes; + TARGETED_DEVICE_FAMILY = "1,2"; VALID_ARCHS = "armv7 armv7s"; }; name = Debug; @@ -604,6 +605,7 @@ ); PRODUCT_NAME = Barcodes; PROVISIONING_PROFILE = ""; + TARGETED_DEVICE_FAMILY = "1,2"; VALIDATE_PRODUCT = YES; VALID_ARCHS = "armv7 armv7s"; }; @@ -662,6 +664,7 @@ "-Objc", ); PRODUCT_NAME = Barcodes; + TARGETED_DEVICE_FAMILY = "1,2"; VALIDATE_PRODUCT = YES; VALID_ARCHS = "armv7 armv7s"; }; diff --git a/iphone/Barcodes/Classes/ScanViewController.m b/iphone/Barcodes/Classes/ScanViewController.m index b58edd00f..ef29183df 100644 --- a/iphone/Barcodes/Classes/ScanViewController.m +++ b/iphone/Barcodes/Classes/ScanViewController.m @@ -141,7 +141,7 @@ return TITLE_HEIGHT; } else if (indexPath.row == 1) { CGSize size = [[result stringForDisplay] sizeWithFont:bodyFont constrainedToSize:CGSizeMake(280.0, TEXT_VIEW_HEIGHT) lineBreakMode:UILineBreakModeWordWrap]; -#ifdef DEBUG +#ifdef ZXING_DEBUG NSLog(@"text size = %f", size.height); #endif return fminf(TEXT_VIEW_HEIGHT, fmaxf(44, size.height + 24)); diff --git a/iphone/Barcodes/Classes/ZXMainViewController.mm b/iphone/Barcodes/Classes/ZXMainViewController.mm index b0ee97064..c040a1346 100644 --- a/iphone/Barcodes/Classes/ZXMainViewController.mm +++ b/iphone/Barcodes/Classes/ZXMainViewController.mm @@ -8,7 +8,7 @@ // #import "ZXMainViewController.h" -#import +#import #import #import #import @@ -52,7 +52,7 @@ - (IBAction)scan:(id)sender { ZXingWidgetController *widController = [[ZXingWidgetController alloc] initWithDelegate:self showCancel:YES OneDMode:NO]; - QRCodeReader* qrcodeReader = [[QRCodeReader alloc] init]; + MultiFormatReader* qrcodeReader = [[MultiFormatReader alloc] init]; NSSet *readers = [[NSSet alloc ] initWithObjects:qrcodeReader,nil]; [qrcodeReader release]; widController.readers = readers; @@ -109,7 +109,7 @@ #pragma mark ZXingDelegateMethods - (void)zxingController:(ZXingWidgetController*)controller didScanResult:(NSString *)resultString { [self dismissModalViewControllerAnimated:YES]; -#ifdef DEBUG +#ifdef ZXING_DEBUG NSLog(@"result has %d actions", actions ? 0 : actions.count); #endif Scan * scan = [[Database sharedDatabase] addScanWithText:resultString]; @@ -175,6 +175,7 @@ cancelButtonTitle:@"Cancel" otherButtonTitles:@"Return", nil]; [alert show]; + [alert release]; } } @@ -195,7 +196,7 @@ if (self.actions.count == 1) { ResultAction *action = [self.actions lastObject]; -#ifdef DEBUG +#ifdef ZXING_DEBUG NSLog(@"Result has the single action, (%@) '%@', performing it", NSStringFromClass([action class]), [action title]); #endif @@ -203,7 +204,7 @@ withObject:action afterDelay:0.0]; } else { -#ifdef DEBUG +#ifdef ZXING_DEBUG NSLog(@"Result has multiple actions, popping up an action sheet"); #endif UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithFrame:self.view.bounds]; diff --git a/iphone/ScanTest/Classes/RootViewController.mm b/iphone/ScanTest/Classes/RootViewController.mm index e22ee49bb..6b198343f 100644 --- a/iphone/ScanTest/Classes/RootViewController.mm +++ b/iphone/ScanTest/Classes/RootViewController.mm @@ -16,35 +16,7 @@ */ #import "RootViewController.h" - -#ifndef ZXQR -#define ZXQR 1 -#endif - -#if ZXQR -#import "QRCodeReader.h" -#endif - -#ifndef ZXAZ -#define ZXAZ 1 -#endif - -#if ZXAZ -#import "AztecReader.h" -#endif - -#ifndef ZX1D -#define ZX1D 1 -#endif - -#if ZX1D -#import "MultiFormatOneDReader.h" -#endif - -@interface RootViewController() - -@end - +#import "MultiFormatReader.h" @implementation RootViewController @synthesize resultsView; @@ -65,25 +37,9 @@ NSMutableSet *readers = [[NSMutableSet alloc ] init]; -#if ZXQR - QRCodeReader* qrcodeReader = [[QRCodeReader alloc] init]; - [readers addObject:qrcodeReader]; - [qrcodeReader release]; -#endif - -#if ZXAZ - AztecReader *aztecReader = [[AztecReader alloc] init]; - [readers addObject:aztecReader]; - [aztecReader release]; -#endif - -#if ZX1D - { - MultiFormatOneDReader* reader = [[MultiFormatOneDReader alloc] init]; - [readers addObject:reader]; - [reader release]; - } -#endif + MultiFormatReader* reader = [[MultiFormatReader alloc] init]; + [readers addObject:reader]; + [reader release]; widController.readers = readers; [readers release]; @@ -91,7 +47,10 @@ NSBundle *mainBundle = [NSBundle mainBundle]; widController.soundToPlay = [NSURL fileURLWithPath:[mainBundle pathForResource:@"beep-beep" ofType:@"aiff"] isDirectory:NO]; + [self presentModalViewController:widController animated:YES]; + // [self presentViewController:widController animated:YES completion:nil]; + [widController release]; } @@ -105,10 +64,12 @@ [resultsView setNeedsDisplay]; } [self dismissModalViewControllerAnimated:NO]; + // [self dismissViewControllerAnimated:NO completion:nil]; } - (void)zxingControllerDidCancel:(ZXingWidgetController*)controller { - [self dismissModalViewControllerAnimated:YES]; + [self dismissModalViewControllerAnimated:NO]; + // [self dismissViewControllerAnimated:YES completion:nil]; } - (void)viewDidUnload { diff --git a/iphone/ScanTest/ScanTest-Info.plist b/iphone/ScanTest/ScanTest-Info.plist index a50990275..41d816136 100644 --- a/iphone/ScanTest/ScanTest-Info.plist +++ b/iphone/ScanTest/ScanTest-Info.plist @@ -2,10 +2,6 @@ - UISupportedInterfaceOrientations - - UIInterfaceOrientationPortrait - CFBundleDevelopmentRegion English CFBundleDisplayName @@ -30,5 +26,11 @@ NSMainNibFile MainWindow + NSMainNibFile~ipad + MainWindow-iPad + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + diff --git a/iphone/ScanTest/ScanTest.xcodeproj/project.pbxproj b/iphone/ScanTest/ScanTest.xcodeproj/project.pbxproj index 24e6c3d51..4b8df9342 100755 --- a/iphone/ScanTest/ScanTest.xcodeproj/project.pbxproj +++ b/iphone/ScanTest/ScanTest.xcodeproj/project.pbxproj @@ -19,6 +19,7 @@ 3B0A5DB91444C492000EC568 /* Icon.png in Resources */ = {isa = PBXBuildFile; fileRef = 3B0A5DB81444C492000EC568 /* Icon.png */; }; 3B331CEE161BB74E007313B6 /* Default-568h@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 3B331CED161BB74E007313B6 /* Default-568h@2x.png */; }; 3B43FDCB15939575001CD5C9 /* libZXingWidget.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 1F027F7E11A7BAD4006B06DE /* libZXingWidget.a */; }; + 3B6AA67A1710EF3400DF84C0 /* MainWindow-iPad.xib in Resources */ = {isa = PBXBuildFile; fileRef = 3B6AA6791710EF3400DF84C0 /* MainWindow-iPad.xib */; }; 3BCED5C8120F84C900131FA0 /* AVFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3BCED5C7120F84C900131FA0 /* AVFoundation.framework */; }; 3BCED5CE120F84E000131FA0 /* CoreVideo.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3BCED5CD120F84E000131FA0 /* CoreVideo.framework */; }; 3BCED5EB120F885C00131FA0 /* CoreMedia.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3BCED5EA120F885C00131FA0 /* CoreMedia.framework */; }; @@ -67,6 +68,7 @@ 28F335F01007B36200424DE2 /* RootViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = RootViewController.xib; sourceTree = ""; }; 3B0A5DB81444C492000EC568 /* Icon.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Icon.png; sourceTree = ""; }; 3B331CED161BB74E007313B6 /* Default-568h@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default-568h@2x.png"; sourceTree = ""; }; + 3B6AA6791710EF3400DF84C0 /* MainWindow-iPad.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = "MainWindow-iPad.xib"; path = "iPad/MainWindow-iPad.xib"; sourceTree = ""; }; 3BCED5C7120F84C900131FA0 /* AVFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AVFoundation.framework; path = System/Library/Frameworks/AVFoundation.framework; sourceTree = SDKROOT; }; 3BCED5CD120F84E000131FA0 /* CoreVideo.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreVideo.framework; path = System/Library/Frameworks/CoreVideo.framework; sourceTree = SDKROOT; }; 3BCED5EA120F885C00131FA0 /* CoreMedia.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreMedia.framework; path = System/Library/Frameworks/CoreMedia.framework; sourceTree = SDKROOT; }; @@ -133,6 +135,7 @@ 080E96DDFE201D6D7F000001 /* Classes */, 29B97315FDCFA39411CA2CEA /* Other Sources */, 29B97317FDCFA39411CA2CEA /* Resources */, + 3B6AA6781710EF3400DF84C0 /* iPad */, 29B97323FDCFA39411CA2CEA /* Frameworks */, 19C28FACFE9D520D11CA2CBB /* Products */, ); @@ -175,6 +178,14 @@ name = Frameworks; sourceTree = ""; }; + 3B6AA6781710EF3400DF84C0 /* iPad */ = { + isa = PBXGroup; + children = ( + 3B6AA6791710EF3400DF84C0 /* MainWindow-iPad.xib */, + ); + name = iPad; + sourceTree = ""; + }; /* End PBXGroup section */ /* Begin PBXNativeTarget section */ @@ -257,6 +268,7 @@ E548755C119C62B9001CC0F8 /* beep-beep.aiff in Resources */, 3B0A5DB91444C492000EC568 /* Icon.png in Resources */, 3B331CEE161BB74E007313B6 /* Default-568h@2x.png in Resources */, + 3B6AA67A1710EF3400DF84C0 /* MainWindow-iPad.xib in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -298,6 +310,7 @@ GCC_SYMBOLS_PRIVATE_EXTERN = NO; "GCC_THUMB_SUPPORT[arch=armv6]" = NO; INFOPLIST_FILE = "ScanTest-Info.plist"; + IPHONEOS_DEPLOYMENT_TARGET = 4.3; LIBRARY_SEARCH_PATHS = "$(inherited)"; ONLY_ACTIVE_ARCH = YES; OTHER_LDFLAGS = ""; @@ -305,6 +318,7 @@ PRODUCT_NAME = ScanTest; "PROVISIONING_PROFILE[sdk=*]" = ""; STANDARD_C_PLUS_PLUS_LIBRARY_TYPE = dynamic; + TARGETED_DEVICE_FAMILY = "1,2"; }; name = Debug; }; @@ -319,7 +333,9 @@ GCC_SYMBOLS_PRIVATE_EXTERN = NO; "GCC_THUMB_SUPPORT[arch=armv6]" = NO; INFOPLIST_FILE = "ScanTest-Info.plist"; + IPHONEOS_DEPLOYMENT_TARGET = 4.3; PRODUCT_NAME = ScanTest; + TARGETED_DEVICE_FAMILY = "1,2"; VALIDATE_PRODUCT = YES; }; name = Release; diff --git a/iphone/ScanTest/iPad/MainWindow-iPad.xib b/iphone/ScanTest/iPad/MainWindow-iPad.xib new file mode 100644 index 000000000..0560f4caf --- /dev/null +++ b/iphone/ScanTest/iPad/MainWindow-iPad.xib @@ -0,0 +1,270 @@ + + + + 1552 + 12D78 + 3084 + 1187.37 + 626.00 + + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + 2083 + + + YES + IBProxyObject + IBUICustomObject + IBUINavigationBar + IBUINavigationController + IBUINavigationItem + IBUIViewController + IBUIWindow + + + YES + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + + + PluginDependencyRecalculationVersion + + + + YES + + IBFilesOwner + IBIPadFramework + + + IBFirstResponder + IBIPadFramework + + + IBIPadFramework + + + + 1316 + + {768, 1024} + + 1 + MSAxIDEAA + + NO + NO + + 2 + + IBIPadFramework + YES + + + + + 1 + 1 + + IBIPadFramework + NO + + + 256 + {0, 0} + NO + YES + YES + IBIPadFramework + + + YES + + + IBIPadFramework + + + RootViewController + + + 1 + 1 + + IBIPadFramework + NO + + + + + + + YES + + + delegate + + + + 4 + + + + window + + + + 5 + + + + navigationController + + + + 15 + + + + + YES + + 0 + + YES + + + + + + 2 + + + YES + + + + + -1 + + + File's Owner + + + 3 + + + + + -2 + + + + + 9 + + + YES + + + + + + + 11 + + + + + 13 + + + YES + + + + + + 14 + + + + + + + YES + + YES + -1.CustomClassName + -1.IBPluginDependency + -2.CustomClassName + -2.IBPluginDependency + 11.IBPluginDependency + 13.CustomClassName + 13.IBLastUsedUIStatusBarStylesToTargetRuntimesMap + 13.IBPluginDependency + 14.IBPluginDependency + 2.IBAttributePlaceholdersKey + 2.IBLastUsedUIStatusBarStylesToTargetRuntimesMap + 2.IBPluginDependency + 3.CustomClassName + 3.IBPluginDependency + 9.IBLastUsedUIStatusBarStylesToTargetRuntimesMap + 9.IBPluginDependency + + + YES + UIApplication + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + UIResponder + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + RootViewController + + IBCocoaTouchFramework + + + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + + YES + + + + + IBCocoaTouchFramework + + + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + ScanTestAppDelegate + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + + IBCocoaTouchFramework + + + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + + + + YES + + + + + + YES + + + + + 15 + + + 0 + IBIPadFramework + + com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3 + + + YES + 3 + 2083 + + diff --git a/iphone/ZXingWidget/Classes/Decoder.h b/iphone/ZXingWidget/Classes/Decoder.h index c8e0b9c6f..9db2d78f0 100644 --- a/iphone/ZXingWidget/Classes/Decoder.h +++ b/iphone/ZXingWidget/Classes/Decoder.h @@ -1,9 +1,4 @@ -// -// Decoder.h -// ZXing -// -// Created by Christian Brunschen on 31/03/2008. -// +// -*- mode:objc; c-basic-offset:2; indent-tabs-mode:nil -*- /* * Copyright 2008 ZXing authors * @@ -36,14 +31,6 @@ @property(nonatomic, retain) UIImage *image; @property(nonatomic, retain) NSSet *readers; -#if 0 -@property(nonatomic, assign) CGRect cropRect; -@property(nonatomic, retain) UIImage *subsetImage; -@property(nonatomic, assign) char *subsetData; -@property(assign) size_t subsetWidth; -@property(assign) size_t subsetHeight; -@property(assign) size_t subsetBytesPerRow; -#endif @property(nonatomic, assign) id delegate; - (BOOL) decodeImage:(UIImage *)image; diff --git a/iphone/ZXingWidget/Classes/Decoder.mm b/iphone/ZXingWidget/Classes/Decoder.mm index 4453a5e9e..db410c3ed 100644 --- a/iphone/ZXingWidget/Classes/Decoder.mm +++ b/iphone/ZXingWidget/Classes/Decoder.mm @@ -48,17 +48,9 @@ ZXingWidgetControllerCallback(Decoder* _decoder) : decoder(_decoder) {} @synthesize image; @synthesize subsetImage; -#if 0 -@synthesize cropRect; -@synthesize subsetData; -@synthesize subsetWidth; -@synthesize subsetHeight; -@synthesize subsetBytesPerRow; -#endif @synthesize delegate; @synthesize readers; - - (void)willDecodeImage { if ([self.delegate respondsToSelector:@selector(decoder:willDecodeImage:usingSubset:)]) { [self.delegate decoder:self willDecodeImage:self.image usingSubset:self.subsetImage]; @@ -86,15 +78,16 @@ ZXingWidgetControllerCallback(Decoder* _decoder) : decoder(_decoder) {} } #define SUBSET_SIZE 360 + - (ArrayRef) prepareSubset { CGSize size = [image size]; -#ifdef DEBUG +#ifdef ZXING_DEBUG NSLog(@"decoding: image is (%.1f x %.1f), cropRect is (%.1f,%.1f)x(%.1f,%.1f)", size.width, size.height, cropRect.origin.x, cropRect.origin.y, cropRect.size.width, cropRect.size.height); #endif float scale = fminf(1.0f, fmaxf(SUBSET_SIZE / cropRect.size.width, SUBSET_SIZE / cropRect.size.height)); CGPoint offset = CGPointMake(-cropRect.origin.x, -cropRect.origin.y); -#ifdef DEBUG +#ifdef ZXING_DEBUG NSLog(@" offset = (%.1f, %.1f), scale = %.3f", offset.x, offset.y, scale); #endif @@ -102,13 +95,13 @@ ZXingWidgetControllerCallback(Decoder* _decoder) : decoder(_decoder) {} subsetHeight = cropRect.size.height * scale; subsetBytesPerRow = ((subsetWidth + 0xf) >> 4) << 4; -#ifdef DEBUG - NSLog(@"decoding: image to decode is (%d x %d) (%d bytes/row)", subsetWidth, subsetHeight, subsetBytesPerRow); +#ifdef ZXING_DEBUG + NSLog(@"decoding: image to decode is (%lu x %lu) (%lu bytes/row)", subsetWidth, subsetHeight, subsetBytesPerRow); #endif ArrayRef subsetData (subsetBytesPerRow * subsetHeight); -#ifdef DEBUG - NSLog(@"allocated %d bytes of memory", subsetBytesPerRow * subsetHeight); +#ifdef ZXING_DEBUG + NSLog(@"allocated %lu bytes of memory", subsetBytesPerRow * subsetHeight); #endif CGColorSpaceRef grayColorSpace = CGColorSpaceCreateDeviceGray(); @@ -124,28 +117,28 @@ ZXingWidgetControllerCallback(Decoder* _decoder) : decoder(_decoder) {} CGContextTranslateCTM(ctx, 0.0, subsetHeight); CGContextScaleCTM(ctx, 1.0, -1.0); -#ifdef DEBUG - NSLog(@"created %dx%d bitmap context", subsetWidth, subsetHeight); +#ifdef ZXING_DEBUG + NSLog(@"created %lux%lu bitmap context", subsetWidth, subsetHeight); #endif UIGraphicsPushContext(ctx); CGRect rect = CGRectMake(offset.x * scale, offset.y * scale, scale * size.width, scale * size.height); -#ifdef DEBUG +#ifdef ZXING_DEBUG NSLog(@"rect for image = (%.1f,%.1f)x(%.1f,%.1f)", rect.origin.x, rect.origin.y, rect.size.width, rect.size.height); #endif [image drawInRect:rect]; UIGraphicsPopContext(); -#ifdef DEBUG - NSLog(@"drew image into %d(%d)x%d bitmap context", subsetWidth, subsetBytesPerRow, subsetHeight); +#ifdef ZXING_DEBUG + NSLog(@"drew image into %lu(%lu)x%lu bitmap context", subsetWidth, subsetBytesPerRow, subsetHeight); #endif CGContextFlush(ctx); -#ifdef DEBUG +#ifdef ZXING_DEBUG NSLog(@"flushed context"); #endif CGImageRef subsetImageRef = CGBitmapContextCreateImage(ctx); -#ifdef DEBUG +#ifdef ZXING_DEBUG NSLog(@"created CGImage from context"); #endif @@ -153,7 +146,7 @@ ZXingWidgetControllerCallback(Decoder* _decoder) : decoder(_decoder) {} CGImageRelease(subsetImageRef); CGContextRelease(ctx); -#ifdef DEBUG +#ifdef ZXING_DEBUG NSLog(@"released context"); #endif return subsetData; @@ -183,13 +176,13 @@ ZXingWidgetControllerCallback(Decoder* _decoder) : decoder(_decoder) {} NSMutableArray *points = nil; NSString *resultString = nil; try { -#ifdef DEBUG +#ifdef ZXING_DEBUG NSLog(@"decoding gray image"); #endif ResultPointCallback* callback_pointer(new ZXingWidgetControllerCallback(self)); Ref callback(callback_pointer); Ref result([reader decode:grayImage andCallback:callback]); -#ifdef DEBUG +#ifdef ZXING_DEBUG NSLog(@"gray image decoded"); #endif @@ -208,12 +201,12 @@ ZXingWidgetControllerCallback(Decoder* _decoder) : decoder(_decoder) {} if (decoderResult) [decoderResult release]; decoderResult = [[TwoDDecoderResult alloc] initWithText:resultString points:points]; } catch (ReaderException &rex) { -#ifdef DEBUG +#ifdef ZXING_DEBUG NSLog(@"failed to decode, caught ReaderException '%s'", rex.what()); #endif } catch (IllegalArgumentException &iex) { -#ifdef DEBUG +#ifdef ZXING_DEBUG NSLog(@"failed to decode, caught IllegalArgumentException '%s'", iex.what()); #endif @@ -227,11 +220,11 @@ ZXingWidgetControllerCallback(Decoder* _decoder) : decoder(_decoder) {} #ifdef TRY_ROTATIONS if (!decoderResult) { -#ifdef DEBUG +#ifdef ZXING_DEBUG NSLog(@"rotating gray image"); #endif grayImage = grayImage->rotateCounterClockwise(); -#ifdef DEBUG +#ifdef ZXING_DEBUG NSLog(@"gray image rotated"); #endif } @@ -252,7 +245,7 @@ ZXingWidgetControllerCallback(Decoder* _decoder) : decoder(_decoder) {} } -#ifdef DEBUG +#ifdef ZXING_DEBUG NSLog(@"finished decoding."); #endif [mainpool release]; diff --git a/iphone/ZXingWidget/Classes/MultiFormatReader.h b/iphone/ZXingWidget/Classes/MultiFormatReader.h new file mode 100644 index 000000000..6ff6fe53f --- /dev/null +++ b/iphone/ZXingWidget/Classes/MultiFormatReader.h @@ -0,0 +1,16 @@ +// +// MultiFormatReader.h +// ZXingWidget +// +// Created by Romain Pechayre on 6/14/10. +// Copyright 2010 __MyCompanyName__. All rights reserved. +// + +#import +#import "FormatReader.h" + + +@interface MultiFormatReader : FormatReader { +} +- (id) init; +@end diff --git a/iphone/ZXingWidget/Classes/OverlayView.m b/iphone/ZXingWidget/Classes/OverlayView.m index b0b7e3819..7ac1bff57 100644 --- a/iphone/ZXingWidget/Classes/OverlayView.m +++ b/iphone/ZXingWidget/Classes/OverlayView.m @@ -96,20 +96,31 @@ static const CGFloat kLicenseButtonPadding = 10; } - (void)showLicenseAlert:(id)sender { - NSString *title = NSLocalizedStringWithDefaultValue(@"OverlayView license alert title", nil, [NSBundle mainBundle], @"License", @"License"); - NSString *message = NSLocalizedStringWithDefaultValue(@"OverlayView license alert message", nil, [NSBundle mainBundle], @"Scanning functionality provided by ZXing library, licensed under Apache 2.0 license.", @"Scanning functionality provided by ZXing library, licensed under Apache 2.0 license."); - NSString *cancelTitle = NSLocalizedStringWithDefaultValue(@"OverlayView license alert cancel title", nil, [NSBundle mainBundle], @"OK", @"OK"); - NSString *viewTitle = NSLocalizedStringWithDefaultValue(@"OverlayView license alert view title", nil, [NSBundle mainBundle], @"View License", @"View License"); + NSString *title = + NSLocalizedStringWithDefaultValue(@"OverlayView license alert title", nil, [NSBundle mainBundle], @"License", @"License"); + + NSString *message = + NSLocalizedStringWithDefaultValue(@"OverlayView license alert message", nil, [NSBundle mainBundle], @"Scanning functionality provided by ZXing library, licensed under Apache 2.0 license.", @"Scanning functionality provided by ZXing library, licensed under Apache 2.0 license."); + + NSString *cancelTitle = + NSLocalizedStringWithDefaultValue(@"OverlayView license alert cancel title", nil, [NSBundle mainBundle], @"OK", @"OK"); + + NSString *viewTitle = + NSLocalizedStringWithDefaultValue(@"OverlayView license alert view title", nil, [NSBundle mainBundle], @"View License", @"View License"); + + UIAlertView *av = + [[UIAlertView alloc] initWithTitle:title message:message delegate:self cancelButtonTitle:cancelTitle otherButtonTitles:viewTitle, nil]; - UIAlertView *av = [[UIAlertView alloc] initWithTitle:title message:message delegate:self cancelButtonTitle:cancelTitle otherButtonTitles:viewTitle, nil]; [av show]; + [self retain]; // For the delegate callback ... [av release]; } - (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex { - if (buttonIndex == [alertView firstOtherButtonIndex]) { - [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.apache.org/licenses/LICENSE-2.0.html"]]; - } + if (buttonIndex == [alertView firstOtherButtonIndex]) { + [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.apache.org/licenses/LICENSE-2.0.html"]]; + } + [self release]; } //////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/iphone/ZXingWidget/Classes/ZXingWidgetController.m b/iphone/ZXingWidget/Classes/ZXingWidgetController.m index b7aa84980..6c394b02f 100644 --- a/iphone/ZXingWidget/Classes/ZXingWidgetController.m +++ b/iphone/ZXingWidget/Classes/ZXingWidgetController.m @@ -237,7 +237,7 @@ // DecoderDelegate methods - (void)decoder:(Decoder *)decoder willDecodeImage:(UIImage *)image usingSubset:(UIImage *)subset{ -#ifdef DEBUG +#ifdef ZXING_DEBUG NSLog(@"DecoderViewController MessageWhileDecodingWithDimensions: Decoding image (%.0fx%.0f) ...", image.size.width, image.size.height); #endif } @@ -252,7 +252,7 @@ if (beepSound != (SystemSoundID)-1) { AudioServicesPlaySystemSound(beepSound); } -#ifdef DEBUG +#ifdef ZXING_DEBUG NSLog(@"result string = %@", resultString); #endif } @@ -307,7 +307,7 @@ // Gross, I know. But you can't use the device idiom because it's not iPad when running // in zoomed iphone mode but the camera still acts like an ipad. -#if HAS_AVFF +#if 0 && HAS_AVFF static bool isIPad() { static int is_ipad = -1; if (is_ipad < 0) { @@ -326,9 +326,9 @@ static bool isIPad() { - (void)initCapture { #if HAS_AVFF AVCaptureDevice* inputDevice = - [AVCaptureDevice defaultDeviceWithMediaType:AVMediaTypeVideo]; + [AVCaptureDevice defaultDeviceWithMediaType:AVMediaTypeVideo]; AVCaptureDeviceInput *captureInput = - [AVCaptureDeviceInput deviceInputWithDevice:inputDevice error:nil]; + [AVCaptureDeviceInput deviceInputWithDevice:inputDevice error:nil]; AVCaptureVideoDataOutput *captureOutput = [[AVCaptureVideoDataOutput alloc] init]; captureOutput.alwaysDiscardsLateVideoFrames = YES; [captureOutput setSampleBufferDelegate:self queue:dispatch_get_main_queue()]; @@ -339,16 +339,24 @@ static bool isIPad() { self.captureSession = [[[AVCaptureSession alloc] init] autorelease]; NSString* preset = 0; - if (NSClassFromString(@"NSOrderedSet") && // Proxy for "is this iOS 5" ... - [UIScreen mainScreen].scale > 1 && - isIPad() && - [inputDevice - supportsAVCaptureSessionPreset:AVCaptureSessionPresetiFrame960x540]) { - // NSLog(@"960"); - preset = AVCaptureSessionPresetiFrame960x540; + +#if 0 + // to be deleted when verified ... + if (isIPad()) { + if (NSClassFromString(@"NSOrderedSet") && // Proxy for "is this iOS 5" ... + [UIScreen mainScreen].scale > 1 && + [inputDevice + supportsAVCaptureSessionPreset:AVCaptureSessionPresetiFrame960x540]) { + preset = AVCaptureSessionPresetiFrame960x540; + } + if (false && !preset && + [inputDevice supportsAVCaptureSessionPreset:AVCaptureSessionPresetHigh]) { + preset = AVCaptureSessionPresetHigh; + } } +#endif + if (!preset) { - // NSLog(@"MED"); preset = AVCaptureSessionPresetMedium; } self.captureSession.sessionPreset = preset; @@ -358,44 +366,6 @@ static bool isIPad() { [captureOutput release]; -/* - [[NSNotificationCenter defaultCenter] - addObserver:self - selector:@selector(stopPreview:) - name:AVCaptureSessionDidStopRunningNotification - object:self.captureSession]; - - [[NSNotificationCenter defaultCenter] - addObserver:self - selector:@selector(notification:) - name:AVCaptureSessionDidStopRunningNotification - object:self.captureSession]; - - [[NSNotificationCenter defaultCenter] - addObserver:self - selector:@selector(notification:) - name:AVCaptureSessionRuntimeErrorNotification - object:self.captureSession]; - - [[NSNotificationCenter defaultCenter] - addObserver:self - selector:@selector(notification:) - name:AVCaptureSessionDidStartRunningNotification - object:self.captureSession]; - - [[NSNotificationCenter defaultCenter] - addObserver:self - selector:@selector(notification:) - name:AVCaptureSessionWasInterruptedNotification - object:self.captureSession]; - - [[NSNotificationCenter defaultCenter] - addObserver:self - selector:@selector(notification:) - name:AVCaptureSessionInterruptionEndedNotification - object:self.captureSession]; -*/ - if (!self.prevLayer) { self.prevLayer = [AVCaptureVideoPreviewLayer layerWithSession:self.captureSession]; } @@ -424,6 +394,8 @@ didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer size_t width = CVPixelBufferGetWidth(imageBuffer); size_t height = CVPixelBufferGetHeight(imageBuffer); + // NSLog(@"wxh: %lu x %lu", width, height); + uint8_t* baseAddress = CVPixelBufferGetBaseAddress(imageBuffer); void* free_me = 0; if (true) { // iOS bug? @@ -436,8 +408,8 @@ didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB(); CGContextRef newContext = - CGBitmapContextCreate(baseAddress, width, height, 8, bytesPerRow, colorSpace, - kCGBitmapByteOrder32Little | kCGImageAlphaNoneSkipFirst); + CGBitmapContextCreate(baseAddress, width, height, 8, bytesPerRow, colorSpace, + kCGBitmapByteOrder32Little | kCGImageAlphaNoneSkipFirts); CGImageRef capture = CGBitmapContextCreateImage(newContext); CVPixelBufferUnlockBaseAddress(imageBuffer,0); @@ -446,56 +418,84 @@ didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer CGContextRelease(newContext); CGColorSpaceRelease(colorSpace); - CGRect cropRect = [overlayView cropRect]; - if (oneDMode) { - // let's just give the decoder a vertical band right above the red line - cropRect.origin.x = cropRect.origin.x + (cropRect.size.width / 2) - (ONE_D_BAND_HEIGHT + 1); - cropRect.size.width = ONE_D_BAND_HEIGHT; - // do a rotate - CGImageRef croppedImg = CGImageCreateWithImageInRect(capture, cropRect); + if (false) { + CGRect cropRect = [overlayView cropRect]; + if (oneDMode) { + // let's just give the decoder a vertical band right above the red line + cropRect.origin.x = cropRect.origin.x + (cropRect.size.width / 2) - (ONE_D_BAND_HEIGHT + 1); + cropRect.size.width = ONE_D_BAND_HEIGHT; + // do a rotate + CGImageRef croppedImg = CGImageCreateWithImageInRect(capture, cropRect); + CGImageRelease(capture); + capture = [self CGImageRotated90:croppedImg]; + capture = [self CGImageRotated180:capture]; + // UIImageWriteToSavedPhotosAlbum([UIImage imageWithCGImage:capture], nil, nil, nil); + CGImageRelease(croppedImg); + CGImageRetain(capture); + cropRect.origin.x = 0.0; + cropRect.origin.y = 0.0; + cropRect.size.width = CGImageGetWidth(capture); + cropRect.size.height = CGImageGetHeight(capture); + } + + // N.B. + // - Won't work if the overlay becomes uncentered ... + // - iOS always takes videos in landscape + // - images are always 4x3; device is not + // - iOS uses virtual pixels for non-image stuff + + { + float height = CGImageGetHeight(capture); + float width = CGImageGetWidth(capture); + + NSLog(@"%f %f", width, height); + + CGRect screen = UIScreen.mainScreen.bounds; + float tmp = screen.size.width; + screen.size.width = screen.size.height;; + screen.size.height = tmp; + + cropRect.origin.x = (width-cropRect.size.width)/2; + cropRect.origin.y = (height-cropRect.size.height)/2; + } + + NSLog(@"sb %@", NSStringFromCGRect(UIScreen.mainScreen.bounds)); + NSLog(@"cr %@", NSStringFromCGRect(cropRect)); + + CGImageRef newImage = CGImageCreateWithImageInRect(capture, cropRect); CGImageRelease(capture); - capture = [self CGImageRotated90:croppedImg]; - capture = [self CGImageRotated180:capture]; - // UIImageWriteToSavedPhotosAlbum([UIImage imageWithCGImage:capture], nil, nil, nil); - CGImageRelease(croppedImg); - CGImageRetain(capture); - cropRect.origin.x = 0.0; - cropRect.origin.y = 0.0; - cropRect.size.width = CGImageGetWidth(capture); - cropRect.size.height = CGImageGetHeight(capture); + capture = newImage; } - // N.B. - // - Won't work if the overlay becomes uncentered ... - // - iOS always takes videos in landscape - // - images are always 4x3; device is not - // - iOS uses virtual pixels for non-image stuff + UIImage* scrn = [[[UIImage alloc] initWithCGImage:capture] autorelease]; - { - float height = CGImageGetHeight(capture); - float width = CGImageGetWidth(capture); - - CGRect screen = UIScreen.mainScreen.bounds; - float tmp = screen.size.width; - screen.size.width = screen.size.height;; - screen.size.height = tmp; - - cropRect.origin.x = (width-cropRect.size.width)/2; - cropRect.origin.y = (height-cropRect.size.height)/2; - } - CGImageRef newImage = CGImageCreateWithImageInRect(capture, cropRect); CGImageRelease(capture); - UIImage *scrn = [[UIImage alloc] initWithCGImage:newImage]; - CGImageRelease(newImage); - Decoder *d = [[Decoder alloc] init]; + + Decoder* d = [[Decoder alloc] init]; d.readers = readers; d.delegate = self; - cropRect.origin.x = 0.0; - cropRect.origin.y = 0.0; - decoding = [d decodeImage:scrn cropRect:cropRect] == YES ? NO : YES; + + decoding = [d decodeImage:scrn] == YES ? NO : YES; + [d release]; - [scrn release]; -} + + if (decoding) { + + d = [[Decoder alloc] init]; + d.readers = readers; + d.delegate = self; + + scrn = [[[UIImage alloc] initWithCGImage:scrn.CGImage + scale:1.0 + orientation:UIImageOrientationLeft] autorelease]; + + // NSLog(@"^ %@ %f", NSStringFromCGSize([scrn size]), scrn.scale); + decoding = [d decodeImage:scrn] == YES ? NO : YES; + + [d release]; + } + +} #endif - (void)stopCapture { @@ -508,18 +508,6 @@ didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer [captureSession removeOutput:output]; [self.prevLayer removeFromSuperlayer]; -/* -// heebee jeebees here ... is iOS still writing into the layer? -if (self.prevLayer) { -layer.session = nil; -AVCaptureVideoPreviewLayer* layer = prevLayer; -[self.prevLayer retain]; -dispatch_after(dispatch_time(DISPATCH_TIME_NOW, 12000000000), dispatch_get_main_queue(), ^{ -[layer release]; -}); -} -*/ - self.prevLayer = nil; self.captureSession = nil; #endif diff --git a/iphone/ZXingWidget/Classes/parsedResults/URIParsedResult.m b/iphone/ZXingWidget/Classes/parsedResults/URIParsedResult.m index 7f661f2ee..cf2f4f9dd 100644 --- a/iphone/ZXingWidget/Classes/parsedResults/URIParsedResult.m +++ b/iphone/ZXingWidget/Classes/parsedResults/URIParsedResult.m @@ -71,7 +71,7 @@ } - (void)populateActions { -#ifdef DEBUG +#ifdef ZXING_DEBUG NSLog(@"creating action to open URL '%@'", self.urlString); #endif diff --git a/iphone/ZXingWidget/Classes/resultParsers/ResultParser.m b/iphone/ZXingWidget/Classes/resultParsers/ResultParser.m index 20ebfbbfd..8e5ce3bc4 100644 --- a/iphone/ZXingWidget/Classes/resultParsers/ResultParser.m +++ b/iphone/ZXingWidget/Classes/resultParsers/ResultParser.m @@ -53,23 +53,23 @@ static NSMutableSet *sResultParsers = nil; + (ParsedResult *)parsedResultForString:(NSString *)s format:(BarcodeFormat)barcodeFormat { -#ifdef DEBUG +#ifdef ZXING_DEBUG NSLog(@"parsing result:\n<<<\n%@\n>>>\n", s); #endif for (Class c in [self resultParsers]) { -#ifdef DEBUG +#ifdef ZXING_DEBUG NSLog(@"trying %@", NSStringFromClass(c)); #endif ParsedResult *result = [c parsedResultForString:s format:barcodeFormat]; if (result != nil) { -#ifdef DEBUG +#ifdef ZXING_DEBUG NSLog(@"parsed as %@ %@", NSStringFromClass([result class]), result); #endif return result; } } -#ifdef DEBUG +#ifdef ZXING_DEBUG NSLog(@"No result parsers matched. Falling back to text."); #endif return [TextResultParser parsedResultForString:s format:barcodeFormat]; diff --git a/iphone/ZXingWidget/Classes/resultParsers/UniversalResultParser.m b/iphone/ZXingWidget/Classes/resultParsers/UniversalResultParser.m index d9d6753fd..7be204cb3 100644 --- a/iphone/ZXingWidget/Classes/resultParsers/UniversalResultParser.m +++ b/iphone/ZXingWidget/Classes/resultParsers/UniversalResultParser.m @@ -69,16 +69,16 @@ static NSMutableArray *sTheResultParsers = nil; + (ParsedResult *)parsedResultForString:(NSString *)s format:(BarcodeFormat)format { -#ifdef DEBUG +#ifdef ZXING_DEBUG NSLog(@"parsing result:\n<<<\n%@\n>>>\n", s); #endif for (Class c in sTheResultParsers) { -#ifdef DEBUG +#ifdef ZXING_DEBUG NSLog(@"trying %@", NSStringFromClass(c)); #endif ParsedResult *result = [c parsedResultForString:s format:format]; if (result != nil) { -#ifdef DEBUG +#ifdef ZXING_DEBUG NSLog(@"parsed as %@ %@", NSStringFromClass([result class]), result); #endif return result; diff --git a/iphone/legacy/Barcodes_original/.gitignore b/iphone/legacy/Barcodes_original/.gitignore deleted file mode 100644 index ed3b6925f..000000000 --- a/iphone/legacy/Barcodes_original/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -/build -/ZXing.xcodeproj/*.mode1v3 -/ZXing.xcodeproj/*.pbxuser \ No newline at end of file diff --git a/iphone/legacy/Barcodes_original/Classes/AddContactAction.h b/iphone/legacy/Barcodes_original/Classes/AddContactAction.h deleted file mode 100644 index ac6af6f8e..000000000 --- a/iphone/legacy/Barcodes_original/Classes/AddContactAction.h +++ /dev/null @@ -1,51 +0,0 @@ -// -// AddContactAction.h -// ZXing -// -// Created by Christian Brunschen on 29/05/2008. -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import -#import "ResultAction.h" -#import "AddressBookUI/AddressBookUI.h" - -@interface AddContactAction : ResultAction { - NSString *name; - NSArray *phoneNumbers; - NSString *note; - NSString *email; - NSString *urlString; - NSString *address; - - UIViewController *viewController; -} - -@property (nonatomic, copy) NSString *name; -@property (nonatomic, retain) NSArray *phoneNumbers; -@property (nonatomic, copy) NSString *note; -@property (nonatomic, copy) NSString *email; -@property (nonatomic, copy) NSString *urlString; -@property (nonatomic, copy) NSString *address; - -+ (id)actionWithName:(NSString *)n - phoneNumbers:(NSArray *)nums - email:(NSString *)em - url:(NSString *)us - address:(NSString *)ad - note:(NSString *)nt; - -@end diff --git a/iphone/legacy/Barcodes_original/Classes/AddContactAction.m b/iphone/legacy/Barcodes_original/Classes/AddContactAction.m deleted file mode 100644 index 393091384..000000000 --- a/iphone/legacy/Barcodes_original/Classes/AddContactAction.m +++ /dev/null @@ -1,224 +0,0 @@ -// -// AddContactAction.m -// ZXing -// -// Created by Christian Brunschen on 29/05/2008. -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import "AddContactAction.h" -#import "AddressBook/AddressBook.h" - - -@implementation AddContactAction - -@synthesize name; -@synthesize phoneNumbers; -@synthesize note; -@synthesize email; -@synthesize urlString; -@synthesize address; - -+ (id)actionWithName:(NSString *)n - phoneNumbers:(NSArray *)nums - email:(NSString *)em - url:(NSString *)us - address:(NSString *)ad - note:(NSString *)nt { - AddContactAction *aca = [[[self alloc] init] autorelease]; - aca.name = n; - aca.phoneNumbers = nums; - aca.email = em; - aca.urlString = us; - aca.address = ad; - aca.note = nt; - return aca; -} - -- (NSString *)title { - return NSLocalizedString(@"AddContactAction title", @"Add Contact"); -} - -- (void) addContactWithController:(UIViewController *)controller { - CFErrorRef *error = NULL; - NSCharacterSet *whitespaceSet = [NSCharacterSet whitespaceCharacterSet]; - - ABRecordRef person = ABPersonCreate(); - - NSRange commaRange = [name rangeOfString:@","]; - if (commaRange.location != NSNotFound) { - NSString *lastName = [[name substringToIndex:commaRange.location] - stringByTrimmingCharactersInSet:whitespaceSet]; - ABRecordSetValue(person, kABPersonLastNameProperty, lastName, error); - NSArray *firstNames = [[[name substringFromIndex:commaRange.location + commaRange.length] - stringByTrimmingCharactersInSet:whitespaceSet] - componentsSeparatedByCharactersInSet:whitespaceSet]; - ABRecordSetValue(person, kABPersonFirstNameProperty, [firstNames objectAtIndex:0], error); - for (int i = 1; i < [firstNames count]; i++) { - ABRecordSetValue(person, kABPersonMiddleNameProperty, [firstNames objectAtIndex:1], error); - } - } else { - NSArray *nameParts = [name componentsSeparatedByCharactersInSet:whitespaceSet]; - int nParts = nameParts.count; - if (nParts == 1) { - ABRecordSetValue(person, kABPersonFirstNameProperty, name, error); - } else if (nParts >= 2) { - int lastPart = nParts - 1; - ABRecordSetValue(person, kABPersonFirstNameProperty, [nameParts objectAtIndex:0], error); - for (int i = 1; i < lastPart; i++) { - ABRecordSetValue(person, kABPersonMiddleNameProperty, [nameParts objectAtIndex:i], error); - } - ABRecordSetValue(person, kABPersonLastNameProperty, [nameParts objectAtIndex:lastPart], error); - } - } - - if (self.note) { - ABRecordSetValue(person, kABPersonNoteProperty, self.note, error); - } - - if (self.phoneNumbers && self.phoneNumbers.count > 0) { - // multi-values: nultiple phone numbers - ABMutableMultiValueRef phoneNumberMultiValue = - ABMultiValueCreateMutable(kABStringPropertyType); - for (NSString *number in self.phoneNumbers) { - ABMultiValueAddValueAndLabel(phoneNumberMultiValue, number, - kABPersonPhoneMainLabel, NULL); - } - ABRecordSetValue(person, kABPersonPhoneProperty, - phoneNumberMultiValue, error); - CFRelease(phoneNumberMultiValue); - } - - if (self.email) { - // a single email address - ABMutableMultiValueRef emailMultiValue = - ABMultiValueCreateMutable(kABStringPropertyType); - ABMultiValueAddValueAndLabel(emailMultiValue, self.email, - kABHomeLabel, NULL); - ABRecordSetValue(person, kABPersonEmailProperty, emailMultiValue, error); - CFRelease(emailMultiValue); - } - - if (self.urlString) { - // a single url as the home page - ABMutableMultiValueRef urlMultiValue = - ABMultiValueCreateMutable(kABStringPropertyType); - ABMultiValueAddValueAndLabel(urlMultiValue, self.urlString, - kABPersonHomePageLabel, NULL); - ABRecordSetValue(person, kABPersonURLProperty, urlMultiValue, error); - CFRelease(urlMultiValue); - } - - if (self.address) { - // we can't parse all the possible address formats, alas, so we punt by putting - // the entire thing into a multi-line 'street' address. - // This won't look great on the phone, but at least the info will be there, - // and can be syned to a desktop computer, adjusted as necessary, and so on. - - // split the address into parts at each comma or return - NSArray *parts = - [self.address componentsSeparatedByCharactersInSet: - [NSCharacterSet characterSetWithCharactersInString:@",;\r\n"]]; - NSMutableArray *strippedParts = [NSMutableArray arrayWithCapacity:[parts count]]; - // for each part: - for (NSString *part in parts) { - // strip the part of whitespace - NSString *strippedPart = - [part stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]]; - if ([strippedPart length] > 0) { - // if there is anything in this address part, add it to the list of stripped parts - [strippedParts addObject:strippedPart]; - } - } - // finally, create a 'street' address by concatenating all the stripped parts, separated by linefeeds - NSString *street = [strippedParts componentsJoinedByString:@"\n"]; - - CFMutableDictionaryRef addressDict = - CFDictionaryCreateMutable(NULL, - 1, - &kCFTypeDictionaryKeyCallBacks, - &kCFTypeDictionaryValueCallBacks); - CFDictionarySetValue(addressDict, kABPersonAddressStreetKey, street); - - ABMutableMultiValueRef addressMultiValue = - ABMultiValueCreateMutable(kABStringPropertyType); - ABMultiValueAddValueAndLabel(addressMultiValue, - addressDict, - kABHomeLabel, - NULL); - ABRecordSetValue(person, kABPersonAddressProperty, addressMultiValue, error); - CFRelease(addressMultiValue); - CFRelease(addressDict); - } - - ABUnknownPersonViewController *unknownPersonViewController = - [[ABUnknownPersonViewController alloc] init]; - unknownPersonViewController.displayedPerson = person; - unknownPersonViewController.allowsActions = true; - unknownPersonViewController.allowsAddingToAddressBook = true; - unknownPersonViewController.unknownPersonViewDelegate = self; - CFRelease(person); - - viewController = [controller retain]; - [[viewController navigationController] pushViewController:unknownPersonViewController animated:YES]; - [unknownPersonViewController release]; -} - -- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex { - if (buttonIndex != [alertView cancelButtonIndex]) { - // perform the action - [self addContactWithController:viewController]; - } -} - -#ifdef CONFIRM_ADDING_CONTACT -#undef CONFIRM_ADDING_CONTACT -#endif -- (void)performActionWithController:(UIViewController *)controller - shouldConfirm:(bool)confirm { -#ifdef CONFIRM_ADDING_CONTACT - if (confirm) { - viewController = controller; - UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:nil - message:NSLocalizedString(@"AddContactAction alert message", @"Add Contact?") - delegate:self - cancelButtonTitle:NSLocalizedString(@"AddContactAction cancel button title", @"Cancel") - otherButtonTitles:NSLocalizedString(@"AddContactAction confirm button title", @"Add Contact"), nil]; - [alertView show]; - [alertView release]; - } else { -#endif - [self addContactWithController:controller]; -#ifdef CONFIRM_ADDING_CONTACT - } -#endif -} - -- (void)dismissUnknownPersonViewController:(ABUnknownPersonViewController *)unknownPersonViewController { - [[viewController navigationController] popToViewController:viewController animated:YES]; - [viewController release]; - viewController = nil; -} - -// ABUnknownPersonViewControllerDelegate - -- (void)unknownPersonViewController:(ABUnknownPersonViewController *)unknownPersonViewController - didResolveToPerson:(ABRecordRef)person { - if (person) { - [self performSelector:@selector(dismissUnknownPersonViewController:) withObject:unknownPersonViewController afterDelay:0.0]; - } -} -@end diff --git a/iphone/legacy/Barcodes_original/Classes/ArchiveController.h b/iphone/legacy/Barcodes_original/Classes/ArchiveController.h deleted file mode 100644 index b341207e2..000000000 --- a/iphone/legacy/Barcodes_original/Classes/ArchiveController.h +++ /dev/null @@ -1,41 +0,0 @@ -// -// ArchiveController.h -// UIShowcase -// -// Created by Christian Brunschen on 29/05/2008. -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -@class DecoderViewController; - -@interface ArchiveController : UITableViewController { - NSMutableArray *scans; - NSMutableArray *results; - DecoderViewController *decoderViewController; - NSDateFormatter *dateFormatter; -} - -@property (nonatomic, retain) NSMutableArray *scans; -@property (nonatomic, retain) NSMutableArray *results; -@property (nonatomic, retain) DecoderViewController *decoderViewController; -@property (nonatomic, retain) NSDateFormatter *dateFormatter; - -- (NSInteger)scanIndexForRow:(NSInteger)row; -- (id)initWithDecoderViewController:(DecoderViewController *)dc; - -@end diff --git a/iphone/legacy/Barcodes_original/Classes/ArchiveController.m b/iphone/legacy/Barcodes_original/Classes/ArchiveController.m deleted file mode 100644 index 1d6576427..000000000 --- a/iphone/legacy/Barcodes_original/Classes/ArchiveController.m +++ /dev/null @@ -1,161 +0,0 @@ -// -// ArchiveController.m -// UIShowcase -// -// Created by Christian Brunschen on 29/05/2008. -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import "ArchiveController.h" -#import "Database.h" -#import "Scan.h" -#import "ResultParser.h" -#import "ParsedResult.h" -#import "DecoderViewController.h" -#import "ScanViewController.h" -#import "ScanCell.h" - -@implementation ArchiveController - -@synthesize scans; -@synthesize results; -@synthesize decoderViewController; -@synthesize dateFormatter; - -- (id)initWithDecoderViewController:(DecoderViewController *)dc { - if ((self = [super initWithStyle:UITableViewStylePlain])) { - decoderViewController = [dc retain]; - scans = [[NSMutableArray alloc] init]; - results = [[NSMutableArray alloc] init]; - dateFormatter = [[NSDateFormatter alloc] init]; - } - return self; -} - -- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { - return 1; -} - -- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { - return [scans count]; -} - -- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath { - return 44.0; -} - -- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { - static NSString *ScanIdentifier = @"ScanIdentifier"; - - ScanCell *cell = (ScanCell *)[tableView dequeueReusableCellWithIdentifier:ScanIdentifier]; - if (cell == nil) { - cell = [[[ScanCell alloc] initWithFrame:CGRectZero reuseIdentifier:ScanIdentifier] autorelease]; - } - - // Configure the cell - int idx = [self scanIndexForRow:indexPath.row]; - Scan *scan = [scans objectAtIndex:idx]; - [cell setScan:scan]; - return cell; -} - -- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { - //[decoderViewController showScan:[scans objectAtIndex:[self scanIndexForRow:indexPath.row]]]; - int idx = [self scanIndexForRow:indexPath.row]; - Scan *scan = [scans objectAtIndex:idx]; - ParsedResult *result = [results objectAtIndex:idx]; - ScanViewController *scanViewController = [[ScanViewController alloc] initWithResult:result forScan:scan]; - [self.navigationController pushViewController:scanViewController animated:YES]; - [scanViewController release]; -} - -- (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath { - if (editingStyle == UITableViewCellEditingStyleDelete) { - int idx = [self scanIndexForRow:indexPath.row]; - Scan *scan = [self.scans objectAtIndex:idx]; - // delete the scan from the database ... - [[Database sharedDatabase] deleteScan:scan]; - // ... delete the scan from our in-memory cache of the database ... - [scans removeObjectAtIndex:idx]; - // ... delete the corresponding result from our in-memory cache ... - [results removeObjectAtIndex:idx]; - // ... and remove the row from the table view. - [tableView deleteRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:UITableViewRowAnimationFade]; - // [tableView reloadData]; - } else if (editingStyle == UITableViewCellEditingStyleInsert) { - // no insertions! - } -} - -- (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath { - return YES; -} - -- (void)tableView:(UITableView *)tableView moveRowAtIndexPath:(NSIndexPath *)fromIndexPath toIndexPath:(NSIndexPath *)toIndexPath { -} - -- (BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath *)indexPath { - return NO; -} - - -- (void)dealloc { - [scans release]; - [results release]; - [decoderViewController release]; - [dateFormatter release]; - [super dealloc]; -} - - -- (void)viewDidLoad { - [super viewDidLoad]; - self.title = NSLocalizedString(@"ScanArchiveTitle", @"Scan Archive"); - self.navigationItem.rightBarButtonItem = [self editButtonItem]; -} - - -- (void)viewWillAppear:(BOOL)animated { - [super viewWillAppear:animated]; - self.scans = [NSMutableArray arrayWithArray:[[Database sharedDatabase] scans]]; - self.results = [NSMutableArray arrayWithCapacity:self.scans.count]; - for (Scan *scan in scans) { - [results addObject:[ResultParser parsedResultForString:scan.text]]; - } -} - -- (void)viewDidAppear:(BOOL)animated { - [super viewDidAppear:animated]; -} - -- (void)viewWillDisappear:(BOOL)animated { - self.scans = nil; - self.results = nil; -} - -- (void)viewDidDisappear:(BOOL)animated { -} - -- (void)didReceiveMemoryWarning { - [super didReceiveMemoryWarning]; -} - -- (NSInteger)scanIndexForRow:(NSInteger)row { - return scans.count - 1 - row; -} - -@end - diff --git a/iphone/legacy/Barcodes_original/Classes/BookmarkDoCoMoResultParser.h b/iphone/legacy/Barcodes_original/Classes/BookmarkDoCoMoResultParser.h deleted file mode 100644 index 08582e6e5..000000000 --- a/iphone/legacy/Barcodes_original/Classes/BookmarkDoCoMoResultParser.h +++ /dev/null @@ -1,29 +0,0 @@ -// -// BookmarkDoCoMoResultParser.h -// ZXing -// -// Created by Christian Brunschen on 25/06/2008. -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import -#import "DoCoMoResultParser.h" - -@interface BookmarkDoCoMoResultParser : DoCoMoResultParser { - -} - -@end diff --git a/iphone/legacy/Barcodes_original/Classes/BookmarkDoCoMoResultParser.m b/iphone/legacy/Barcodes_original/Classes/BookmarkDoCoMoResultParser.m deleted file mode 100644 index 7c5f47d4c..000000000 --- a/iphone/legacy/Barcodes_original/Classes/BookmarkDoCoMoResultParser.m +++ /dev/null @@ -1,49 +0,0 @@ -// -// BookmarkDoCoMoResultParser.m -// ZXing -// -// Created by Christian Brunschen on 25/06/2008. -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import "BookmarkDoCoMoResultParser.h" -#import "URIParsedResult.h" - -@implementation BookmarkDoCoMoResultParser - -+ (void)load { - [ResultParser registerResultParserClass:self]; -} - -+ (ParsedResult *)parsedResultForString:(NSString *)s { - NSRange foundRange = [s rangeOfString:@"MEBKM:"]; - if (foundRange.location == NSNotFound) { - return nil; - } - - NSString *urlString = [s fieldWithPrefix:@"URL:"]; - if (urlString == nil) { - return nil; - } - - NSString *title = [s fieldWithPrefix:@"TITLE:"]; - - return [[[URIParsedResult alloc] initWithURLString:urlString - title:title] autorelease]; -} - - -@end diff --git a/iphone/legacy/Barcodes_original/Classes/BusinessCardParsedResult.h b/iphone/legacy/Barcodes_original/Classes/BusinessCardParsedResult.h deleted file mode 100644 index 8e7482e4c..000000000 --- a/iphone/legacy/Barcodes_original/Classes/BusinessCardParsedResult.h +++ /dev/null @@ -1,41 +0,0 @@ -// -// AddressBookDoCoMoParsedResult.h -// ZXing -// -// Created by Christian Brunschen on 29/05/2008. -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import -#import "ParsedResult.h" - -@interface BusinessCardParsedResult : ParsedResult { - NSString *name; - NSArray *phoneNumbers; - NSString *note; - NSString *email; - NSString *urlString; - NSString *address; -} - -@property (nonatomic, copy) NSString *name; -@property (nonatomic, retain) NSArray *phoneNumbers; -@property (nonatomic, copy) NSString *note; -@property (nonatomic, copy) NSString *email; -@property (nonatomic, copy) NSString *urlString; -@property (nonatomic, copy) NSString *address; - -@end diff --git a/iphone/legacy/Barcodes_original/Classes/BusinessCardParsedResult.m b/iphone/legacy/Barcodes_original/Classes/BusinessCardParsedResult.m deleted file mode 100644 index ce018df0e..000000000 --- a/iphone/legacy/Barcodes_original/Classes/BusinessCardParsedResult.m +++ /dev/null @@ -1,84 +0,0 @@ -// -// AddressBookDoCoMoParsedResult.m -// ZXing -// -// Created by Christian Brunschen on 29/05/2008. -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import "BusinessCardParsedResult.h" -#import "AddContactAction.h" - -@implementation BusinessCardParsedResult - -@synthesize name; -@synthesize phoneNumbers; -@synthesize note; -@synthesize email; -@synthesize urlString; -@synthesize address; - -- (NSString *)stringForDisplay { - NSMutableString *result = [NSMutableString stringWithString:self.name]; - if (self.phoneNumbers) { - for (NSString *number in self.phoneNumbers) { - [result appendFormat:@"\n%@", number]; - } - } - - if (self.email) { - [result appendFormat:@"\n%@", self.email]; - } - if (self.urlString) { - [result appendFormat:@"\n%@", self.urlString]; - } - if (self.note) { - [result appendFormat:@"\n%@", self.note]; - } - if (self.address) { - [result appendFormat:@"\n%@", self.address]; - } - return [NSString stringWithString:result]; -} - -- (void)populateActions { - [actions addObject:[AddContactAction actionWithName:self.name - phoneNumbers:self.phoneNumbers - email:self.email - url:self.urlString - address:self.address - note:self.note]]; -} - -- (void) dealloc { - [name release]; - [phoneNumbers release]; - [email release]; - [urlString release]; - [address release]; - [note release]; - [super dealloc]; -} - -+ (NSString *)typeName { - return NSLocalizedString(@"Contact Result Type Name", @"Contact"); -} - -- (UIImage *)icon { - return [UIImage imageNamed:@"business-card.png"]; -} - -@end diff --git a/iphone/legacy/Barcodes_original/Classes/CallAction.h b/iphone/legacy/Barcodes_original/Classes/CallAction.h deleted file mode 100644 index becd8683b..000000000 --- a/iphone/legacy/Barcodes_original/Classes/CallAction.h +++ /dev/null @@ -1,36 +0,0 @@ -// -// CallAction.h -// ZXing -// -// Created by Christian Brunschen on 28/05/2008. -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import -#import "OpenUrlAction.h" - -@interface CallAction : OpenUrlAction { - NSString *number; -} - -@property (nonatomic, copy) NSString *number; - -+ (NSURL *)urlForNumber:(NSString *)number; - -- (id)initWithNumber:(NSString *)number; -+ (id)actionWithNumber:(NSString *)number; - -@end diff --git a/iphone/legacy/Barcodes_original/Classes/CallAction.m b/iphone/legacy/Barcodes_original/Classes/CallAction.m deleted file mode 100644 index e6acc789e..000000000 --- a/iphone/legacy/Barcodes_original/Classes/CallAction.m +++ /dev/null @@ -1,67 +0,0 @@ -// -// CallAction.m -// ZXing -// -// Created by Christian Brunschen on 28/05/2008. -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import "CallAction.h" - - -@implementation CallAction - -@synthesize number; - -+ (NSURL *)urlForNumber:(NSString *)number { - NSString *urlString = [NSString stringWithFormat:@"tel:%@", number]; - return [NSURL URLWithString:urlString]; -} - -- (id)initWithNumber:(NSString *)n { - if ((self = [super initWithURL:[[self class] urlForNumber:n]]) != nil) { - self.number = n; - } - return self; -} - -+ (id)actionWithNumber:(NSString *)number { - return [[[self alloc] initWithNumber:number] autorelease]; -} - -- (NSString *)title { - return [NSString localizedStringWithFormat:NSLocalizedString(@"CallAction action title", @"Call %@"), self.number]; -} - -- (NSString *)alertTitle { - return NSLocalizedString(@"CallAction alert title", @"Call"); -} - -- (NSString *)alertMessage { - return [NSString localizedStringWithFormat:NSLocalizedString(@"CallAction alert message", @"Call %@?"), self.number]; -} - -- (NSString *)alertButtonTitle { - return NSLocalizedString(@"CallAction alert button title", @"Call"); -} - - -- (void) dealloc { - [number release]; - [super dealloc]; -} - -@end diff --git a/iphone/legacy/Barcodes_original/Classes/Database.h b/iphone/legacy/Barcodes_original/Classes/Database.h deleted file mode 100644 index 38ec771dc..000000000 --- a/iphone/legacy/Barcodes_original/Classes/Database.h +++ /dev/null @@ -1,41 +0,0 @@ -// -// Database.h -// ZXing -// -// Created by Christian Brunschen on 29/05/2008. -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import -#import - -@class Scan; - -@interface Database : NSObject { - sqlite3 *connection; - int nextScanIdent; -} - -@property sqlite3 *connection; -@property int nextScanIdent; - -+ (id)sharedDatabase; - -- (void)addScanWithText:(NSString *)text; -- (NSArray *)scans; -- (void)deleteScan:(Scan *)scan; - -@end diff --git a/iphone/legacy/Barcodes_original/Classes/Database.m b/iphone/legacy/Barcodes_original/Classes/Database.m deleted file mode 100644 index cd4897c63..000000000 --- a/iphone/legacy/Barcodes_original/Classes/Database.m +++ /dev/null @@ -1,115 +0,0 @@ -// -// Database.m -// ZXing -// -// Created by Christian Brunschen on 29/05/2008. -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import "Database.h" -#import "Scan.h" - -@implementation Database - -static sqlite3_stmt *maxIdStatement; -static sqlite3_stmt *selectAllStatement; -static sqlite3_stmt *insertStatement; -static sqlite3_stmt *deleteStatement; - -@synthesize connection; -@synthesize nextScanIdent; - -static Database *sharedDatabase = nil; - -+ (id)sharedDatabase { - if (!sharedDatabase) { - sharedDatabase = [[self alloc] init]; - - BOOL success; - NSFileManager *fileManager = [NSFileManager defaultManager]; - NSError *error; - NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); - NSString *documentsDirectory = [paths objectAtIndex:0]; - NSString *writableDBPath = [documentsDirectory stringByAppendingPathComponent:@"scans.db"]; - success = [fileManager fileExistsAtPath:writableDBPath]; - if (!success) { - // The writable database does not exist, so copy the default to the appropriate location. - NSString *defaultDBPath = [[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"scans.db"]; - success = [fileManager copyItemAtPath:defaultDBPath toPath:writableDBPath error:&error]; - if (!success) { - NSAssert1(0, @"Failed to create writable database file with message '%@'.", [error localizedDescription]); - } - } - - sqlite3 *connection; - sqlite3_open([writableDBPath UTF8String], &connection); - sharedDatabase.connection = connection; - - static const char *maxIdSql = "SELECT MAX(id) FROM SCAN"; - sqlite3_prepare_v2(connection, maxIdSql, -1, &maxIdStatement, NULL); - - static const char *selectAllSql = "SELECT id, text, stamp FROM SCAN ORDER BY id"; - sqlite3_prepare_v2(connection, selectAllSql, -1, &selectAllStatement, NULL); - - static const char *insertSql = - "INSERT INTO SCAN (id, text, stamp) VALUES (?, ?, ?)"; - sqlite3_prepare_v2(connection, insertSql, -1, &insertStatement, NULL); - - static const char *deleteSql = "DELETE FROM SCAN WHERE id = ?"; - sqlite3_prepare_v2(connection, deleteSql, -1, &deleteStatement, NULL); - - if (SQLITE_ROW == sqlite3_step(maxIdStatement)) { - int maxId = sqlite3_column_int(maxIdStatement, 0); - sharedDatabase.nextScanIdent = maxId + 1; - sqlite3_reset(maxIdStatement); - } else { - NSLog(@"failed to read max ID from database\n"); - } - - } - return sharedDatabase; -} - -- (void)addScanWithText:(NSString *)text { - sqlite3_bind_int(insertStatement, 1, nextScanIdent++); - sqlite3_bind_text(insertStatement, 2, [text UTF8String], -1, SQLITE_TRANSIENT); - sqlite3_bind_double(insertStatement, 3, [[NSDate date] timeIntervalSince1970]); - sqlite3_step(insertStatement); - sqlite3_reset(insertStatement); -} - -- (NSArray *)scans { - NSMutableArray *scans = [NSMutableArray array]; - while (SQLITE_ROW == sqlite3_step(selectAllStatement)) { - int ident = sqlite3_column_int(selectAllStatement, 0); - NSString *text = [NSString stringWithUTF8String:(char *)sqlite3_column_text(selectAllStatement, 1)]; - NSDate *stamp = [NSDate dateWithTimeIntervalSince1970:sqlite3_column_double(selectAllStatement, 2)]; - Scan *scan = [[Scan alloc] initWithIdent:ident text:text stamp:stamp]; - [scans addObject:scan]; - [scan release]; - } - sqlite3_reset(selectAllStatement); - return scans; -} - -- (void)deleteScan:(Scan *)scan { - sqlite3_bind_int(deleteStatement, 1, [scan ident]); - sqlite3_step(deleteStatement); - sqlite3_reset(deleteStatement); -} - - -@end diff --git a/iphone/legacy/Barcodes_original/Classes/Decoder.h b/iphone/legacy/Barcodes_original/Classes/Decoder.h deleted file mode 100644 index 4b28141f8..000000000 --- a/iphone/legacy/Barcodes_original/Classes/Decoder.h +++ /dev/null @@ -1,49 +0,0 @@ -// -// Decoder.h -// ZXing -// -// Created by Christian Brunschen on 31/03/2008. -// -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import -#import "DecoderDelegate.h" - -@interface Decoder : NSObject { - UIImage *image; - CGRect cropRect; - UIImage *subsetImage; - unsigned char *subsetData; - size_t subsetWidth; - size_t subsetHeight; - size_t subsetBytesPerRow; - id delegate; -} - -@property(nonatomic, retain) UIImage *image; -@property(nonatomic, assign) CGRect cropRect; -@property(nonatomic, retain) UIImage *subsetImage; -@property(nonatomic, assign) unsigned char *subsetData; -@property(assign) size_t subsetWidth; -@property(assign) size_t subsetHeight; -@property(assign) size_t subsetBytesPerRow; -@property(nonatomic, assign) id delegate; - -- (void) decodeImage:(UIImage *)image; -- (void) decodeImage:(UIImage *)image cropRect:(CGRect)cropRect; - -@end diff --git a/iphone/legacy/Barcodes_original/Classes/Decoder.mm b/iphone/legacy/Barcodes_original/Classes/Decoder.mm deleted file mode 100644 index d5ca9cfc9..000000000 --- a/iphone/legacy/Barcodes_original/Classes/Decoder.mm +++ /dev/null @@ -1,266 +0,0 @@ -// -// Decoder.m -// ZXing -// -// Created by Christian Brunschen on 31/03/2008. -// -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import "Decoder.h" -#import "TwoDDecoderResult.h" -#import "FormatReader.h" - -#include -#include -#include -#include -#include "GrayBytesMonochromeBitmapSource.h" - -using namespace zxing; - -@implementation Decoder - -@synthesize image; -@synthesize cropRect; -@synthesize subsetImage; -@synthesize subsetData; -@synthesize subsetWidth; -@synthesize subsetHeight; -@synthesize subsetBytesPerRow; -@synthesize delegate; - -- (void)willDecodeImage { - if ([self.delegate respondsToSelector:@selector(decoder:willDecodeImage:usingSubset:)]) { - [self.delegate decoder:self willDecodeImage:self.image usingSubset:self.subsetImage]; - } -} - -- (void)progressDecodingImage:(NSString *)progress { - if ([self.delegate respondsToSelector:@selector(decoder:decodingImage:usingSubset:progress:)]) { - [self.delegate decoder:self decodingImage:self.image usingSubset:self.subsetImage progress:progress]; - } -} - -- (void)didDecodeImage:(TwoDDecoderResult *)result { - if ([self.delegate respondsToSelector:@selector(decoder:didDecodeImage:usingSubset:withResult:)]) { - [self.delegate decoder:self didDecodeImage:self.image usingSubset:self.subsetImage withResult:result]; - } - - [result release]; -} - -- (void)failedToDecodeImage:(NSString *)reason { - if ([self.delegate respondsToSelector:@selector(decoder:failedToDecodeImage:usingSubset:reason:)]) { - [self.delegate decoder:self failedToDecodeImage:self.image usingSubset:self.subsetImage reason:reason]; - } -} - -#define SUBSET_SIZE 320.0 -- (void) prepareSubset { - CGSize size = [image size]; -#ifdef DEBUG - NSLog(@"decoding: image is (%.1f x %.1f), cropRect is (%.1f,%.1f)x(%.1f,%.1f)", size.width, size.height, - cropRect.origin.x, cropRect.origin.y, cropRect.size.width, cropRect.size.height); -#endif - float scale = fminf(1.0f, fmaxf(SUBSET_SIZE / cropRect.size.width, SUBSET_SIZE / cropRect.size.height)); - CGPoint offset = CGPointMake(-cropRect.origin.x, -cropRect.origin.y); -#ifdef DEBUG - NSLog(@" offset = (%.1f, %.1f), scale = %.3f", offset.x, offset.y, scale); -#endif - - subsetWidth = cropRect.size.width * scale; - subsetHeight = cropRect.size.height * scale; - - subsetBytesPerRow = ((subsetWidth + 0xf) >> 4) << 4; -#ifdef DEBUG - NSLog(@"decoding: image to decode is (%d x %d) (%d bytes/row)", subsetWidth, subsetHeight, subsetBytesPerRow); -#endif - - subsetData = (unsigned char *)malloc(subsetBytesPerRow * subsetHeight); -#ifdef DEBUG - NSLog(@"allocated %d bytes of memory", subsetBytesPerRow * subsetHeight); -#endif - - CGColorSpaceRef grayColorSpace = CGColorSpaceCreateDeviceGray(); - - CGContextRef ctx = - CGBitmapContextCreate(subsetData, subsetWidth, subsetHeight, - 8, subsetBytesPerRow, grayColorSpace, - kCGImageAlphaNone); - CGColorSpaceRelease(grayColorSpace); - CGContextSetInterpolationQuality(ctx, kCGInterpolationNone); - CGContextSetAllowsAntialiasing(ctx, false); - // adjust the coordinate system - CGContextTranslateCTM(ctx, 0.0, subsetHeight); - CGContextScaleCTM(ctx, 1.0, -1.0); - -#ifdef DEBUG - NSLog(@"created %dx%d bitmap context", subsetWidth, subsetHeight); -#endif - - UIGraphicsPushContext(ctx); - CGRect rect = CGRectMake(offset.x * scale, offset.y * scale, scale * size.width, scale * size.height); -#ifdef DEBUG - NSLog(@"rect for image = (%.1f,%.1f)x(%.1f,%.1f)", rect.origin.x, rect.origin.y, rect.size.width, rect.size.height); -#endif - [image drawInRect:rect]; - UIGraphicsPopContext(); - -#ifdef DEBUG - NSLog(@"drew image into %d(%d)x%d bitmap context", subsetWidth, subsetBytesPerRow, subsetHeight); -#endif - CGContextFlush(ctx); -#ifdef DEBUG - NSLog(@"flushed context"); -#endif - - CGImageRef subsetImageRef = CGBitmapContextCreateImage(ctx); -#ifdef DEBUG - NSLog(@"created CGImage from context"); -#endif - - self.subsetImage = [UIImage imageWithCGImage:subsetImageRef]; - CGImageRelease(subsetImageRef); - - CGContextRelease(ctx); -#ifdef DEBUG - NSLog(@"released context"); -#endif -} - -- (void)decode:(id)arg { - NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; - { - - NSSet *formatReaders = [FormatReader formatReaders]; - - Ref source (new GrayBytesMonochromeBitmapSource(subsetData, subsetWidth, subsetHeight, subsetBytesPerRow)); - - Ref binarizer (new GlobalHistogramBinarizer(source)); - Ref grayImage (new BinaryBitmap(binarizer)); -#ifdef DEBUG - NSLog(@"created GrayBytesMonochromeBitmapSource", subsetWidth, subsetHeight); - NSLog(@"grayImage count = %d", grayImage->count()); -#endif - - TwoDDecoderResult *decoderResult = nil; - -#ifdef TRY_ROTATIONS - for (int i = 0; !decoderResult && i < 4; i++) { -#endif - for (FormatReader *reader in formatReaders) { - try { - #ifdef DEBUG - NSLog(@"decoding gray image"); - #endif - Ref result([reader decode:grayImage]); - #ifdef DEBUG - NSLog(@"gray image decoded"); - #endif - - Ref resultText(result->getText()); - const char *cString = resultText->getText().c_str(); - const std::vector > &resultPoints = result->getResultPoints(); - NSMutableArray *points = - [NSMutableArray arrayWithCapacity:resultPoints.size()]; - - for (size_t i = 0; i < resultPoints.size(); i++) { - const Ref &rp = resultPoints[i]; - CGPoint p = CGPointMake(rp->getX(), rp->getY()); - [points addObject:[NSValue valueWithCGPoint:p]]; - } - - NSString *resultString = [NSString stringWithCString:cString - encoding:NSUTF8StringEncoding]; - - decoderResult = [[TwoDDecoderResult resultWithText:resultString - points:points] retain]; - } catch (ReaderException &rex) { - NSLog(@"failed to decode, caught ReaderException '%s'", - rex.what()); - } catch (IllegalArgumentException &iex) { - NSLog(@"failed to decode, caught IllegalArgumentException '%s'", - iex.what()); - } catch (...) { - NSLog(@"Caught unknown exception!"); - } - } - -#ifdef TRY_ROTATIONS - if (!decoderResult) { -#ifdef DEBUG - NSLog(@"rotating gray image"); -#endif - grayImage = grayImage->rotateCounterClockwise(); -#ifdef DEBUG - NSLog(@"gray image rotated"); -#endif - } - } -#endif - - free(subsetData); - self.subsetData = NULL; - - if (decoderResult) { - [self performSelectorOnMainThread:@selector(didDecodeImage:) - withObject:decoderResult - waitUntilDone:NO]; - } else { - [self performSelectorOnMainThread:@selector(failedToDecodeImage:) - withObject:NSLocalizedString(@"Decoder BarcodeDetectionFailure", @"No barcode detected.") - waitUntilDone:NO]; - } - } - [pool drain]; -#ifdef DEBUG - NSLog(@"finished decoding."); -#endif - - // if this is not the main thread, then we end it - if (![NSThread isMainThread]) { - [NSThread exit]; - } -} - -- (void) decodeImage:(UIImage *)i { - [self decodeImage:i cropRect:CGRectMake(0.0f, 0.0f, i.size.width, i.size.height)]; -} - -- (void) decodeImage:(UIImage *)i cropRect:(CGRect)cr { - self.image = i; - self.cropRect = cr; - - [self prepareSubset]; - [self willDecodeImage]; - [self performSelectorOnMainThread:@selector(progressDecodingImage:) - withObject:NSLocalizedString(@"Decoder MessageWhileDecoding", @"Decoding ...") - waitUntilDone:NO]; - - [NSThread detachNewThreadSelector:@selector(decode:) - toTarget:self - withObject:nil]; -} - -- (void) dealloc { - [image release]; - [subsetImage release]; - if (subsetData) free(subsetData); - [super dealloc]; -} - -@end diff --git a/iphone/legacy/Barcodes_original/Classes/DecoderDelegate.h b/iphone/legacy/Barcodes_original/Classes/DecoderDelegate.h deleted file mode 100644 index 5a78203dc..000000000 --- a/iphone/legacy/Barcodes_original/Classes/DecoderDelegate.h +++ /dev/null @@ -1,34 +0,0 @@ -// -// DecoderDelegate.h -// ZXing -// -// Created by Christian Brunschen on 01/04/2008. -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -@class Decoder; -@class TwoDDecoderResult; - -@protocol DecoderDelegate -@optional -- (void)decoder:(Decoder *)decoder willDecodeImage:(UIImage *)image usingSubset:(UIImage *)subset; -- (void)decoder:(Decoder *)decoder decodingImage:(UIImage *)image usingSubset:(UIImage *)subset progress:(NSString *)message; -- (void)decoder:(Decoder *)decoder didDecodeImage:(UIImage *)image usingSubset:(UIImage *)subset withResult:(TwoDDecoderResult *)result; -- (void)decoder:(Decoder *)decoder failedToDecodeImage:(UIImage *)image usingSubset:(UIImage *)subset reason:(NSString *)reason; - -@end diff --git a/iphone/legacy/Barcodes_original/Classes/DecoderViewController.h b/iphone/legacy/Barcodes_original/Classes/DecoderViewController.h deleted file mode 100644 index 78ec6c516..000000000 --- a/iphone/legacy/Barcodes_original/Classes/DecoderViewController.h +++ /dev/null @@ -1,98 +0,0 @@ -// -// DecoderViewController.h -// ZXing -// -// Created by Christian Brunschen on 22/05/2008. -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import -#import "Decoder.h" -#import "DecoderDelegate.h" -#import "ScannedImageView.h" - -@class ParsedResult; -@class Scan; -@class TwoDDecoderResult; -@class ResultAction; - - -@interface DecoderViewController : UIViewController { - IBOutlet UIBarItem *cameraBarItem; - IBOutlet UIBarItem *savedPhotosBarItem; - IBOutlet UIBarItem *libraryBarItem; - IBOutlet UIBarItem *archiveBarItem; - IBOutlet UIBarItem *actionBarItem; - - IBOutlet UIView *messageView; - IBOutlet UITextView *messageTextView; - IBOutlet UIButton *messageHelpButton; - IBOutlet ScannedImageView *imageView; - IBOutlet UIToolbar *toolbar; - UIImagePickerController *picker; - - Decoder *decoder; - ParsedResult *result; - NSArray *actions; - - NSMutableArray *resultPointViews; -} - -@property (nonatomic, retain) UIBarItem *cameraBarItem; -@property (nonatomic, retain) UIBarItem *savedPhotosBarItem; -@property (nonatomic, retain) UIBarItem *libraryBarItem; -@property (nonatomic, retain) UIBarItem *archiveBarItem; -@property (nonatomic, retain) UIBarItem *actionBarItem; - -@property (nonatomic, retain) UIView *messageView; -@property (nonatomic, retain) UITextView *messageTextView; -@property (nonatomic, retain) UIButton *messageHelpButton; -@property (nonatomic, retain) ScannedImageView *imageView; -@property (nonatomic, retain) UIImagePickerController *picker; -@property (nonatomic, retain) UIToolbar *toolbar; - -@property (nonatomic, retain) Decoder *decoder; -@property (nonatomic, retain) ParsedResult *result; -@property (nonatomic, retain) NSArray *actions; - -@property (nonatomic, retain) NSMutableArray *resultPointViews; - -- (void)clearImageView; -- (void)updateToolbar; -- (void)pickAndDecodeFromSource:(UIImagePickerControllerSourceType) sourceType; -- (IBAction)pickAndDecode:(id)sender; -- (void)showMessage:(NSString *)message helpButton:(BOOL)showHelpButton; -- (IBAction)performResultAction:(id)sender; -- (IBAction)showArchive:(id)sender; -- (void)showScan:(Scan *)scan; - -/* DecoderDelegate methods */ - -- (void)decoder:(Decoder *)decoder willDecodeImage:(UIImage *)image usingSubset:(UIImage *)subset; -- (void)decoder:(Decoder *)decoder decodingImage:(UIImage *)image usingSubset:(UIImage *)subset progress:(NSString *) message; -- (void)decoder:(Decoder *)decoder didDecodeImage:(UIImage *)image usingSubset:(UIImage *)subset withResult:(TwoDDecoderResult *)result; - -/* UIImagePickerControllerDelegate methods */ - -- (void)imagePickerController:(UIImagePickerController *)picker -didFinishPickingMediaWithInfo:(NSDictionary *)info; -- (void)imagePickerControllerDidCancel:(UIImagePickerController *)picker; - -/* UINavigationControllerDelegate methods */ -- (void)navigationController:(UINavigationController *)navigationController didShowViewController:(UIViewController *)viewController animated:(BOOL)animated; -- (void)navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewController *)viewController animated:(BOOL)animated; - -@end diff --git a/iphone/legacy/Barcodes_original/Classes/DecoderViewController.m b/iphone/legacy/Barcodes_original/Classes/DecoderViewController.m deleted file mode 100644 index 26da41ddf..000000000 --- a/iphone/legacy/Barcodes_original/Classes/DecoderViewController.m +++ /dev/null @@ -1,630 +0,0 @@ -// -// DecoderViewController.m -// ZXing -// -// Created by Christian Brunschen on 22/05/2008. -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import "DecoderViewController.h" -#import "Decoder.h" -#import "NSString+HTML.h" -#import "ResultParser.h" -#import "ParsedResult.h" -#import "ResultAction.h" - -#import "Database.h" -#import "ArchiveController.h" -#import "MessageViewController.h" -#import "Scan.h" -#import "TwoDDecoderResult.h" - -// Michael Jurewitz, Dec 16, 2009 6:32 PM writes: -// https://devforums.apple.com/message/149553 -// Notice Regarding UIGetScreenImage() -// After carefully considering the issue, Apple is now allowing applications to -// use the function UIGetScreenImage() to programmatically capture the current -// screen contents. -// Note that a future release of iPhone OS may provide a public API equivalent -// of this functionality. At such time, all applications using -// UIGetScreenImage() will be required to adopt the public API. -CGImageRef MyCGImageCopyScreenContents(void) { - extern CGImageRef UIGetScreenImage(void); - return UIGetScreenImage(); /* already retained */ -} - -@interface DecoderViewController() -- (void)takeScreenshot; -@end - -@implementation DecoderViewController - -@synthesize cameraBarItem; -@synthesize libraryBarItem; -@synthesize savedPhotosBarItem; -@synthesize archiveBarItem; -@synthesize actionBarItem; - -@synthesize messageView; -@synthesize messageTextView; -@synthesize messageHelpButton; -@synthesize imageView; -@synthesize picker; -@synthesize toolbar; - -@synthesize decoder; -@synthesize result; -@synthesize actions; - -@synthesize resultPointViews; - -- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil { - if ((self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil])) { - // Initialization code - self.title = - NSLocalizedString(@"DecoderViewController AppTitle", @"Barcode Scanner"); - - Decoder *d = [[Decoder alloc] init]; - self.decoder = d; - d.delegate = self; - [d release]; - resultPointViews = [[NSMutableArray alloc] init]; - } - return self; -} - -- (void) messageReady:(id)sender { - MessageViewController *messageController = sender; - [[self navigationController] pushViewController:messageController animated:true]; - [messageController release]; -} - -- (void) messageFailed:(id)sender { - MessageViewController *messageController = sender; - NSLog(@"Failed to load message!"); - [messageController release]; -} - -- (void) showHints:(id)sender { - NSLog(@"Showing Hints!"); - - MessageViewController *hintsController = - [[MessageViewController alloc] initWithMessageFilename:@"Hints" - target:self - onSuccess:@selector(messageReady:) - onFailure:@selector(messageFailed:)]; - hintsController.title = - NSLocalizedString(@"DecoderViewController Hints MessageViewController title", @"Hints"); - [hintsController view]; -} - -- (void) showAbout:(id)sender { - NSLog(@"Showing About!"); - - MessageViewController *aboutController = - [[MessageViewController alloc] initWithMessageFilename:@"About" - target:self - onSuccess:@selector(messageReady:) - onFailure:@selector(messageFailed:)]; - aboutController.title = - NSLocalizedString(@"DecoderViewController About MessageViewController title", @"About"); - [aboutController view]; -} - - -#define HELP_BUTTON_WIDTH (44.0) -#define HELP_BUTTON_HEIGHT (55.0) - - -#define FONT_NAME @"TimesNewRomanPSMT" -#define FONT_SIZE 16.0 - -- (void) reset { - self.result = nil; - [self clearImageView]; - [self updateToolbar]; - [self showMessage:NSLocalizedString(@"DecoderViewController take or choose picture", - @"Please take or choose a picture containing a barcode") helpButton:YES]; -} - -// Implement loadView if you want to create a view hierarchy programmatically -- (void)loadView { - [super loadView]; - - CGRect messageViewFrame = imageView.frame; - UIView *mView = [[UIView alloc] initWithFrame:messageViewFrame]; - mView.backgroundColor = [UIColor darkGrayColor]; - mView.alpha = 0.9; - mView.autoresizingMask = UIViewAutoresizingFlexibleHeight | - UIViewAutoresizingFlexibleWidth | - UIViewAutoresizingFlexibleTopMargin; - - UITextView *mTextView = [[UITextView alloc] initWithFrame:messageViewFrame]; - mTextView.autoresizingMask = UIViewAutoresizingFlexibleHeight | - UIViewAutoresizingFlexibleWidth; - mTextView.editable = false; - mTextView.scrollEnabled = true; - mTextView.font = [UIFont fontWithName:FONT_NAME size:FONT_SIZE]; - mTextView.textColor = [UIColor whiteColor]; - mTextView.backgroundColor = [[UIColor lightGrayColor] colorWithAlphaComponent:0.0]; - mTextView.textAlignment = UITextAlignmentLeft; - mTextView.alpha = 1.0; - [mView addSubview:mTextView]; - - UIButton *mHelpButton = [[UIButton buttonWithType:UIButtonTypeInfoLight] retain]; - mHelpButton.frame = CGRectMake(messageViewFrame.size.width - HELP_BUTTON_WIDTH, 0.0, HELP_BUTTON_WIDTH, HELP_BUTTON_HEIGHT); - - mHelpButton.backgroundColor = [UIColor clearColor]; - [mHelpButton setUserInteractionEnabled:YES]; - [mHelpButton addTarget:self action:@selector(showHints:) forControlEvents:UIControlEventTouchUpInside]; - - self.messageHelpButton = mHelpButton; - [mHelpButton release]; - - self.messageTextView = mTextView; - [mTextView release]; - - self.messageView = mView; - [mView release]; - - [self.view addSubview:self.messageView]; - - // add the 'About' button at the top-right of the navigation bar - UIBarButtonItem *aboutButton = - [[UIBarButtonItem alloc] initWithTitle:NSLocalizedString(@"DecoderViewController about button title", @"About") - style:UIBarButtonItemStyleBordered - target:self - action:@selector(showAbout:)]; - self.navigationItem.rightBarButtonItem = aboutButton; - [aboutButton release]; - - [self reset]; -} - -- (void) updateToolbar { - self.cameraBarItem.enabled = [UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera]; - self.savedPhotosBarItem.enabled = [UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeSavedPhotosAlbum]; - self.libraryBarItem.enabled = [UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypePhotoLibrary]; - self.archiveBarItem.enabled = true; - self.actionBarItem.enabled = (self.result != nil) && ([self.result actions] != nil) && ([self.result actions].count > 0); -} - - -// If you need to do additional setup after loading the view, override viewDidLoad. -- (void)viewDidLoad { - [super viewDidLoad]; -} - - -- (void)clearImageView { - imageView.image = nil; - for (UIView *view in resultPointViews) { - [view removeFromSuperview]; - } - [resultPointViews removeAllObjects]; -} - -- (void)pickAndDecodeFromSource:(UIImagePickerControllerSourceType) sourceType { - [self reset]; - - // Create the Image Picker - if ([UIImagePickerController isSourceTypeAvailable:sourceType]) { - UIImagePickerController* aPicker = - [[[UIImagePickerController alloc] init] autorelease]; - aPicker.sourceType = sourceType; - aPicker.delegate = self; - self.picker = aPicker; - - // [[NSUserDefaults standardUserDefaults] boolForKey:@"allowEditing"]; - BOOL isCamera = (sourceType == UIImagePickerControllerSourceTypeCamera); - if ([picker respondsToSelector:@selector(setAllowsEditing:)]) { - // not in 3.0 - [picker setAllowsEditing:!isCamera]; - } - if (isCamera) { - if ([picker respondsToSelector:@selector(setShowsCameraControls:)]) { - [picker setShowsCameraControls:NO]; - UIButton *cancelButton = - [UIButton buttonWithType:UIButtonTypeRoundedRect]; - NSString *cancelString = - NSLocalizedString(@"DecoderViewController cancel button title", @""); - CGFloat height = [UIFont systemFontSize]; - CGSize size = - [cancelString sizeWithFont:[UIFont systemFontOfSize:height]]; - [cancelButton setTitle:cancelString forState:UIControlStateNormal]; - CGRect appFrame = [[UIScreen mainScreen] bounds]; - static const int kMargin = 10; - static const int kInternalXMargin = 10; - static const int kInternalYMargin = 10; - CGRect frame = CGRectMake(kMargin, - appFrame.size.height - (height + 2*kInternalYMargin + kMargin), - 2*kInternalXMargin + size.width, - height + 2*kInternalYMargin); - [cancelButton setFrame:frame]; - [cancelButton addTarget:self - action:@selector(cancel:) - forControlEvents:UIControlEventTouchUpInside]; - picker.cameraOverlayView = cancelButton; - // The camera takes quite a while to start up. Hence the 2 second delay. - [self performSelector:@selector(takeScreenshot) - withObject:nil - afterDelay:2.0]; - } - } - - // Picker is displayed asynchronously. - [self presentModalViewController:picker animated:YES]; - } else { - NSLog(@"Attempted to pick an image with illegal source type '%d'", sourceType); - } -} - -- (IBAction)pickAndDecode:(id) sender { - UIImagePickerControllerSourceType sourceType; - int i = [sender tag]; - - switch (i) { - case 0: sourceType = UIImagePickerControllerSourceTypeCamera; break; - case 1: sourceType = UIImagePickerControllerSourceTypeSavedPhotosAlbum; break; - case 2: sourceType = UIImagePickerControllerSourceTypePhotoLibrary; break; - default: sourceType = UIImagePickerControllerSourceTypeSavedPhotosAlbum; - } - [self pickAndDecodeFromSource:sourceType]; -} - - -- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { - // Return YES for supported orientations - return (interfaceOrientation == UIInterfaceOrientationPortrait); -} - - -- (void)didReceiveMemoryWarning { - [super didReceiveMemoryWarning]; // Releases the view if it doesn't have a superview - // Release anything that's not essential, such as cached data -} - -- (void)dealloc { - [decoder release]; - [self clearImageView]; - [imageView release]; - [actionBarItem release]; - [cameraBarItem release]; - [libraryBarItem release]; - [savedPhotosBarItem release]; - [archiveBarItem release]; - [toolbar release]; - [picker release]; - [actions release]; - [resultPointViews release]; - - [super dealloc]; -} - -- (void)showMessage:(NSString *)message helpButton:(BOOL)showHelpButton { -#ifdef DEBUG - NSLog(@"Showing message '%@' %@ help Button", message, showHelpButton ? @"with" : @"without"); -#endif - - CGSize imageMaxSize = imageView.bounds.size; - if (showHelpButton) { - imageMaxSize.width -= messageHelpButton.frame.size.width; - } - CGSize size = [message sizeWithFont:messageTextView.font constrainedToSize:imageMaxSize lineBreakMode:UILineBreakModeWordWrap]; - float height = 20.0 + fmin(100.0, size.height); - if (showHelpButton) { - height = fmax(HELP_BUTTON_HEIGHT, height); - } - - CGRect messageFrame = imageView.bounds; - messageFrame.origin.y = CGRectGetMaxY(messageFrame) - height; - messageFrame.size.height = height; - [self.messageView setFrame:messageFrame]; - messageView.autoresizingMask = UIViewAutoresizingFlexibleTopMargin | UIViewAutoresizingFlexibleWidth; - CGRect messageViewBounds = [messageView bounds]; - - self.messageTextView.text = message; - messageTextView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight; - if (showHelpButton) { - CGRect textViewFrame; - CGRect helpButtonFrame; - - CGRectDivide(messageViewBounds, &helpButtonFrame, &textViewFrame, HELP_BUTTON_WIDTH, CGRectMaxXEdge); - [self.messageTextView setFrame:textViewFrame]; - - [messageHelpButton setFrame:helpButtonFrame]; - messageHelpButton.alpha = 1.0; - messageHelpButton.enabled = YES; - messageHelpButton.autoresizingMask = - UIViewAutoresizingFlexibleLeftMargin | - UIViewAutoresizingFlexibleTopMargin; - [messageView addSubview:messageHelpButton]; - } else { - [messageHelpButton removeFromSuperview]; - messageHelpButton.alpha = 0.0; - messageHelpButton.enabled = NO; - - [self.messageTextView setFrame:messageViewBounds]; - } -} - -// DecoderDelegate methods - -- (void)decoder:(Decoder *)decoder willDecodeImage:(UIImage *)image usingSubset:(UIImage *)subset{ - [self clearImageView]; - [self.imageView setImage:subset]; - [self showMessage:[NSString stringWithFormat:NSLocalizedString(@"DecoderViewController MessageWhileDecodingWithDimensions", @"Decoding image (%.0fx%.0f) ..."), image.size.width, image.size.height] - helpButton:NO]; -} - -- (void)decoder:(Decoder *)decoder - decodingImage:(UIImage *)image - usingSubset:(UIImage *)subset - progress:(NSString *)message { - [self clearImageView]; - [self.imageView setImage:subset]; - [self showMessage:message helpButton:NO]; -} - -- (void)presentResultForString:(NSString *)resultString { - self.result = [ResultParser parsedResultForString:resultString]; - [self showMessage:[self.result stringForDisplay] helpButton:NO]; - self.actions = self.result.actions; -#ifdef DEBUG - NSLog(@"result has %d actions", actions ? 0 : actions.count); -#endif - [self updateToolbar]; -} - -- (void)presentResultPoints:(NSArray *)resultPoints - forImage:(UIImage *)image - usingSubset:(UIImage *)subset { - // simply add the points to the image view - imageView.image = subset; - for (NSValue *pointValue in resultPoints) { - [imageView addResultPoint:[pointValue CGPointValue]]; - } -} - -- (void)decoder:(Decoder *)decoder didDecodeImage:(UIImage *)image usingSubset:(UIImage *)subset withResult:(TwoDDecoderResult *)twoDResult { - self.picker = nil; - [self presentResultForString:twoDResult.text]; - - [self presentResultPoints:twoDResult.points forImage:image usingSubset:subset]; - - // save the scan to the shared database - [[Database sharedDatabase] addScanWithText:twoDResult.text]; - - [self performResultAction:self]; -} - -- (void)decoder:(Decoder *)decoder failedToDecodeImage:(UIImage *)image usingSubset:(UIImage *)subset reason:(NSString *)reason { - if (self.picker && UIImagePickerControllerSourceTypeCamera == self.picker.sourceType) { - // If we are using the camera, and the user hasn't manually cancelled, - // take another snapshot and try to decode it. - [self takeScreenshot]; - } else { - [self showMessage:reason helpButton:YES]; - [self updateToolbar]; - } -} - - -- (void)willAnimateFirstHalfOfRotationToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration { - [super willAnimateFirstHalfOfRotationToInterfaceOrientation:toInterfaceOrientation duration:duration]; - - if (imageView.image) { - /* - CGRect viewBounds = imageView.bounds; - CGSize imageSize = imageView.image.size; - float scale = fmin(viewBounds.size.width / imageSize.width, - viewBounds.size.height / imageSize.height); - float xOffset = (viewBounds.size.width - scale * imageSize.width) / 2.0; - float yOffset = (viewBounds.size.height - scale * imageSize.height) / 2.0; - */ - - for (UIView *view in resultPointViews) { - view.alpha = 0.0; - } - } -} - -- (void)willAnimateSecondHalfOfRotationFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation duration:(NSTimeInterval)duration { - [super willAnimateSecondHalfOfRotationFromInterfaceOrientation:fromInterfaceOrientation duration:duration]; - - if (imageView.image) { - /* - CGRect viewBounds = imageView.bounds; - CGSize imageSize = imageView.image.size; - float scale = fmin(viewBounds.size.width / imageSize.width, - viewBounds.size.height / imageSize.height); - float xOffset = (viewBounds.size.width - scale * imageSize.width) / 2.0; - float yOffset = (viewBounds.size.height - scale * imageSize.height) / 2.0; - */ - - for (UIView *view in resultPointViews) { - view.alpha = 1.0; - } - } -} - -- (void)cancel:(id)sender { - self.picker = nil; -} - -- (void)takeScreenshot { - if (picker) { - CGImageRef cgScreen = MyCGImageCopyScreenContents(); - if (cgScreen) { - CGRect croppedFrame = CGRectMake(0, 0, CGImageGetWidth(cgScreen), - CGImageGetHeight(cgScreen) - (10+toolbar.bounds.size.height)); - CGImageRef cgCropped = CGImageCreateWithImageInRect(cgScreen, croppedFrame); - if (cgCropped) { - UIImage *screenshot = [UIImage imageWithCGImage:cgCropped]; - CGImageRelease(cgCropped); - [self.decoder decodeImage:screenshot]; - } - CGImageRelease(cgScreen); - } - } -} - -// UIImagePickerControllerDelegate methods - -- (void)imagePickerController:(UIImagePickerController *)aPicker -didFinishPickingMediaWithInfo:(NSDictionary *)info { - UIImage *imageToDecode = - [info objectForKey:UIImagePickerControllerEditedImage]; - if (!imageToDecode) { - imageToDecode = [info objectForKey:UIImagePickerControllerOriginalImage]; - } - CGSize size = [imageToDecode size]; - CGRect cropRect = CGRectMake(0.0, 0.0, size.width, size.height); - -#ifdef DEBUG - NSLog(@"picked image size = (%f, %f)", size.width, size.height); -#endif - NSString *systemVersion = [[UIDevice currentDevice] systemVersion]; - - NSValue *cropRectValue = [info objectForKey:UIImagePickerControllerCropRect]; - if (cropRectValue) { - UIImage *originalImage = [info objectForKey:UIImagePickerControllerOriginalImage]; - if (originalImage) { -#ifdef DEBUG - NSLog(@"original image size = (%f, %f)", originalImage.size.width, originalImage.size.height); -#endif - cropRect = [cropRectValue CGRectValue]; -#ifdef DEBUG - NSLog(@"crop rect = (%f, %f) x (%f, %f)", CGRectGetMinX(cropRect), CGRectGetMinY(cropRect), CGRectGetWidth(cropRect), CGRectGetHeight(cropRect)); -#endif - if (([picker sourceType] == UIImagePickerControllerSourceTypeSavedPhotosAlbum) && - [@"2.1" isEqualToString:systemVersion]) { - // adjust crop rect to work around bug in iPhone OS 2.1 when selecting from the photo roll - cropRect.origin.x *= 2.5; - cropRect.origin.y *= 2.5; - cropRect.size.width *= 2.5; - cropRect.size.height *= 2.5; -#ifdef DEBUG - NSLog(@"2.1-adjusted crop rect = (%f, %f) x (%f, %f)", CGRectGetMinX(cropRect), CGRectGetMinY(cropRect), CGRectGetWidth(cropRect), CGRectGetHeight(cropRect)); -#endif - } - - imageToDecode = originalImage; - } - } - - [imageToDecode retain]; - self.picker = nil; - [self.decoder decodeImage:imageToDecode cropRect:cropRect]; - [imageToDecode release]; -} - - -- (void)imagePickerControllerDidCancel:(UIImagePickerController *)aPicker { - self.picker = nil; -} - -- (void)setPicker:(UIImagePickerController *)aPicker { - if (picker != aPicker) { - [picker dismissModalViewControllerAnimated:YES]; - picker = [aPicker retain]; - [self updateToolbar]; - } -} - -- (void)navigationController:(UINavigationController *)navigationController - didShowViewController:(UIViewController *)viewController - animated:(BOOL)animated { - // no-op -} - -- (void)navigationController:(UINavigationController *)navigationController - willShowViewController:(UIViewController *)viewController - animated:(BOOL)animated { - // no-op -} - -- (void)performAction:(ResultAction *)action { - [action performActionWithController:self shouldConfirm:NO]; -} - -- (void)confirmAndPerformAction:(ResultAction *)action { - [action performActionWithController:self shouldConfirm:YES]; -} - - -- (IBAction)performResultAction:(id)sender { - if (self.result == nil) { - NSLog(@"no result to perform an action on!"); - return; - } - - if (self.actions == nil || self.actions.count == 0) { - NSLog(@"result has no actions to perform!"); - return; - } - - if (self.actions.count == 1) { - ResultAction *action = [self.actions lastObject]; -#ifdef DEBUG - NSLog(@"Result has the single action, (%@) '%@', performing it", - NSStringFromClass([action class]), [action title]); -#endif - [self performSelector:@selector(confirmAndPerformAction:) - withObject:action - afterDelay:0.0]; - } else { -#ifdef DEBUG - NSLog(@"Result has multiple actions, popping up an action sheet"); -#endif - UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithFrame:self.view.bounds]; - - for (ResultAction *action in self.actions) { - [actionSheet addButtonWithTitle:[action title]]; - } - - int cancelIndex = [actionSheet addButtonWithTitle:NSLocalizedString(@"DecoderViewController cancel button title", @"Cancel")]; - actionSheet.cancelButtonIndex = cancelIndex; - - actionSheet.delegate = self; - - [actionSheet showFromToolbar:self.toolbar]; - } -} - -- (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex { - if (buttonIndex < self.actions.count) { - int actionIndex = buttonIndex; - ResultAction *action = [self.actions objectAtIndex:actionIndex]; - [self performSelector:@selector(performAction:) - withObject:action - afterDelay:0.0]; - } -} - -- (IBAction)showArchive:(id)sender { - ArchiveController *archiveController = [[ArchiveController alloc] initWithDecoderViewController:self]; - [[self navigationController] pushViewController:archiveController animated:true]; - [archiveController release]; -} - -- (void)showScan:(Scan *)scan { - [self clearImageView]; - [self presentResultForString:scan.text]; - [[self navigationController] popToViewController:self animated:YES]; -} - -@end diff --git a/iphone/legacy/Barcodes_original/Classes/DecodingView.xib b/iphone/legacy/Barcodes_original/Classes/DecodingView.xib deleted file mode 100644 index 73dac5e17..000000000 --- a/iphone/legacy/Barcodes_original/Classes/DecodingView.xib +++ /dev/null @@ -1,439 +0,0 @@ - - - - 512 - 9D34 - 667 - 949.33 - 352.00 - - YES - - - - YES - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - YES - - IBFilesOwner - - - IBFirstResponder - - - - 274 - - YES - - - 274 - {320, 431} - - NO - NO - 1 - NO - - - - 266 - {{0, 431}, {320, 49}} - - NO - NO - - YES - - 15 - - - - 1 - 5 - - - - 1 - 12 - - - - 5 - - - - 2 - 11 - - - - 1 - 5 - - - - 16 - 10 - - - - 1 - 5 - - - - 17 - 9 - - - - - - {320, 480} - - - 1 - MCAwIDAAA - - 3 - - - - - YES - - - view - - - - 9 - - - - imageView - - - - 18 - - - - actionBarItem - - - - 51 - - - - performResultAction: - - - - 53 - - - - toolbar - - - - 57 - - - - pickAndDecode: - - - - 60 - - - - pickAndDecode: - - - - 61 - - - - pickAndDecode: - - - - 62 - - - - cameraBarItem - - - - 63 - - - - savedPhotosBarItem - - - - 64 - - - - libraryBarItem - - - - 65 - - - - archiveBarItem - - - - 66 - - - - showArchive: - - - - 67 - - - - - YES - - 0 - - YES - - - - - - 1 - - - YES - - - - - - - -1 - - - RmlsZSdzIE93bmVyA - - - -2 - - - - - 16 - - - - - 34 - - - YES - - - - - - - - - - - - - - 35 - - - - - 36 - - - - - 37 - - - - - 38 - - - - - 54 - - - - - 55 - - - - - 56 - - - - - 58 - - - - - 59 - - - - - - - YES - - YES - -1.CustomClassName - -2.CustomClassName - 1.IBEditorWindowLastContentRect - 1.IBPluginDependency - 16.IBPluginDependency - 34.IBPluginDependency - 35.IBPluginDependency - 36.IBPluginDependency - 37.IBPluginDependency - 38.IBPluginDependency - 54.IBPluginDependency - 55.IBPluginDependency - 56.IBPluginDependency - 58.IBPluginDependency - 59.IBPluginDependency - - - YES - DecodingController - UIResponder - {{387, 315}, {320, 480}} - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - - YES - - YES - - - YES - - - - - YES - - YES - - - YES - - - - 67 - - - - YES - - DecodingController - UIViewController - - YES - - YES - performResultAction: - pickAndDecode: - showArchive: - - - YES - id - id - id - - - - YES - - YES - actionBarItem - archiveBarItem - cameraBarItem - imageView - libraryBarItem - messageView - savedPhotosBarItem - toolbar - - - YES - UIBarItem - UIBarItem - UIBarItem - UIImageView - UIBarItem - UITextView - UIBarItem - UIToolbar - - - - IBProjectSource - Classes/DecodingController.h - - - - DecodingController - UIViewController - - IBUserSource - - - - - - 0 - ../ZXing.xcodeproj - 3 - - diff --git a/iphone/legacy/Barcodes_original/Classes/DoCoMoResultParser.h b/iphone/legacy/Barcodes_original/Classes/DoCoMoResultParser.h deleted file mode 100644 index 0b5287014..000000000 --- a/iphone/legacy/Barcodes_original/Classes/DoCoMoResultParser.h +++ /dev/null @@ -1,38 +0,0 @@ -// -// DoCoMoResultParser.h -// ZXing -// -// Created by Christian Brunschen on 25/06/2008. -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import -#import "ResultParser.h" - -@interface NSString (DoCoMoFieldParsing) -- (NSString *)backslashUnescaped; -- (NSArray *)fieldsWithPrefix:(NSString *)prefix; -- (NSArray *)fieldsWithPrefix:(NSString *)prefix terminator:(NSString *)term; -- (NSString *)fieldWithPrefix:(NSString *)prefix; -- (NSString *)fieldWithPrefix:(NSString *)prefix terminator:(NSString *)term; -@end - - -@interface DoCoMoResultParser : ResultParser { - -} - -@end diff --git a/iphone/legacy/Barcodes_original/Classes/DoCoMoResultParser.m b/iphone/legacy/Barcodes_original/Classes/DoCoMoResultParser.m deleted file mode 100644 index d29e095e4..000000000 --- a/iphone/legacy/Barcodes_original/Classes/DoCoMoResultParser.m +++ /dev/null @@ -1,114 +0,0 @@ -// -// DoCoMoResultParser.m -// ZXing -// -// Created by Christian Brunschen on 25/06/2008. -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import "DoCoMoResultParser.h" - - -@implementation NSString (DoCoMoFieldParsing) - -- (NSString *)backslashUnescaped { - NSRange backslashRange = [self rangeOfString:@"\\"]; - if (backslashRange.location == NSNotFound) { - return self; - } - - int max = [self length]; - int startLocation = 0; - NSMutableString *result = [NSMutableString stringWithCapacity:[self length]]; - while (backslashRange.location != NSNotFound) { - [result appendString:[self substringWithRange:NSMakeRange(startLocation, - backslashRange.location - startLocation)]]; - [result appendFormat:@"%c", [self characterAtIndex:backslashRange.location + 1]]; - startLocation = backslashRange.location + 2; - NSRange searchRange = NSMakeRange(startLocation, max - startLocation); - backslashRange = [self rangeOfString:@"\\" options:0 range:searchRange]; - } - if (startLocation < max) { - [result appendString:[self substringWithRange:NSMakeRange(startLocation, max - startLocation)]]; - } - return [NSString stringWithString:result]; -} - -- (NSArray *)fieldsWithPrefix:(NSString *)prefix { - return [self fieldsWithPrefix:prefix terminator:@";"]; -} - -- (NSArray *)fieldsWithPrefix:(NSString *)prefix terminator:(NSString *)term { - NSMutableArray *result = nil; - - int i = 0; - int max = [self length]; - NSRange searchRange; - NSRange foundRange; - while (i < max) { - searchRange = NSMakeRange(i, max - i); - foundRange = [self rangeOfString:prefix options:0 range:searchRange]; - if(foundRange.location == NSNotFound) { - break; - } - - int start = i = foundRange.location + foundRange.length; - bool done = false; - while (!done) { - searchRange = NSMakeRange(i, max - i); - NSRange termRange = [self rangeOfString:term options:0 range:searchRange]; - if (termRange.location == NSNotFound) { - i = max; - done = true; - } else if ([self characterAtIndex:termRange.location-1] == (unichar)'\\') { - i++; - } else { - NSString *substring = [self substringWithRange:NSMakeRange(start, termRange.location - start)]; - NSString *unescaped = [substring backslashUnescaped]; - if (result == nil) { - result = [NSMutableArray arrayWithObject:unescaped]; - } else { - [result addObject:unescaped]; - } - i = termRange.location + termRange.length; - done = true; - } - } - } - - return result; -} - -- (NSString *)fieldWithPrefix:(NSString *)prefix { - return [self fieldWithPrefix:prefix terminator:@";"]; -} - -- (NSString *)fieldWithPrefix:(NSString *)prefix terminator:(NSString *)term { - NSArray *fields = [self fieldsWithPrefix:prefix terminator:term]; - if (fields.count == 0) { - return nil; - } else { - return [fields lastObject]; - } -} - -@end - - - -@implementation DoCoMoResultParser - -@end diff --git a/iphone/legacy/Barcodes_original/Classes/EmailAction.h b/iphone/legacy/Barcodes_original/Classes/EmailAction.h deleted file mode 100644 index 78e48e81e..000000000 --- a/iphone/legacy/Barcodes_original/Classes/EmailAction.h +++ /dev/null @@ -1,34 +0,0 @@ -// -// EmailAction.h -// ZXing -// -// Created by Christian Brunschen on 28/05/2008. -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import -#include "OpenUrlAction.h" - -@interface EmailAction : OpenUrlAction { - NSString *recipient; -} - -@property (nonatomic, copy) NSString *recipient; - -- (id)initWithRecipient:(NSString *)recipient subject:(NSString *)subject body:(NSString *)body; -+ (id)actionWithRecipient:(NSString *)recipient subject:(NSString *)subject body:(NSString *)body; - -@end diff --git a/iphone/legacy/Barcodes_original/Classes/EmailAction.m b/iphone/legacy/Barcodes_original/Classes/EmailAction.m deleted file mode 100644 index 2f4fb01c4..000000000 --- a/iphone/legacy/Barcodes_original/Classes/EmailAction.m +++ /dev/null @@ -1,68 +0,0 @@ -// -// EmailAction.m -// ZXing -// -// Created by Christian Brunschen on 28/05/2008. -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import "EmailAction.h" - -@implementation EmailAction - -@synthesize recipient; - -static NSURL *MailtoURL(NSString *to, NSString *sub, NSString *body) { - NSMutableString *result = [NSMutableString stringWithFormat:@"mailto:%@", - [to stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]]; - if (sub) { - [result appendFormat:@"&subject=%@", [sub stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]]; - } - if (body) { - [result appendFormat:@"&body=%@", [body stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]]; - } - return [NSURL URLWithString:result]; -} - -- (id)initWithRecipient:(NSString *)rec subject:(NSString *)subject body:(NSString *)body { - if ((self = [super initWithURL:MailtoURL(rec, subject, body)]) != nil) { - self.recipient = rec; - } - return self; -} - -+ (id)actionWithRecipient:(NSString *)recipient subject:(NSString *)subject body:(NSString *)body { - return [[[self alloc] initWithRecipient:recipient subject:subject body:body] autorelease]; -} - -- (NSString *)title { - return [NSString localizedStringWithFormat:NSLocalizedString(@"EmailAction action title", @"Email %@"), self.recipient]; -} - -- (NSString *)alertTitle { - return NSLocalizedString(@"EmailAction alert title", @"Compose Email"); -} - -- (NSString *)alertMessage { - return [NSString localizedStringWithFormat:NSLocalizedString(@"EmailAction alert message", @"Compose Email to %@?"), self.recipient]; -} - -- (NSString *)alertButtonTitle { - return NSLocalizedString(@"EmailAction alert button title", @"Compose"); -} - - -@end diff --git a/iphone/legacy/Barcodes_original/Classes/EmailDoCoMoResultParser.h b/iphone/legacy/Barcodes_original/Classes/EmailDoCoMoResultParser.h deleted file mode 100644 index 5d1b8304c..000000000 --- a/iphone/legacy/Barcodes_original/Classes/EmailDoCoMoResultParser.h +++ /dev/null @@ -1,29 +0,0 @@ -// -// EmailDoCoMoResultParser.h -// ZXing -// -// Created by Christian Brunschen on 25/06/2008. -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import -#import "DoCoMoResultParser.h" - -@interface EmailDoCoMoResultParser : DoCoMoResultParser { - -} - -@end diff --git a/iphone/legacy/Barcodes_original/Classes/EmailDoCoMoResultParser.m b/iphone/legacy/Barcodes_original/Classes/EmailDoCoMoResultParser.m deleted file mode 100644 index c62a473e9..000000000 --- a/iphone/legacy/Barcodes_original/Classes/EmailDoCoMoResultParser.m +++ /dev/null @@ -1,50 +0,0 @@ -// -// EmailDoCoMoResultParser.m -// ZXing -// -// Created by Christian Brunschen on 25/06/2008. -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import "EmailDoCoMoResultParser.h" -#import "EmailParsedResult.h" - -@implementation EmailDoCoMoResultParser - -+ (void)load { - [ResultParser registerResultParserClass:self]; -} - -+ (ParsedResult *)parsedResultForString:(NSString *)s { - NSRange foundRange = [s rangeOfString:@"MATMSG:"]; - if (foundRange.location == NSNotFound) { - return nil; - } - - NSString *to = [s fieldWithPrefix:@"TO:"]; - if (to == nil) { - return nil; - } - - EmailParsedResult *result = [[EmailParsedResult alloc] init]; - result.to = to; - result.subject = [s fieldWithPrefix:@"SUB:"]; - result.body = [s fieldWithPrefix:@"BODY:"]; - - return [result autorelease]; -} - -@end diff --git a/iphone/legacy/Barcodes_original/Classes/EmailParsedResult.h b/iphone/legacy/Barcodes_original/Classes/EmailParsedResult.h deleted file mode 100644 index 8378f529a..000000000 --- a/iphone/legacy/Barcodes_original/Classes/EmailParsedResult.h +++ /dev/null @@ -1,37 +0,0 @@ -// -// EmailDoCoMoParsedResult.h -// ZXing -// -// Created by Christian Brunschen on 28/05/2008. -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import -#import "ParsedResult.h" - -@interface EmailParsedResult : ParsedResult { - NSString *to; - NSString *subject; - NSString *body; -} - -@property (nonatomic, copy) NSString *to; -@property (nonatomic, copy) NSString *subject; -@property (nonatomic, copy) NSString *body; - -+ (bool) looksLikeAnEmailAddress:(NSString *)s; - -@end diff --git a/iphone/legacy/Barcodes_original/Classes/EmailParsedResult.m b/iphone/legacy/Barcodes_original/Classes/EmailParsedResult.m deleted file mode 100644 index d333cbac7..000000000 --- a/iphone/legacy/Barcodes_original/Classes/EmailParsedResult.m +++ /dev/null @@ -1,74 +0,0 @@ -// -// EmailDoCoMoParsedResult.m -// ZXing -// -// Created by Christian Brunschen on 28/05/2008. -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import "EmailParsedResult.h" -#import "EmailAction.h" - - -@implementation EmailParsedResult - -@synthesize to; -@synthesize subject; -@synthesize body; - -+ (bool) looksLikeAnEmailAddress:(NSString *)s { - if ([s rangeOfString:@"@"].location == NSNotFound) { - return false; - } - if ([s rangeOfString:@"."].location == NSNotFound) { - return false; - } - if ([s rangeOfCharacterFromSet:[NSCharacterSet whitespaceCharacterSet]].location != NSNotFound) { - return false; - } - return true; -} - - -- (NSString *)stringForDisplay { - NSMutableArray *parts = [[NSMutableArray alloc] initWithCapacity:10]; - [parts addObject:[NSString stringWithFormat:NSLocalizedString(@"EmailParsedResult Display: Recipient", @"To: %@"), self.to]]; - if (self.subject) { - [parts addObject:[NSString stringWithFormat:NSLocalizedString(@"EmailParsedResult Display: Subject", @"Subject: %@"), self.subject]]; - } - if (self.body) { - [parts addObject:@""]; - [parts addObject:[NSString stringWithFormat:NSLocalizedString(@"EmailParsedResult Display: Body", @"%@"), self.body]]; - } - return [parts componentsJoinedByString:@"\n"]; -} - -+ (NSString *)typeName { - return NSLocalizedString(@"EmailParsedResult type name", @"Email"); -} - -- (NSArray *)actions { - return [NSArray arrayWithObject:[EmailAction actionWithRecipient:self.to - subject:self.subject - body:self.body]]; -} - -- (UIImage *)icon { - return [UIImage imageNamed:@"email.png"]; -} - - -@end diff --git a/iphone/legacy/Barcodes_original/Classes/FormatReader.h b/iphone/legacy/Barcodes_original/Classes/FormatReader.h deleted file mode 100644 index 350a7a64f..000000000 --- a/iphone/legacy/Barcodes_original/Classes/FormatReader.h +++ /dev/null @@ -1,37 +0,0 @@ -// -// FormatReader.h -// -// Created by Dave MacLachlan on 2010-05-03. -/* - * Copyright 2010 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import -#import -#import -#import -#import - -@interface FormatReader : NSObject { - zxing::Reader *reader_; -} - -+ (void)registerFormatReader:(FormatReader *)formatReader; -+ (NSSet *)formatReaders; - -- (id)initWithReader:(zxing::Reader *)reader; -- (zxing::Ref)decode:(zxing::Ref)grayImage; - -@end diff --git a/iphone/legacy/Barcodes_original/Classes/FormatReader.mm b/iphone/legacy/Barcodes_original/Classes/FormatReader.mm deleted file mode 100644 index b1db6dc3f..000000000 --- a/iphone/legacy/Barcodes_original/Classes/FormatReader.mm +++ /dev/null @@ -1,62 +0,0 @@ -// -// FormatReader.mm -// -// Created by Dave MacLachlan on 2010-05-03. -/* - * Copyright 2010 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import "FormatReader.h" - -@implementation FormatReader - -static NSMutableSet *sFormatReaders = nil; - -+ (void)registerFormatReader:(FormatReader*)formatReader { - NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; - @synchronized(self) { - if (!sFormatReaders) { - sFormatReaders = [[NSMutableSet alloc] init]; - } - [sFormatReaders addObject:formatReader]; - } - [pool drain]; -} - -+ (NSSet *)formatReaders { - NSSet *formatReaders = nil; - @synchronized(self) { - formatReaders = [[sFormatReaders copy] autorelease]; - } - return formatReaders; -} - -- (id)initWithReader:(zxing::Reader *)reader { - if ((self = [super init])) { - reader_ = reader; - } - return self; -} - -- (void)dealloc { - delete reader_; - [super dealloc]; -} - -- (zxing::Ref)decode:(zxing::Ref)grayImage { - return reader_->decode(grayImage); -} - -@end diff --git a/iphone/legacy/Barcodes_original/Classes/GeoParsedResult.h b/iphone/legacy/Barcodes_original/Classes/GeoParsedResult.h deleted file mode 100644 index 4feb8802d..000000000 --- a/iphone/legacy/Barcodes_original/Classes/GeoParsedResult.h +++ /dev/null @@ -1,34 +0,0 @@ -// -// GeoParsedResult.h -// ZXing -// -// Created by Christian Brunschen on 05/06/2008. -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import -#import "ParsedResult.h" - -@interface GeoParsedResult : ParsedResult { - NSString *location; -} - -@property (nonatomic, copy) NSString *location; - -- (id)initWithLocation:(NSString *)location; - - -@end diff --git a/iphone/legacy/Barcodes_original/Classes/GeoParsedResult.m b/iphone/legacy/Barcodes_original/Classes/GeoParsedResult.m deleted file mode 100644 index 44ecfc8cc..000000000 --- a/iphone/legacy/Barcodes_original/Classes/GeoParsedResult.m +++ /dev/null @@ -1,59 +0,0 @@ -// -// GeoParsedResult.m -// ZXing -// -// Created by Christian Brunschen on 05/06/2008. -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import "GeoParsedResult.h" -#import "ShowMapAction.h" - -@implementation GeoParsedResult - -@synthesize location; - -- (id)initWithLocation:(NSString *)l { - if ((self = [super init]) != nil) { - self.location = l; - } - return self; -} - - -+ (NSString *)typeName { - return NSLocalizedString(@"GeoParsedResult type name", @"Geolocation"); -} - -- (UIImage *)icon { - return [UIImage imageNamed:@"map-pin.png"]; -} - - -- (NSString *)stringForDisplay { - return [NSString stringWithFormat:NSLocalizedString(@"GeoParsedResult display", @"Geo: %@"), self.location]; -} - -- (void)populateActions { - [actions addObject:[ShowMapAction actionWithLocation:self.location]]; -} - -- (void) dealloc { - [location release]; - [super dealloc]; -} - -@end diff --git a/iphone/legacy/Barcodes_original/Classes/GeoResultParser.h b/iphone/legacy/Barcodes_original/Classes/GeoResultParser.h deleted file mode 100644 index f91b3d412..000000000 --- a/iphone/legacy/Barcodes_original/Classes/GeoResultParser.h +++ /dev/null @@ -1,29 +0,0 @@ -// -// GeoResultParser.h -// ZXing -// -// Created by Christian Brunschen on 25/06/2008. -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import -#import "ResultParser.h" - -@interface GeoResultParser : ResultParser { - -} - -@end diff --git a/iphone/legacy/Barcodes_original/Classes/GeoResultParser.m b/iphone/legacy/Barcodes_original/Classes/GeoResultParser.m deleted file mode 100644 index 790983a00..000000000 --- a/iphone/legacy/Barcodes_original/Classes/GeoResultParser.m +++ /dev/null @@ -1,43 +0,0 @@ -// -// GeoResultParser.m -// ZXing -// -// Created by Christian Brunschen on 25/06/2008. -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import "GeoResultParser.h" -#import "GeoParsedResult.h" - -#define PREFIX @"geo:" - -@implementation GeoResultParser - -+ (void)load { - [ResultParser registerResultParserClass:self]; -} - -+ (ParsedResult *)parsedResultForString:(NSString *)s { - NSRange prefixRange = [s rangeOfString:PREFIX options:NSCaseInsensitiveSearch]; - if (prefixRange.location == 0) { - int restStart = prefixRange.location + prefixRange.length; - return [[[GeoParsedResult alloc] initWithLocation:[s substringFromIndex:restStart]] - autorelease]; - } - return nil; -} - -@end diff --git a/iphone/legacy/Barcodes_original/Classes/GrayBytesMonochromeBitmapSource.cpp b/iphone/legacy/Barcodes_original/Classes/GrayBytesMonochromeBitmapSource.cpp deleted file mode 100644 index 317919ad4..000000000 --- a/iphone/legacy/Barcodes_original/Classes/GrayBytesMonochromeBitmapSource.cpp +++ /dev/null @@ -1,50 +0,0 @@ -// -// GrayBytesMonochromeBitmapSource.cpp -// ZXing -// -// Created by Thomas Recloux, Norsys on 04/12/2009. -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include "GrayBytesMonochromeBitmapSource.h" -#include - - -GrayBytesMonochromeBitmapSource::GrayBytesMonochromeBitmapSource(const unsigned char *bytes, - int width, - int height, - int bytesPerRow) : - width_(width), - height_(height), - bytes_(bytes), - bytesPerRow_(bytesPerRow) { } - - -int GrayBytesMonochromeBitmapSource::getWidth() const{ - return width_; -} - -int GrayBytesMonochromeBitmapSource::getHeight() const { - return height_; -} - -unsigned char GrayBytesMonochromeBitmapSource::getPixel(int x, int y) const { -/* if (x >= width_ || y >= height_) { - throw new ReaderException("bitmap coordinate out of bounds"); - }*/ - int index = y * bytesPerRow_ + x; - return bytes_[index]; -} diff --git a/iphone/legacy/Barcodes_original/Classes/GrayBytesMonochromeBitmapSource.h b/iphone/legacy/Barcodes_original/Classes/GrayBytesMonochromeBitmapSource.h deleted file mode 100644 index 462118c22..000000000 --- a/iphone/legacy/Barcodes_original/Classes/GrayBytesMonochromeBitmapSource.h +++ /dev/null @@ -1,51 +0,0 @@ -// -// GrayBytesMonochromeBitmapSource.h -// ZXing -// -// Created by Thomas Recloux, Norsys on 04/12/2009. -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef __GRAY_BYTES_MONOCHROM_BITMAP_SOURCE_H__ -#define __GRAY_BYTES_MONOCHROM_BITMAP_SOURCE_H__ - -#include - -class GrayBytesMonochromeBitmapSource : public zxing::LuminanceSource { -private: - int width_; - int height_; - const unsigned char *bytes_; - int bytesPerRow_; - -public: - GrayBytesMonochromeBitmapSource(const unsigned char *bytes, - int width, - int height, - int bytesPerRow); - virtual ~GrayBytesMonochromeBitmapSource() { } - - virtual unsigned char getPixel(int x, int y) const; - - virtual int getWidth() const; - virtual int getHeight() const; - -private: - GrayBytesMonochromeBitmapSource(const GrayBytesMonochromeBitmapSource&); - GrayBytesMonochromeBitmapSource& operator=(const GrayBytesMonochromeBitmapSource&); -}; - -#endif // __GRAY_BYTES_MONOCHROM_BITMAP_SOURCE_H__ diff --git a/iphone/legacy/Barcodes_original/Classes/MeCardParser.h b/iphone/legacy/Barcodes_original/Classes/MeCardParser.h deleted file mode 100644 index 288159ea0..000000000 --- a/iphone/legacy/Barcodes_original/Classes/MeCardParser.h +++ /dev/null @@ -1,29 +0,0 @@ -// -// MeCardParser.h -// ZXing -// -// Created by Christian Brunschen on 25/06/2008. -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import -#import "DoCoMoResultParser.h" - -@interface MeCardParser : DoCoMoResultParser { - -} - -@end diff --git a/iphone/legacy/Barcodes_original/Classes/MeCardParser.m b/iphone/legacy/Barcodes_original/Classes/MeCardParser.m deleted file mode 100644 index 77d4e6df2..000000000 --- a/iphone/legacy/Barcodes_original/Classes/MeCardParser.m +++ /dev/null @@ -1,54 +0,0 @@ -// -// MeCardParser.m -// ZXing -// -// Created by Christian Brunschen on 25/06/2008. -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import "MeCardParser.h" -#import "BusinessCardParsedResult.h" - -@implementation MeCardParser - -+ (void)load { - [ResultParser registerResultParserClass:self]; -} - -+ (ParsedResult *)parsedResultForString:(NSString *)s { - NSRange foundRange = [s rangeOfString:@"MECARD:"]; - if (foundRange.location == NSNotFound) { - return nil; - } - - NSString *name = [s fieldWithPrefix:@"N:"]; - if (name == nil) { - return nil; - } - - BusinessCardParsedResult *result = [[BusinessCardParsedResult alloc] init]; - result.name = name; - result.phoneNumbers = [s fieldsWithPrefix:@"TEL:"]; - result.email = [s fieldWithPrefix:@"EMAIL:"]; - result.note = [s fieldWithPrefix:@"NOTE:"]; - result.urlString = [s fieldWithPrefix:@"URL:"]; - result.address = [s fieldWithPrefix:@"ADR:"]; - - return [result autorelease]; -} - - -@end diff --git a/iphone/legacy/Barcodes_original/Classes/MessageViewController.h b/iphone/legacy/Barcodes_original/Classes/MessageViewController.h deleted file mode 100644 index 348d0a44d..000000000 --- a/iphone/legacy/Barcodes_original/Classes/MessageViewController.h +++ /dev/null @@ -1,41 +0,0 @@ -// -// MessageViewController.h -// ZXing -// -// Created by Christian Brunschen on 30/07/2008. -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -@interface MessageViewController : UIViewController { - id callbackTarget; - SEL callbackSelectorSuccess; - SEL callbackSelectorFailure; - NSURL *contentURL; -} - -@property (nonatomic, retain) id callbackTarget; -@property (nonatomic, assign) SEL callbackSelectorSuccess; -@property (nonatomic, assign) SEL callbackSelectorFailure; - -@property (nonatomic, readonly) UIWebView *webView; - -@property (nonatomic, retain) NSURL *contentURL; - -- (id)initWithMessageFilename:(NSString *)filename target:(id)cbt onSuccess:(SEL)ss onFailure:(SEL)fs; - -@end diff --git a/iphone/legacy/Barcodes_original/Classes/MessageViewController.m b/iphone/legacy/Barcodes_original/Classes/MessageViewController.m deleted file mode 100644 index 886b60c0f..000000000 --- a/iphone/legacy/Barcodes_original/Classes/MessageViewController.m +++ /dev/null @@ -1,108 +0,0 @@ -// -// MessageViewController.m -// ZXing -// -// Created by Christian Brunschen on 30/07/2008. -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import "MessageViewController.h" - - -@implementation MessageViewController - -@synthesize callbackTarget; -@synthesize callbackSelectorSuccess; -@synthesize callbackSelectorFailure; -@synthesize contentURL; - -- (UIWebView *)webView { - return (UIWebView *)self.view; -} - -- (id)initWithMessageFilename:(NSString *)filename - target:(id)cbt - onSuccess:(SEL)ss - onFailure:(SEL)fs { - if ((self = [super initWithNibName:@"Message" bundle:nil])) { - self.callbackTarget = cbt; - self.callbackSelectorSuccess = ss; - self.callbackSelectorFailure = fs; - self.contentURL = [NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:filename - ofType:@"html"]]; - } - return self; -} - -- (void)loadView { - [super loadView]; - self.webView.delegate = self; - [self.webView loadRequest:[NSURLRequest requestWithURL:self.contentURL]]; -} - -- (void)viewDidLoad { - [super viewDidLoad]; -} - - -- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { - // Return YES for supported orientations - return (interfaceOrientation == UIInterfaceOrientationPortrait); -} - -- (void)didReceiveMemoryWarning { - [super didReceiveMemoryWarning]; // Releases the view if it doesn't have a superview - // Release anything that's not essential, such as cached data -} - - -- (void)dealloc { - [super dealloc]; -} - -// open a URL, asynchronously -- (void) openURL:(NSURL *)url { - [url autorelease]; - [[UIApplication sharedApplication] openURL:url]; -} - - -// UIWebViewDelegate methods - -- (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType { - if ([[request URL] isFileURL]) { - // only load 'file' URL requests ourselves - return true; - } else { - // any other url:s are handed off to the system - NSURL *url = [[request URL] retain]; - [self performSelectorOnMainThread:@selector(openURL:) withObject:url waitUntilDone:false]; - return false; - } -} - -- (void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error { - NSLog(@"failed to load content, performing failure callback"); - [self.callbackTarget performSelector:self.callbackSelectorFailure withObject:self afterDelay:0.0]; -} - -- (void)webViewDidFinishLoad:(UIWebView *)webView { - NSLog(@"finished loading content, performing success callback"); - [self.callbackTarget performSelector:self.callbackSelectorSuccess withObject:self afterDelay:0.0]; -} - - -@end diff --git a/iphone/legacy/Barcodes_original/Classes/MultiFormatReader.mm b/iphone/legacy/Barcodes_original/Classes/MultiFormatReader.mm deleted file mode 100644 index a1b8bf701..000000000 --- a/iphone/legacy/Barcodes_original/Classes/MultiFormatReader.mm +++ /dev/null @@ -1,40 +0,0 @@ -// -// MultiFormatReader.mm -// -// Created by Dave MacLachlan on 2010-05-03. -/* - * Copyright 2010 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import "FormatReader.h" -#import - -@interface MultiFormatReader : FormatReader -@end - -@implementation MultiFormatReader - -+ (void)load { - NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; - [FormatReader registerFormatReader:[[[self alloc] init] autorelease]]; - [pool drain]; -} - -- (id)init { - zxing::MultiFormatReader *reader = new zxing::MultiFormatReader(); - return [super initWithReader:reader]; -} - -@end diff --git a/iphone/legacy/Barcodes_original/Classes/NSString+HTML.h b/iphone/legacy/Barcodes_original/Classes/NSString+HTML.h deleted file mode 100644 index 52b6d6aff..000000000 --- a/iphone/legacy/Barcodes_original/Classes/NSString+HTML.h +++ /dev/null @@ -1,32 +0,0 @@ -// -// NSString+HTML.h -// ZXing -// -// Created by Christian Brunschen on 28/05/2008. -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - - -@interface NSString (HTMLExtensions) - -+ (NSDictionary *)htmlEscapes; -+ (NSDictionary *)htmlUnescapes; -- (NSString *)htmlEscapedString; -- (NSString *)htmlUnescapedString; - -@end diff --git a/iphone/legacy/Barcodes_original/Classes/NSString+HTML.m b/iphone/legacy/Barcodes_original/Classes/NSString+HTML.m deleted file mode 100644 index 98c45d43f..000000000 --- a/iphone/legacy/Barcodes_original/Classes/NSString+HTML.m +++ /dev/null @@ -1,70 +0,0 @@ -// -// NSString+HTML.m -// ZXing -// -// Created by Christian Brunschen on 28/05/2008. -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import "NSString+HTML.h" - - -@implementation NSString (HTMLExtensions) - -static NSDictionary *htmlEscapes = nil; -static NSDictionary *htmlUnescapes = nil; - -+ (NSDictionary *)htmlEscapes { - if (!htmlEscapes) { - htmlEscapes = [[NSDictionary alloc] initWithObjectsAndKeys: - @"&", @"&", - @"<", @"<", - @">", @">", - nil - ]; - } - return htmlEscapes; -} - -+ (NSDictionary *)htmlUnescapes { - if (!htmlUnescapes) { - htmlUnescapes = [[NSDictionary alloc] initWithObjectsAndKeys: - @"&", @"&", - @"<", @"<", - @">", @">", - nil - ]; - } - return htmlEscapes; -} - -static NSString *replaceAll(NSString *s, NSDictionary *replacements) { - for (NSString *key in replacements) { - NSString *replacement = [replacements objectForKey:key]; - s = [s stringByReplacingOccurrencesOfString:key withString:replacement]; - } - return s; -} - -- (NSString *)htmlEscapedString { - return replaceAll(self, [[self class] htmlEscapes]); -} - -- (NSString *)htmlUnescapedString { - return replaceAll(self, [[self class] htmlUnescapes]); -} - -@end diff --git a/iphone/legacy/Barcodes_original/Classes/OpenUrlAction.h b/iphone/legacy/Barcodes_original/Classes/OpenUrlAction.h deleted file mode 100644 index cc1e17bd8..000000000 --- a/iphone/legacy/Barcodes_original/Classes/OpenUrlAction.h +++ /dev/null @@ -1,42 +0,0 @@ -// -// OpenUrlAction.h -// ZXing -// -// Created by Christian Brunschen on 28/05/2008. -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import -#import "ResultAction.h" - -@interface OpenUrlAction : ResultAction { - NSURL *URL; -} - -@property(nonatomic, retain) NSURL *URL; - -- (id)initWithURL:(NSURL *)URL; -+ (id)actionWithURL:(NSURL *)URL; -- (void)openURL; - -- (NSString *)alertTitle; -- (NSString *)alertMessage; -- (NSString *)alertButtonTitle; - -// UIAlertViewDelegate -- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex; - -@end diff --git a/iphone/legacy/Barcodes_original/Classes/OpenUrlAction.m b/iphone/legacy/Barcodes_original/Classes/OpenUrlAction.m deleted file mode 100644 index f59da6072..000000000 --- a/iphone/legacy/Barcodes_original/Classes/OpenUrlAction.m +++ /dev/null @@ -1,82 +0,0 @@ -// -// OpenUrlAction.m -// ZXing -// -// Created by Christian Brunschen on 28/05/2008. -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import "OpenUrlAction.h" - - -@implementation OpenUrlAction - -@synthesize URL; - -- (id)initWithURL:(NSURL *)url { - if ((self = [super init]) != nil) { - self.URL = url; - } - return self; -} - -+ (id)actionWithURL:(NSURL *)URL { - return [[[self alloc] initWithURL:URL] autorelease]; -} - -- (NSString *)title { - return [NSString localizedStringWithFormat:NSLocalizedString(@"OpenURLAction action title", @"Open URL"), self.URL]; -} - -- (NSString *)alertTitle { - return NSLocalizedString(@"OpenURLAction alert title", @"Open URL"); -} - -- (NSString *)alertMessage { - return [NSString localizedStringWithFormat:NSLocalizedString(@"OpenURLAction alert message", @"Open URL <%@>?"), self.URL]; -} - -- (NSString *)alertButtonTitle { - return NSLocalizedString(@"OpenURLAction alert button title", @"Open"); -} - -- (void)performActionWithController:(UIViewController *)controller - shouldConfirm:(bool)shouldConfirm { - if (shouldConfirm) { - UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:nil - message:[self alertMessage] - delegate:self - cancelButtonTitle:NSLocalizedString(@"OpenURLAction cancel button title", @"Cancel") - otherButtonTitles:[self alertButtonTitle], nil]; - [alertView show]; - [alertView release]; - } else { - [self openURL]; - } -} - -- (void)openURL { - [[UIApplication sharedApplication] openURL:self.URL]; -} - -- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex { - if (buttonIndex != [alertView cancelButtonIndex]) { - // perform the action - [self openURL]; - } -} - -@end diff --git a/iphone/legacy/Barcodes_original/Classes/ParsedResult.h b/iphone/legacy/Barcodes_original/Classes/ParsedResult.h deleted file mode 100644 index 1a7566c21..000000000 --- a/iphone/legacy/Barcodes_original/Classes/ParsedResult.h +++ /dev/null @@ -1,35 +0,0 @@ -// -// ParsedResult.h -// ZXing -// -// Created by Christian Brunschen on 22/05/2008. -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -@interface ParsedResult : NSObject { - NSMutableArray *actions; -} - -+ (NSString *)typeName; - -- (NSString *)stringForDisplay; -- (UIImage *)icon; -- (NSArray *)actions; -- (void)populateActions; - -@end diff --git a/iphone/legacy/Barcodes_original/Classes/ParsedResult.m b/iphone/legacy/Barcodes_original/Classes/ParsedResult.m deleted file mode 100644 index 4d4494dbd..000000000 --- a/iphone/legacy/Barcodes_original/Classes/ParsedResult.m +++ /dev/null @@ -1,104 +0,0 @@ -// -// ParsedResult.m -// ZXing -// -// Created by Christian Brunschen on 22/05/2008. -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import "ParsedResult.h" - -#import "TextParsedResult.h" -#import "TelParsedResult.h" -#import "EmailParsedResult.h" -#import "BusinessCardParsedResult.h" -#import "URIParsedResult.h" -#import "GeoParsedResult.h" - -#import "UIKit/UIStringDrawing.h" -#import - -@implementation ParsedResult - -static NSMutableDictionary *iconsByClass = nil; - -+ (NSString *)typeName { - return NSStringFromClass(self); -} - -- (NSString *)stringForDisplay { - return @"{none}"; -} - -#define ICON_SIZE 40 -#define ICON_INSIDE 36 - -+ (UIImage *)icon { - if (iconsByClass == nil) { - iconsByClass = [[NSMutableDictionary alloc] initWithCapacity:16]; - } - UIImage *icon = [iconsByClass objectForKey:[self class]]; - if (icon == nil) { - UIGraphicsBeginImageContext(CGSizeMake(ICON_SIZE, ICON_SIZE)); - CGContextRef ctx = UIGraphicsGetCurrentContext(); - - [[UIColor lightGrayColor] set]; - UIRectFill(CGRectMake(0, 0, ICON_SIZE, ICON_SIZE)); - - [[UIColor blackColor] set]; - NSString *s = [[self class] typeName]; - UIFont *font = [UIFont systemFontOfSize:16]; - CGSize stringSize = [s sizeWithFont:font]; - float xScale = fminf(1.0, ICON_INSIDE / stringSize.width); - float yScale = fminf(1.0, ICON_INSIDE / stringSize.height); - - CGContextTranslateCTM(ctx, (ICON_SIZE / 2), (ICON_SIZE / 2)); - CGContextRotateCTM(ctx, -M_PI / 6.0); - CGContextScaleCTM(ctx, xScale, yScale); - CGContextTranslateCTM(ctx, - -(stringSize.width)/2.0, - -(stringSize.height)/2.0); - - [s drawAtPoint:CGPointMake(0, 0) withFont:font]; - - icon = [UIGraphicsGetImageFromCurrentImageContext() retain]; - [iconsByClass setObject:icon forKey:[self class]]; - UIGraphicsEndImageContext(); - } - return icon; -} - -- (UIImage *)icon { - return [[self class] icon]; -} - -- (NSArray *)actions { - if (!actions) { - actions = [[NSMutableArray alloc] init]; - [self populateActions]; - } - return actions; -} - -- (void) populateActions { -} - -- (void) dealloc { - [actions release]; - [super dealloc]; -} - -@end diff --git a/iphone/legacy/Barcodes_original/Classes/PlainEmailResultParser.h b/iphone/legacy/Barcodes_original/Classes/PlainEmailResultParser.h deleted file mode 100644 index a689f6460..000000000 --- a/iphone/legacy/Barcodes_original/Classes/PlainEmailResultParser.h +++ /dev/null @@ -1,30 +0,0 @@ -// -// PlainEmailResultParser.h -// ZXing -// -// Created by Christian Brunschen on 28/07/2008. -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import -#import "ResultParser.h" - - -@interface PlainEmailResultParser : ResultParser { - -} - -@end diff --git a/iphone/legacy/Barcodes_original/Classes/PlainEmailResultParser.m b/iphone/legacy/Barcodes_original/Classes/PlainEmailResultParser.m deleted file mode 100644 index 6c9078314..000000000 --- a/iphone/legacy/Barcodes_original/Classes/PlainEmailResultParser.m +++ /dev/null @@ -1,40 +0,0 @@ -// -// PlainEmailResultParser.m -// ZXing -// -// Created by Christian Brunschen on 28/07/2008. -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import "PlainEmailResultParser.h" -#import "EmailParsedResult.h" - -@implementation PlainEmailResultParser - -+ (void)load { - [ResultParser registerResultParserClass:self]; -} - -+ (ParsedResult *)parsedResultForString:(NSString *)s { - if ([EmailParsedResult looksLikeAnEmailAddress:s]) { - EmailParsedResult *result = [[[EmailParsedResult alloc] init] autorelease]; - [result setTo:s]; - return result; - } - return nil; -} - -@end diff --git a/iphone/legacy/Barcodes_original/Classes/QRCodeFormatReader.mm b/iphone/legacy/Barcodes_original/Classes/QRCodeFormatReader.mm deleted file mode 100644 index 2a10e020f..000000000 --- a/iphone/legacy/Barcodes_original/Classes/QRCodeFormatReader.mm +++ /dev/null @@ -1,42 +0,0 @@ -// -// QRCodeFormatReader.mm -// OTPAuth -// -// Created by Dave MacLachlan on 2010-05-03. -/* - * Copyright 2010 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import "FormatReader.h" - -#import - -@interface QRCodeFormatReader : FormatReader -@end - -@implementation QRCodeFormatReader - -+ (void)load { - NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; - [FormatReader registerFormatReader:[[[self alloc] init] autorelease]]; - [pool drain]; -} - -- (id)init { - zxing::qrcode::QRCodeReader *reader = new zxing::qrcode::QRCodeReader(); - return [super initWithReader:reader]; -} - -@end diff --git a/iphone/legacy/Barcodes_original/Classes/ResultAction.h b/iphone/legacy/Barcodes_original/Classes/ResultAction.h deleted file mode 100644 index 5a8e21466..000000000 --- a/iphone/legacy/Barcodes_original/Classes/ResultAction.h +++ /dev/null @@ -1,32 +0,0 @@ -// -// ResultAction.h -// ZXing -// -// Created by Christian Brunschen on 28/05/2008. -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -@interface ResultAction : NSObject { - -} - -- (NSString *)title; -- (void)performActionWithController:(UIViewController *)controller - shouldConfirm:(bool)confirm; - -@end diff --git a/iphone/legacy/Barcodes_original/Classes/ResultAction.m b/iphone/legacy/Barcodes_original/Classes/ResultAction.m deleted file mode 100644 index d0b61d362..000000000 --- a/iphone/legacy/Barcodes_original/Classes/ResultAction.m +++ /dev/null @@ -1,36 +0,0 @@ -// -// ResultAction.m -// ZXing -// -// Created by Christian Brunschen on 28/05/2008. -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import "ResultAction.h" - - -@implementation ResultAction - -- (NSString *)title { - return @"Abstract Action"; -} - -- (void)performActionWithController:(UIViewController *)controller - shouldConfirm:(bool)confirm { - NSLog(@"Abstract Action performed"); -} - -@end diff --git a/iphone/legacy/Barcodes_original/Classes/ResultParser.h b/iphone/legacy/Barcodes_original/Classes/ResultParser.h deleted file mode 100644 index 6651f73b6..000000000 --- a/iphone/legacy/Barcodes_original/Classes/ResultParser.h +++ /dev/null @@ -1,31 +0,0 @@ -// -// ResultParser.h -// ZXing -// -// Created by Christian Brunschen on 25/06/2008. -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import -#import "ParsedResult.h" - -@interface ResultParser : NSObject { - -} -+ (void)registerResultParserClass:(Class)resultParser; -+ (ParsedResult *)parsedResultForString:(NSString *)s; - -@end diff --git a/iphone/legacy/Barcodes_original/Classes/ResultParser.m b/iphone/legacy/Barcodes_original/Classes/ResultParser.m deleted file mode 100644 index 96a130a2d..000000000 --- a/iphone/legacy/Barcodes_original/Classes/ResultParser.m +++ /dev/null @@ -1,78 +0,0 @@ -// -// ResultParser.m -// ZXing -// -// Created by Christian Brunschen on 25/06/2008. -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import "ResultParser.h" - -@implementation ResultParser - -static NSMutableSet *sResultParsers = nil; - -+ (void)registerResultParserClass:(Class)resultParser { - NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; - @synchronized(self) { - if (!sResultParsers) { - sResultParsers = [[NSMutableSet alloc] init]; - } - [sResultParsers addObject:resultParser]; - } - [pool drain]; -} - -+ (NSSet *)resultParsers { - NSSet *resultParsers = nil; - @synchronized(self) { - resultParsers = [[sResultParsers copy] autorelease]; - } - return resultParsers; -} - -+ (ParsedResult *)parsedResultForString:(NSString *)s { -#ifdef DEBUG - NSLog(@"parsing result:\n<<<\n%@\n>>>\n", s); -#endif - - // Make the parser of last resort the last parser we try. - NSMutableArray *resultParsers = - [NSMutableArray arrayWithArray:[[self resultParsers] allObjects]]; - NSUInteger textIndex = - [resultParsers indexOfObject:NSClassFromString(@"TextResultParser")]; - if (NSNotFound != textIndex) { - // If it is present, make sure it is last. - [resultParsers exchangeObjectAtIndex:textIndex - withObjectAtIndex:[resultParsers count] - 1]; - } - - for (Class c in resultParsers) { -#ifdef DEBUG - NSLog(@"trying %@", NSStringFromClass(c)); -#endif - ParsedResult *result = [c parsedResultForString:s]; - if (result != nil) { -#ifdef DEBUG - NSLog(@"parsed as %@ %@", NSStringFromClass([result class]), result); -#endif - return result; - } - } - return nil; -} - -@end diff --git a/iphone/legacy/Barcodes_original/Classes/SMSAction.h b/iphone/legacy/Barcodes_original/Classes/SMSAction.h deleted file mode 100644 index 544867880..000000000 --- a/iphone/legacy/Barcodes_original/Classes/SMSAction.h +++ /dev/null @@ -1,34 +0,0 @@ -// -// SMSAction.h -// ZXing -// -// Created by Christian Brunschen on 16/06/2008. -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import -#import "CallAction.h" - -@interface SMSAction : CallAction { - NSString *body; -} - -@property (nonatomic, copy) NSString *body; - -+ actionWithNumber:(NSString *)number body:(NSString *)body; -+ actionWithNumber:(NSString *)number; - -@end diff --git a/iphone/legacy/Barcodes_original/Classes/SMSAction.m b/iphone/legacy/Barcodes_original/Classes/SMSAction.m deleted file mode 100644 index 14eba42af..000000000 --- a/iphone/legacy/Barcodes_original/Classes/SMSAction.m +++ /dev/null @@ -1,85 +0,0 @@ -// -// SMSAction.m -// ZXing -// -// Created by Christian Brunschen on 16/06/2008. -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import "SMSAction.h" - -// currently, including a message body makes the iPhone not actually -// go to compose an SMS at all, just start the SMS app. Bummer. -#ifdef SMS_URL_INCLUDE_BODY -#undef SMS_URL_INCLUDE_BODY -#endif - -@implementation SMSAction - -@synthesize body; - -+ (NSURL *)urlForNumber:(NSString *)number withBody:(NSString *)body { - NSString *urlString = -#ifdef SMS_URL_INCLUDE_BODY - (body && [body length]) ? - [NSString stringWithFormat:@"sms:%@?body=%@", number, [body stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]] : -#endif - [NSString stringWithFormat:@"sms:%@", number]; - return [NSURL URLWithString:urlString]; -} - -- initWithNumber:(NSString *)n body:(NSString *)b { - if ((self = [super initWithURL:[[self class] urlForNumber:n withBody:b]]) != nil) { - self.number = n; - self.body = b; - } - return self; -} - -- initWithNumber:(NSString *)n { - return [self initWithNumber:n body:nil]; -} - -+ actionWithNumber:(NSString *)number body:(NSString *)body { - return [[[self alloc] initWithNumber:number body:body] autorelease]; -} - -+ actionWithNumber:(NSString *)number { - return [self actionWithNumber:number body:nil]; -} - -- (NSString *)title { - return [NSString localizedStringWithFormat:NSLocalizedString(@"SMSAction action title", @"Compose SMS to %@"), self.number]; -} - -- (NSString *)alertTitle { - return NSLocalizedString(@"SMSAction alert title", @"Compose"); -} - -- (NSString *)alertMessage { - return [NSString localizedStringWithFormat:NSLocalizedString(@"SMSAction alert message", @"Compose SMS to %@?"), self.number]; -} - -- (NSString *)alertButtonTitle { - return NSLocalizedString(@"SMSAction alert button title", @"Compose"); -} - -- (void) dealloc { - [body release]; - [super dealloc]; -} - -@end diff --git a/iphone/legacy/Barcodes_original/Classes/SMSParsedResult.h b/iphone/legacy/Barcodes_original/Classes/SMSParsedResult.h deleted file mode 100644 index 3349d1b2c..000000000 --- a/iphone/legacy/Barcodes_original/Classes/SMSParsedResult.h +++ /dev/null @@ -1,36 +0,0 @@ -// -// SMSParsedResult.h -// ZXing -// -// Created by Christian Brunschen on 25/06/2008. -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import -#import "ParsedResult.h" - - -@interface SMSParsedResult : ParsedResult { - NSString *number; - NSString *body; -} - -@property (nonatomic, copy) NSString *number; -@property (nonatomic, copy) NSString *body; - -- (id)initWithNumber:(NSString *)n body:(NSString *)b; - -@end diff --git a/iphone/legacy/Barcodes_original/Classes/SMSParsedResult.m b/iphone/legacy/Barcodes_original/Classes/SMSParsedResult.m deleted file mode 100644 index ac2205bcb..000000000 --- a/iphone/legacy/Barcodes_original/Classes/SMSParsedResult.m +++ /dev/null @@ -1,65 +0,0 @@ -// -// SMSParsedResult.m -// ZXing -// -// Created by Christian Brunschen on 25/06/2008. -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import "SMSParsedResult.h" -#import "SMSAction.h" - -@implementation SMSParsedResult - -@synthesize number; -@synthesize body; - -- (id)initWithNumber:(NSString *)n body:(NSString *)b { - if ((self = [super init]) != nil) { - self.number = n; - self.body = b; - } - return self; -} - -- (NSString *)stringForDisplay { - if (self.body) { - return [NSString stringWithFormat:@"%@\n%@", self.number, self.body]; - } - return self.number; -} - - -+ (NSString *)typeName { - return NSLocalizedString(@"SMSParsedResult type name", @"SMS"); -} - -- (UIImage *)icon { - return [UIImage imageNamed:@"sms.png"]; -} - -- (void)populateActions { - [actions addObject:[SMSAction actionWithNumber:self.number body:self.body]]; -} - -- (void) dealloc { - [number release]; - [body release]; - [super dealloc]; -} - - -@end diff --git a/iphone/legacy/Barcodes_original/Classes/SMSResultParser.h b/iphone/legacy/Barcodes_original/Classes/SMSResultParser.h deleted file mode 100644 index d087edf4d..000000000 --- a/iphone/legacy/Barcodes_original/Classes/SMSResultParser.h +++ /dev/null @@ -1,29 +0,0 @@ -// -// SMSResultParser.h -// ZXing -// -// Created by Christian Brunschen on 25/06/2008. -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import -#import "ResultParser.h" - -@interface SMSResultParser : ResultParser { - -} - -@end diff --git a/iphone/legacy/Barcodes_original/Classes/SMSResultParser.m b/iphone/legacy/Barcodes_original/Classes/SMSResultParser.m deleted file mode 100644 index d6cf3e8e1..000000000 --- a/iphone/legacy/Barcodes_original/Classes/SMSResultParser.m +++ /dev/null @@ -1,78 +0,0 @@ -// -// SMSResultParser.m -// ZXing -// -// Created by Christian Brunschen on 25/06/2008. -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import "SMSResultParser.h" -#import "SMSParsedResult.h" - -#define PREFIX @"sms:" - -@implementation SMSResultParser - -+ (void)load { - [ResultParser registerResultParserClass:self]; -} - -+ (ParsedResult *)parsedResultForString:(NSString *)s { - NSRange prefixRange = [s rangeOfString:PREFIX options:NSCaseInsensitiveSearch]; - if (prefixRange.location == 0) { - int max = [s length]; - int restStart = prefixRange.location + prefixRange.length; - - // initial presuption: everything after the prefix is the number, and there is no body - NSRange numberRange = NSMakeRange(restStart, max - restStart); - NSRange bodyRange = NSMakeRange(NSNotFound, 0); - - // is there a query string? - NSRange queryRange = [s rangeOfString:@"?" options:0 range:numberRange]; - if (queryRange.location != NSNotFound) { - // truncate the number range at the beginning of the query string - numberRange.length = queryRange.location - numberRange.location; - - int paramsStart = queryRange.location + queryRange.length; - NSRange paramsRange = NSMakeRange(paramsStart, max - paramsStart); - NSRange bodyPrefixRange = [s rangeOfString:@"body=" options:0 range:paramsRange]; - if (bodyPrefixRange.location != NSNotFound) { - int bodyStart = bodyPrefixRange.location + bodyPrefixRange.length; - bodyRange = NSMakeRange(bodyStart, max - bodyStart); - NSRange ampRange = [s rangeOfString:@"&" options:0 range:bodyRange]; - if (ampRange.location != NSNotFound) { - // we found a '&', so we truncate the body range there - bodyRange.length = ampRange.location - bodyRange.location; - } - } - } - - // if there's a semicolon in the number, truncate the number there - NSRange semicolonRange = [s rangeOfString:@";" options:0 range:numberRange]; - if (semicolonRange.location != NSNotFound) { - numberRange.length = semicolonRange.location - numberRange.location; - } - - NSString *number = [s substringWithRange:numberRange]; - NSString *body = bodyRange.location != NSNotFound ? [s substringWithRange:bodyRange] : nil; - return [[[SMSParsedResult alloc] initWithNumber:number body:body] - autorelease]; - } - return nil; -} - - -@end diff --git a/iphone/legacy/Barcodes_original/Classes/SMSTOResultParser.h b/iphone/legacy/Barcodes_original/Classes/SMSTOResultParser.h deleted file mode 100644 index 43c7bc56d..000000000 --- a/iphone/legacy/Barcodes_original/Classes/SMSTOResultParser.h +++ /dev/null @@ -1,29 +0,0 @@ -// -// SMSTOResultParser.h -// ZXing -// -// Created by Christian Brunschen on 25/06/2008. -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import -#import "ResultParser.h" - -@interface SMSTOResultParser : ResultParser { - -} - -@end diff --git a/iphone/legacy/Barcodes_original/Classes/SMSTOResultParser.m b/iphone/legacy/Barcodes_original/Classes/SMSTOResultParser.m deleted file mode 100644 index a10a55c16..000000000 --- a/iphone/legacy/Barcodes_original/Classes/SMSTOResultParser.m +++ /dev/null @@ -1,57 +0,0 @@ -// -// SMSTOResultParser.m -// ZXing -// -// Created by Christian Brunschen on 25/06/2008. -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import "SMSTOResultParser.h" -#import "SMSParsedResult.h" - -#define PREFIX @"SMSTO:" - -@implementation SMSTOResultParser - -+ (void)load { - [ResultParser registerResultParserClass:self]; -} - -+ (ParsedResult *)parsedResultForString:(NSString *)s { - NSRange prefixRange = [s rangeOfString:PREFIX options:NSCaseInsensitiveSearch]; - if (prefixRange.location == 0) { - int max = [s length]; - int restStart = prefixRange.location + prefixRange.length; - NSRange searchRange = NSMakeRange(restStart, max - restStart); - NSRange colonRange = [s rangeOfString:@":" options:0 range:searchRange]; - if (colonRange.location != NSNotFound) { - NSRange numberRange = NSMakeRange(restStart, - colonRange.location - restStart); - int bodyStart = colonRange.location + colonRange.length; - NSRange bodyRange = NSMakeRange(bodyStart, max - bodyStart); - return [[[SMSParsedResult alloc] initWithNumber:[s substringWithRange:numberRange] - body:[s substringWithRange:bodyRange]] - autorelease]; - } else { - return [[[SMSParsedResult alloc] initWithNumber:[s substringFromIndex:restStart] - body:nil] - autorelease]; - } - } - return nil; -} - -@end diff --git a/iphone/legacy/Barcodes_original/Classes/Scan.h b/iphone/legacy/Barcodes_original/Classes/Scan.h deleted file mode 100644 index b96d9c95a..000000000 --- a/iphone/legacy/Barcodes_original/Classes/Scan.h +++ /dev/null @@ -1,37 +0,0 @@ -// -// Scan.h -// ZXing -// -// Created by Christian Brunschen on 29/05/2008. -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - - -@interface Scan : NSObject { - NSInteger ident; - NSString *text; - NSDate *stamp; -} - -@property NSInteger ident; -@property (nonatomic, copy) NSString *text; -@property (nonatomic, retain) NSDate *stamp; - -- (id)initWithIdent:(int)i text:(NSString *)t stamp:(NSDate *)s; - -@end diff --git a/iphone/legacy/Barcodes_original/Classes/Scan.m b/iphone/legacy/Barcodes_original/Classes/Scan.m deleted file mode 100644 index 6d7b29bf4..000000000 --- a/iphone/legacy/Barcodes_original/Classes/Scan.m +++ /dev/null @@ -1,40 +0,0 @@ -// -// Scan.m -// ZXing -// -// Created by Christian Brunschen on 29/05/2008. -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import "Scan.h" - - -@implementation Scan - -@synthesize ident; -@synthesize text; -@synthesize stamp; - -- (id)initWithIdent:(int)i text:(NSString *)t stamp:(NSDate *)s { - if ((self = [super init]) != nil) { - self.ident = i; - self.text = t; - self.stamp = s; - } - return self; -} - -@end diff --git a/iphone/legacy/Barcodes_original/Classes/ScanCell.h b/iphone/legacy/Barcodes_original/Classes/ScanCell.h deleted file mode 100644 index 0860c446c..000000000 --- a/iphone/legacy/Barcodes_original/Classes/ScanCell.h +++ /dev/null @@ -1,42 +0,0 @@ -// -// ScanCell.h -// ZXing -// -// Created by Christian Brunschen on 30/06/2008. -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -@class Scan; -@class ParsedResult; - -@interface ScanCell : UITableViewCell { - Scan *scan; - ParsedResult *result; - UIImageView *imageView; - UILabel *textView; - UILabel *dateView; - UILabel *timeView; -} - -@property (nonatomic, retain) Scan *scan; -@property (nonatomic, retain) UIImageView *imageView; -@property (nonatomic, retain) UILabel *textView; -@property (nonatomic, retain) UILabel *dateView; -@property (nonatomic, retain) UILabel *timeView; - -@end diff --git a/iphone/legacy/Barcodes_original/Classes/ScanCell.m b/iphone/legacy/Barcodes_original/Classes/ScanCell.m deleted file mode 100644 index 33eac8690..000000000 --- a/iphone/legacy/Barcodes_original/Classes/ScanCell.m +++ /dev/null @@ -1,175 +0,0 @@ -// -// ScanCell.m -// ZXing -// -// Created by Christian Brunschen on 30/06/2008. -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import "ScanCell.h" -#import "Scan.h" -#import "ParsedResult.h" -#import "ResultParser.h" - -static NSDateFormatter *_makeDateFormatter(NSDateFormatterStyle dateStyle, - NSDateFormatterStyle timeStyle) { - NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init]; - [dateFormatter setDateStyle:dateStyle]; - [dateFormatter setTimeStyle:timeStyle]; - return dateFormatter; -} - -static NSString *_dateString(NSDate *date) { - static NSDateFormatter *dateFormatter = nil; - if (!dateFormatter) { - dateFormatter = - _makeDateFormatter(NSDateFormatterShortStyle, NSDateFormatterNoStyle); - } - return [dateFormatter stringFromDate:date]; -} - -static NSString *_timeString(NSDate *date) { - static NSDateFormatter *timeFormatter = nil; - if (!timeFormatter) { - timeFormatter = - - _makeDateFormatter(NSDateFormatterNoStyle, NSDateFormatterShortStyle); - } - return [timeFormatter stringFromDate:date]; -} - -#define VIEW_PADDING 2.0 -#define IMAGE_SIZE 40.0 -#define EDITING_INSET 10.0 -#define CONTENT_HEIGHT (IMAGE_SIZE + 2.0 * VIEW_PADDING) -#define DATE_TIME_WIDTH 50.0 - -@implementation ScanCell - -@synthesize imageView; -@synthesize textView; -@synthesize dateView; -@synthesize timeView; - - -- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier { - if ((self = [super initWithStyle:style reuseIdentifier:reuseIdentifier])) { - imageView = [[UIImageView alloc] initWithFrame:CGRectZero]; - imageView.contentMode = UIViewContentModeCenter; - [self.contentView addSubview:imageView]; - - textView = [[UILabel alloc] initWithFrame:CGRectZero]; - textView.font = [UIFont boldSystemFontOfSize:[UIFont systemFontSize]]; - textView.textAlignment = UITextAlignmentLeft; - textView.textColor = [UIColor blackColor]; - [self.contentView addSubview:textView]; - - dateView = [[UILabel alloc] initWithFrame:CGRectZero]; - dateView.font = [UIFont systemFontOfSize:(2 * [UIFont systemFontSize]) / 3]; - dateView.textAlignment = UITextAlignmentRight; - dateView.textColor = [UIColor grayColor]; - [self.contentView addSubview:dateView]; - - timeView = [[UILabel alloc] initWithFrame:CGRectZero]; - timeView.font = [UIFont systemFontOfSize:(2 * [UIFont systemFontSize]) / 3]; - timeView.textAlignment = UITextAlignmentRight; - timeView.textColor = [UIColor grayColor]; - [self.contentView addSubview:timeView]; - } - return self; -} - -- (CGRect) _imageViewFrame { - CGRect frame = CGRectMake(VIEW_PADDING, VIEW_PADDING, IMAGE_SIZE, IMAGE_SIZE); - if (self.editing) { - frame.origin.x += EDITING_INSET; - } - return frame; -} - -- (CGRect) _textViewFrame { - CGRect frame = CGRectMake(2 * VIEW_PADDING + IMAGE_SIZE, VIEW_PADDING, self.contentView.bounds.size.width - IMAGE_SIZE - DATE_TIME_WIDTH - 3 * VIEW_PADDING, CONTENT_HEIGHT - 2 * VIEW_PADDING); - if (self.editing) { - frame.origin.x += EDITING_INSET; - frame.size.width += DATE_TIME_WIDTH + VIEW_PADDING - EDITING_INSET; - } - return frame; -} - -- (CGRect) _timeViewFrame { - float x = CGRectGetMaxX(self.contentView.bounds) - DATE_TIME_WIDTH - VIEW_PADDING; - CGRect frame = CGRectMake(x, VIEW_PADDING, DATE_TIME_WIDTH, (CONTENT_HEIGHT - 2 * VIEW_PADDING) / 2); - return frame; -} - -- (CGRect) _dateViewFrame { - float x = CGRectGetMaxX(self.contentView.bounds) - DATE_TIME_WIDTH - VIEW_PADDING; - CGRect frame = CGRectMake(x, (CONTENT_HEIGHT - 2 * VIEW_PADDING) / 2, DATE_TIME_WIDTH, (CONTENT_HEIGHT - 2 * VIEW_PADDING) / 2); - return frame; -} - - -- (void)layoutSubviews { - [super layoutSubviews]; - - [imageView setFrame:[self _imageViewFrame]]; - [textView setFrame:[self _textViewFrame]]; - [dateView setFrame:[self _dateViewFrame]]; - [timeView setFrame:[self _timeViewFrame]]; - if (self.editing) { - dateView.alpha = 0.0; - timeView.alpha = 0.0; - } else { - dateView.alpha = 1.0; - timeView.alpha = 1.0; - } -} - - - -- (void)setScan:(Scan *)newScan { - if (newScan != scan) { - [newScan retain]; - [scan release]; - scan = newScan; - [result release]; - result = [[ResultParser parsedResultForString:[scan text]] retain]; - - imageView.image = [result icon]; - textView.text = [result stringForDisplay]; - - NSDate *date = [scan stamp]; - dateView.text = _dateString(date); - timeView.text = _timeString(date); - } -} - -- (Scan *)scan { - return scan; -} - -- (void)dealloc { - [imageView release]; - [textView release]; - [dateView release]; - [timeView release]; - [scan release]; - [result release]; - [super dealloc]; -} - - -@end diff --git a/iphone/legacy/Barcodes_original/Classes/ScanViewController.h b/iphone/legacy/Barcodes_original/Classes/ScanViewController.h deleted file mode 100644 index 7a8eaafe4..000000000 --- a/iphone/legacy/Barcodes_original/Classes/ScanViewController.h +++ /dev/null @@ -1,39 +0,0 @@ -// -// ScanViewController.h -// ZXing -// -// Created by Christian Brunschen on 24/06/2008. -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import -#import "Scan.h" -#import "ParsedResult.h" - -@interface ScanViewController : UITableViewController { - IBOutlet ParsedResult *result; - IBOutlet Scan *scan; - UIFont *bodyFont; - NSDateFormatter *dateFormatter; -} - -@property (nonatomic, retain) ParsedResult *result; -@property (nonatomic, retain) Scan *scan; -@property (nonatomic, retain) NSDateFormatter *dateFormatter; - -- (id)initWithResult:(ParsedResult *)r forScan:(Scan *)s; - -@end diff --git a/iphone/legacy/Barcodes_original/Classes/ScanViewController.m b/iphone/legacy/Barcodes_original/Classes/ScanViewController.m deleted file mode 100644 index ee40cc92d..000000000 --- a/iphone/legacy/Barcodes_original/Classes/ScanViewController.m +++ /dev/null @@ -1,255 +0,0 @@ -// -// ScanViewController.m -// ZXing -// -// Created by Christian Brunschen on 24/06/2008. -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import "ScanViewController.h" -#import "ResultAction.h" - - -#define TEXT_VIEW_TAG 0x17 -#define DATETIME_VIEW_TAG 0x18 -#define BUTTON_LABEL_TAG 0x19 -#define TITLE_HEIGHT 44 -#define BODY_HEIGHT 88 - -@implementation ScanViewController - -@synthesize result; -@synthesize scan; -@synthesize dateFormatter; - -#define FONT_NAME @"TimesNewRomanPSMT" -#define FONT_SIZE 16 - -- (id)initWithResult:(ParsedResult *)r forScan:(Scan *)s { - if ((self = [super initWithStyle:UITableViewStyleGrouped])) { - self.result = r; - self.scan = s; - self.title = NSLocalizedString(@"ScanViewController title", @"Scan"); - dateFormatter = [[NSDateFormatter alloc] init]; - [dateFormatter setDateStyle:NSDateFormatterLongStyle]; - [dateFormatter setTimeStyle:NSDateFormatterLongStyle]; - bodyFont = [[UIFont fontWithName:FONT_NAME size:FONT_SIZE] retain]; - } - return self; -} - - -- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { - return [[result actions] count] ? 2 : 1; -} - - -- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { - switch (section) { - case 0: - return 3; - case 1: - return [[result actions] count]; - default: - return 0; - } -} - -- (UITableViewCell *)cellWithIdentifier:(NSString *)identifier inTableView:(UITableView *)tableView { - UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:identifier]; - if (cell == nil) { - cell = [[[UITableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier:identifier] autorelease]; - } - return cell; -} - -- (UITableViewCell *)titleCellInTableView:(UITableView *)tableView { - static NSString *TitleIdentifier = @"ScanViewTitleIdentifier"; - return [self cellWithIdentifier:TitleIdentifier inTableView:tableView]; -} - -- (UITableViewCell *)datetimeCellInTableView:(UITableView *)tableView { - static NSString *DatetimeIdentifier = @"ScanViewDatetimeIdentifier"; - UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:DatetimeIdentifier]; - if (cell == nil) { - cell = [[[UITableViewCell alloc] initWithFrame:CGRectMake(0, 0, 320, 34) reuseIdentifier:DatetimeIdentifier] autorelease]; - UILabel *label = [cell textLabel]; - label.font = [UIFont systemFontOfSize:[UIFont systemFontSize] * 2.0 / 3.0]; - label.textColor = [UIColor grayColor]; - label.textAlignment = UITextAlignmentCenter; - } - return cell; -} - -- (UITableViewCell *)bodyCellInTableView:(UITableView *)tableView { - static NSString *BodyIdentifier = @"ScanViewBodyIdentifier"; - UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:BodyIdentifier]; - if (cell == nil) { - cell = [[[UITableViewCell alloc] initWithFrame:CGRectMake(0, 0, 320, BODY_HEIGHT) reuseIdentifier:BodyIdentifier] autorelease]; - UITextView *textView = [[UITextView alloc] initWithFrame:CGRectInset(cell.contentView.bounds, 6, 6)]; - textView.font = bodyFont; - [textView setTag:TEXT_VIEW_TAG]; - textView.editable = NO; - [textView setAutoresizingMask:(UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight)]; - [cell.contentView addSubview:textView]; - [textView release]; - } - return cell; -} - -- (UITableViewCell *)buttonCellInTableView:(UITableView *)tableView { - static NSString *ButtonIdentifier = @"ScanViewButtonIdentifier"; - UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:ButtonIdentifier]; - if (cell == nil) { - cell = [[[UITableViewCell alloc] initWithFrame:CGRectMake(0, 0, 320, 44) reuseIdentifier:ButtonIdentifier] autorelease]; - UILabel *label = [[UILabel alloc] initWithFrame:CGRectInset(cell.contentView.bounds, 6, 6)]; - label.font = [UIFont boldSystemFontOfSize:[UIFont systemFontSize]]; - [label setTag:BUTTON_LABEL_TAG]; - label.lineBreakMode = UILineBreakModeMiddleTruncation; - label.textColor = [UIColor grayColor]; - label.textAlignment = UITextAlignmentCenter; - [label setAutoresizingMask:(UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight)]; - [cell.contentView addSubview:label]; - [label release]; - } - return cell; -} - -#define TEXT_VIEW_HEIGHT 330.0 - -- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath { - if (indexPath.section == 0) { - if (indexPath.row == 0) { - return TITLE_HEIGHT; - } else if (indexPath.row == 1) { - CGSize size = [[result stringForDisplay] sizeWithFont:bodyFont constrainedToSize:CGSizeMake(280.0, TEXT_VIEW_HEIGHT) lineBreakMode:UILineBreakModeWordWrap]; -#ifdef DEBUG - NSLog(@"text size = %f", size.height); -#endif - return fminf(TEXT_VIEW_HEIGHT, fmaxf(44, size.height + 24)); - } else if (indexPath.row == 2) { - return 24.0; - } - } - return tableView.rowHeight; -} - -- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { - UITableViewCell *cell; - - if (indexPath.section == 0) { - if (indexPath.row == 0) { - cell = [self titleCellInTableView:tableView]; - UIImageView *imageView = cell.imageView; - imageView.image = [result icon]; - UILabel *textLabel = cell.textLabel; - textLabel.text = [[result class] typeName]; - } else if (indexPath.row == 1) { - cell = [self bodyCellInTableView:tableView]; - UITextView *textView = (UITextView *)[cell viewWithTag:TEXT_VIEW_TAG]; - textView.text = [result stringForDisplay]; - } else if (indexPath.row == 2) { - cell = [self datetimeCellInTableView:tableView]; - UILabel *textLabel = cell.textLabel; - textLabel.text = [dateFormatter stringFromDate:[scan stamp]]; - } - } else if (indexPath.section == 1) { - cell = [self buttonCellInTableView:tableView]; - ResultAction *action = [[result actions] objectAtIndex:indexPath.row]; - UILabel *label = (UILabel *)[cell viewWithTag:BUTTON_LABEL_TAG]; - label.text = [action title]; - } - - return cell; -} - -- (void)performAction:(ResultAction *)action { - [action performActionWithController:self shouldConfirm:NO]; -} - -- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { - if (indexPath.section == 1) { - ResultAction *action = [[result actions] objectAtIndex:indexPath.row]; - [self performSelector:@selector(performAction:) withObject:action afterDelay:0.0]; - } -} - -/* -- (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath { - - if (editingStyle == UITableViewCellEditingStyleDelete) { - } - if (editingStyle == UITableViewCellEditingStyleInsert) { - } -} -*/ - -- (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath { - return NO; -} - -/* -- (void)tableView:(UITableView *)tableView moveRowAtIndexPath:(NSIndexPath *)fromIndexPath toIndexPath:(NSIndexPath *)toIndexPath { -} -*/ - -- (BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath *)indexPath { - return NO; -} - -- (NSIndexPath *)tableView:(UITableView *)tableView willSelectRowAtIndexPath:(NSIndexPath *)indexPath { - if (indexPath.section != 1) { - return nil; - } - return indexPath; -} - - -- (void)dealloc { - [result release]; - [scan release]; - [bodyFont release]; - [dateFormatter release]; - [super dealloc]; -} - - -- (void)viewDidLoad { - [super viewDidLoad]; -} - - -- (void)viewWillAppear:(BOOL)animated { - [super viewWillAppear:animated]; -} - -- (void)viewDidAppear:(BOOL)animated { - [super viewDidAppear:animated]; -} - -- (void)viewWillDisappear:(BOOL)animated { -} - -- (void)viewDidDisappear:(BOOL)animated { -} - -- (void)didReceiveMemoryWarning { - [super didReceiveMemoryWarning]; -} - - -@end - diff --git a/iphone/legacy/Barcodes_original/Classes/ScannedImageView.h b/iphone/legacy/Barcodes_original/Classes/ScannedImageView.h deleted file mode 100644 index 66fa4f834..000000000 --- a/iphone/legacy/Barcodes_original/Classes/ScannedImageView.h +++ /dev/null @@ -1,34 +0,0 @@ -// -// ScannedImageView.h -// ZXing -// -// Created by Christian Brunschen on 01/07/2008. -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - - -@interface ScannedImageView : UIView { - UIImage *image; - NSMutableArray *resultPoints; -} - -@property (nonatomic, retain) UIImage *image; - -- (void) addResultPoint:(CGPoint)p; - -@end diff --git a/iphone/legacy/Barcodes_original/Classes/ScannedImageView.m b/iphone/legacy/Barcodes_original/Classes/ScannedImageView.m deleted file mode 100644 index 494b89476..000000000 --- a/iphone/legacy/Barcodes_original/Classes/ScannedImageView.m +++ /dev/null @@ -1,118 +0,0 @@ -// -// ScannedImageView.m -// ZXing -// -// Created by Christian Brunschen on 01/07/2008. -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import "ScannedImageView.h" -#import - -@implementation ScannedImageView - -- (id)initWithFrame:(CGRect)frame { - if ((self = [super initWithFrame:frame])) { - resultPoints = [[NSMutableArray alloc] initWithCapacity:10]; - } - return self; -} - -- (id)initWithCoder:(NSCoder *)decoder { - if ((self = [super initWithCoder:decoder]) != nil) { - resultPoints = [[NSMutableArray alloc] initWithCapacity:10]; - } - return self; -} - -- (void)drawRect:(CGRect)rect { - [super drawRect:rect]; - - if (image) { - // draw the image, scaled to fit, top and center - CGSize imageSize = image.size; - CGRect bounds = [self bounds]; - double imageScale = fminf(bounds.size.width / imageSize.width, - bounds.size.height / imageSize.height); - double dx = (bounds.size.width - imageSize.width * imageScale) / 2.0; - double dy = 0.0; - - CGContextRef ctx = UIGraphicsGetCurrentContext(); - CGContextSetInterpolationQuality(ctx, kCGInterpolationDefault); - CGRect imageRect = CGRectMake(dx, dy, - imageSize.width * imageScale, - imageSize.height * imageScale); - [image drawInRect:imageRect]; - - [[UIColor greenColor] set]; - - if (resultPoints && [resultPoints count]) { -#define R 4.0 - if ([resultPoints count] == 2) { - CGPoint p0 = [[resultPoints objectAtIndex:0] CGPointValue]; - CGPoint p1 = [[resultPoints objectAtIndex:1] CGPointValue]; - CGContextMoveToPoint(ctx, dx + p0.x * imageScale, dy + p0.y * imageScale); - CGContextAddLineToPoint(ctx, dx + p1.x * imageScale, dy + p1.y * imageScale); - CGContextSetLineWidth(ctx, 4.0); - CGContextSetLineCap(ctx, kCGLineCapSquare); - CGContextStrokePath(ctx); - } else { - // for each resultPoint, draw it - for (NSValue *pointValue in resultPoints) { - CGPoint resultPoint = [pointValue CGPointValue]; - float px = dx + resultPoint.x * imageScale; - float py = dy + resultPoint.y * imageScale; - CGContextAddRect(ctx, - CGRectMake(px - R, py - R, 2 * R, 2 * R)); - } - CGContextFillPath(ctx); - } - CGContextFlush(ctx); -#undef R - } - } -} - -- (void) addResultPoint:(CGPoint)p { - [resultPoints addObject:[NSValue valueWithCGPoint:p]]; - [self setNeedsDisplay]; -} - -- (void) clearResultPoints { - [resultPoints removeAllObjects]; -} - -- (void) setImage:(UIImage *)newImage { - [newImage retain]; - [image release]; - image = newImage; - [self clearResultPoints]; - [self setNeedsDisplay]; -} - -- (UIImage *)image { - return image; -} - - -- (void)dealloc { - [image release]; - [resultPoints release]; - [super dealloc]; -} - - -@end diff --git a/iphone/legacy/Barcodes_original/Classes/ShowMapAction.h b/iphone/legacy/Barcodes_original/Classes/ShowMapAction.h deleted file mode 100644 index 3f3042332..000000000 --- a/iphone/legacy/Barcodes_original/Classes/ShowMapAction.h +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// -// ShowMapAction.h -// ZXing -// -// Created by Christian Brunschen on 05/06/2008. - -#import -#import "OpenUrlAction.h" - -@interface ShowMapAction : OpenUrlAction { - NSString *location; -} - -@property (nonatomic, copy) NSString *location; - -- (id)initWithLocation:(NSString *)location; -+ (id)actionWithLocation:(NSString *)location; - -@end diff --git a/iphone/legacy/Barcodes_original/Classes/ShowMapAction.m b/iphone/legacy/Barcodes_original/Classes/ShowMapAction.m deleted file mode 100644 index f3817a23f..000000000 --- a/iphone/legacy/Barcodes_original/Classes/ShowMapAction.m +++ /dev/null @@ -1,68 +0,0 @@ -// -// ShowMapAction.m -// ZXing -// -// Created by Christian Brunschen on 05/06/2008. -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import "ShowMapAction.h" - - -@implementation ShowMapAction - -@synthesize location; - -static NSURL * URLForLocation(NSString *location) { - NSString *urlString = [NSString stringWithFormat:@"http://maps.google.com/maps?q=%@", - [location stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]]; - return [NSURL URLWithString:urlString]; -} - -- (id)initWithLocation:(NSString *)l { - if ((self = [super initWithURL:URLForLocation(l)]) != nil) { - self.location = l; - } - return self; -} - -+ (id)actionWithLocation:(NSString *)location { - return [[[self alloc] initWithLocation:location] autorelease]; -} - -- (NSString *)title { - return NSLocalizedString(@"ShowMapAction action title", @"Show on Map"); -} - -- (NSString *)alertTitle { - return NSLocalizedString(@"ShowMapAction alert title", @"Show on Map"); -} - -- (NSString *)alertMessage { - return [NSString stringWithFormat:NSLocalizedString(@"ShowMapAction alert message", @"Show location %@ on Map ?"), self.location]; -} - -- (NSString *)alertButtonTitle { - return NSLocalizedString(@"ShowMapAction alert button title", @"Show"); -} - - -- (void)dealloc { - [location release]; - [super dealloc]; -} - -@end diff --git a/iphone/legacy/Barcodes_original/Classes/TelParsedResult.h b/iphone/legacy/Barcodes_original/Classes/TelParsedResult.h deleted file mode 100644 index 6d7789da8..000000000 --- a/iphone/legacy/Barcodes_original/Classes/TelParsedResult.h +++ /dev/null @@ -1,33 +0,0 @@ -// -// TelParsedResult.h -// ZXing -// -// Created by Christian Brunschen on 23/05/2008. -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import -#import "ParsedResult.h" - -@interface TelParsedResult : ParsedResult { - NSString *number; -} - -@property (nonatomic, copy) NSString *number; - -- (id)initWithNumber:(NSString *)n; - -@end diff --git a/iphone/legacy/Barcodes_original/Classes/TelParsedResult.m b/iphone/legacy/Barcodes_original/Classes/TelParsedResult.m deleted file mode 100644 index d43118910..000000000 --- a/iphone/legacy/Barcodes_original/Classes/TelParsedResult.m +++ /dev/null @@ -1,58 +0,0 @@ -// -// TelParsedResult.m -// ZXing -// -// Created by Christian Brunschen on 23/05/2008. -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import "TelParsedResult.h" -#import "CallAction.h" - -@implementation TelParsedResult - -@synthesize number; - -- (id)initWithNumber:(NSString *)n { - if ((self = [super init]) != nil) { - self.number = n; - } - return self; -} - -- (NSString *)stringForDisplay { - return self.number; -} - - -+ (NSString *)typeName { - return NSLocalizedString(@"TelParsedResult type name", @"Tel"); -} - -- (UIImage *)icon { - return [UIImage imageNamed:@"phone.png"]; -} - -- (void)populateActions { - [actions addObject:[CallAction actionWithNumber:self.number]]; -} - -- (void) dealloc { - [number release]; - [super dealloc]; -} - -@end diff --git a/iphone/legacy/Barcodes_original/Classes/TelResultParser.h b/iphone/legacy/Barcodes_original/Classes/TelResultParser.h deleted file mode 100644 index dd989fef5..000000000 --- a/iphone/legacy/Barcodes_original/Classes/TelResultParser.h +++ /dev/null @@ -1,29 +0,0 @@ -// -// TelResultParser.h -// ZXing -// -// Created by Christian Brunschen on 25/06/2008. -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import -#import "ResultParser.h" - -@interface TelResultParser : NSObject { - -} - -@end diff --git a/iphone/legacy/Barcodes_original/Classes/TelResultParser.m b/iphone/legacy/Barcodes_original/Classes/TelResultParser.m deleted file mode 100644 index 901221072..000000000 --- a/iphone/legacy/Barcodes_original/Classes/TelResultParser.m +++ /dev/null @@ -1,44 +0,0 @@ -// -// TelResultParser.m -// ZXing -// -// Created by Christian Brunschen on 25/06/2008. -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import "TelResultParser.h" -#import "TelParsedResult.h" - -#define PREFIX @"tel:" - -@implementation TelResultParser - -+ (void)load { - [ResultParser registerResultParserClass:self]; -} - -+ (ParsedResult *)parsedResultForString:(NSString *)s { - NSRange telRange = [s rangeOfString:PREFIX options:NSCaseInsensitiveSearch]; - if (telRange.location == 0) { - int restStart = telRange.location + telRange.length; - return [[[TelParsedResult alloc] initWithNumber:[s substringFromIndex:restStart]] - autorelease]; - } - return nil; -} - - -@end diff --git a/iphone/legacy/Barcodes_original/Classes/TextParsedResult.h b/iphone/legacy/Barcodes_original/Classes/TextParsedResult.h deleted file mode 100644 index c71610474..000000000 --- a/iphone/legacy/Barcodes_original/Classes/TextParsedResult.h +++ /dev/null @@ -1,34 +0,0 @@ -// -// TextParsedResult.h -// ZXing -// -// Created by Christian Brunschen on 23/05/2008. -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -#import "ParsedResult.h" - -@interface TextParsedResult : ParsedResult { - NSString *text; -} - -@property (nonatomic, copy) NSString *text; - -- (id)initWithString:(NSString *)s; - -@end diff --git a/iphone/legacy/Barcodes_original/Classes/TextParsedResult.m b/iphone/legacy/Barcodes_original/Classes/TextParsedResult.m deleted file mode 100644 index 1572456e0..000000000 --- a/iphone/legacy/Barcodes_original/Classes/TextParsedResult.m +++ /dev/null @@ -1,58 +0,0 @@ -// -// TextParsedResult.m -// ZXing -// -// Created by Christian Brunschen on 23/05/2008. -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import "TextParsedResult.h" -#import "EmailAction.h" - - -@implementation TextParsedResult - -@synthesize text; - -- (id)initWithString:(NSString *)s { - if ((self = [super init]) != nil) { - self.text = s; - } - return self; -} - -+ (NSString *)typeName { - return NSLocalizedString(@"TextParsedResult type name", @"Text"); -} - -- (UIImage *)icon { - return [UIImage imageNamed:@"text.png"]; -} - -- (NSString *)stringForDisplay { - return self.text; -} - -- (void) populateActions { - //[actions addObject:[EmailAction actionWithRecipient:@"recipient@domain" subject:@"QR Code Contents" body:text]]; -} - -- (void)dealloc { - [text release]; - [super dealloc]; -} - -@end diff --git a/iphone/legacy/Barcodes_original/Classes/TextResultParser.h b/iphone/legacy/Barcodes_original/Classes/TextResultParser.h deleted file mode 100644 index 3dc64adf4..000000000 --- a/iphone/legacy/Barcodes_original/Classes/TextResultParser.h +++ /dev/null @@ -1,30 +0,0 @@ -// -// TextResultParser.h -// ZXing -// -// Created by Christian Brunschen on 25/06/2008. -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import -#import "ResultParser.h" - - -@interface TextResultParser : ResultParser { - -} - -@end diff --git a/iphone/legacy/Barcodes_original/Classes/TextResultParser.m b/iphone/legacy/Barcodes_original/Classes/TextResultParser.m deleted file mode 100644 index fcc6cbe7b..000000000 --- a/iphone/legacy/Barcodes_original/Classes/TextResultParser.m +++ /dev/null @@ -1,36 +0,0 @@ -// -// TextResultParser.m -// ZXing -// -// Created by Christian Brunschen on 25/06/2008. -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import "TextResultParser.h" -#import "TextParsedResult.h" - -@implementation TextResultParser - -+ (void)load { - [ResultParser registerResultParserClass:self]; -} - -+ (ParsedResult *)parsedResultForString:(NSString *)s { - return [[[TextParsedResult alloc] initWithString:s] autorelease]; -} - - -@end diff --git a/iphone/legacy/Barcodes_original/Classes/TwoDDecoderResult.h b/iphone/legacy/Barcodes_original/Classes/TwoDDecoderResult.h deleted file mode 100644 index 62263eae1..000000000 --- a/iphone/legacy/Barcodes_original/Classes/TwoDDecoderResult.h +++ /dev/null @@ -1,35 +0,0 @@ -// -// TwoDDecoderResult.h -// ZXing -// -// Created by Christian Brunschen on 04/06/2008. -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -@interface TwoDDecoderResult : NSObject { - NSString *text; - NSArray *points; -} - -@property (nonatomic, copy) NSString *text; -@property (nonatomic, retain) NSArray *points; - -+ (id)resultWithText:(NSString *)text points:(NSArray *)points; -- (id)initWithText:(NSString *)text points:(NSArray *)points; - -@end diff --git a/iphone/legacy/Barcodes_original/Classes/TwoDDecoderResult.m b/iphone/legacy/Barcodes_original/Classes/TwoDDecoderResult.m deleted file mode 100644 index d83f66bd5..000000000 --- a/iphone/legacy/Barcodes_original/Classes/TwoDDecoderResult.m +++ /dev/null @@ -1,52 +0,0 @@ -// -// TwoDDecoderResult.m -// ZXing -// -// Created by Christian Brunschen on 04/06/2008. -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import "TwoDDecoderResult.h" - - -@implementation TwoDDecoderResult - -@synthesize text; -@synthesize points; - -+ (id)resultWithText:(NSString *)text points:(NSArray *)points { - return [[[self alloc] initWithText:text points:points] autorelease]; -} - -- (id)initWithText:(NSString *)t points:(NSArray *)p { - if ((self = [super init]) != nil) { - self.text = t; - self.points = p; - } - return self; -} - -- (void)dealloc { - [text release]; - [points release]; - [super dealloc]; -} - -- (NSString *)description { - return [NSString stringWithFormat:@"<%@: %p> %@", [self class], self, self.text]; -} - -@end diff --git a/iphone/legacy/Barcodes_original/Classes/URIParsedResult.h b/iphone/legacy/Barcodes_original/Classes/URIParsedResult.h deleted file mode 100644 index ae957e7dc..000000000 --- a/iphone/legacy/Barcodes_original/Classes/URIParsedResult.h +++ /dev/null @@ -1,45 +0,0 @@ -// -// URIParsedResult.h -// ZXing -// -// Created by Christian Brunschen on 29/05/2008. -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import -#import "ParsedResult.h" - -@interface NSString (ZXingURLExtensions) -- (bool) looksLikeAURI; -- (NSString *)massagedURLString; -@end - -@interface URIParsedResult : ParsedResult { - NSString *urlString; - NSString *title; - NSURL *URL; -} - -- (id)initWithURLString:(NSString *)s title:(NSString *)t URL:(NSURL *)ur; -- (id)initWithURLString:(NSString *)s title:(NSString *)t; -- (id)initWithURLString:(NSString *)s URL:(NSURL *)ur; -- (id)initWithURLString:(NSString *)s; - -@property (nonatomic, retain) NSString *urlString; -@property (nonatomic, retain) NSString *title; -@property (nonatomic, retain) NSURL *URL; - -@end diff --git a/iphone/legacy/Barcodes_original/Classes/URIParsedResult.m b/iphone/legacy/Barcodes_original/Classes/URIParsedResult.m deleted file mode 100644 index 0ab983322..000000000 --- a/iphone/legacy/Barcodes_original/Classes/URIParsedResult.m +++ /dev/null @@ -1,87 +0,0 @@ -// -// URIParsedResult.m -// ZXing -// -// Created by Christian Brunschen on 29/05/2008. -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import "URIParsedResult.h" -#import "OpenUrlAction.h" -#import "EmailAction.h" -#import "SMSAction.h" - - -@implementation URIParsedResult - -@synthesize urlString; -@synthesize title; -@synthesize URL; - -- (ResultAction *)createAction { - return [OpenUrlAction actionWithURL:self.URL]; -} - -- (id)initWithURLString:(NSString *)s title:(NSString *)t URL:(NSURL *)url { - if ((self = [super init]) != nil) { - self.urlString = s; - self.title = t; - self.URL = url; - } - return self; -} - -- (id)initWithURLString:(NSString *)s URL:(NSURL *)url { - return [self initWithURLString:s title:nil URL:url]; -} - -- (id)initWithURLString:(NSString *)s title:(NSString *)t { - return [self initWithURLString:s title:t URL:[NSURL URLWithString:s]]; -} - -- (id)initWithURLString:(NSString *)s { - return [self initWithURLString:s title:nil URL:[NSURL URLWithString:s]]; -} - -- (NSString *)stringForDisplay { - return self.title ? - [NSString stringWithFormat:@"%@ <%@>", self.title, self.urlString] : - self.urlString; -} - -+ (NSString *)typeName { - return NSLocalizedString(@"URIParsedResult type name", @"URI"); -} - -- (UIImage *)icon { - return [UIImage imageNamed:@"link2.png"]; -} - -- (void)populateActions { -#ifdef DEBUG - NSLog(@"creating action to open URL '%@'", self.urlString); -#endif - - [actions addObject:[self createAction]]; -} - -- (void)dealloc { - [URL release]; - [urlString release]; - [super dealloc]; -} - -@end diff --git a/iphone/legacy/Barcodes_original/Classes/URLResultParser.h b/iphone/legacy/Barcodes_original/Classes/URLResultParser.h deleted file mode 100644 index 9cff23315..000000000 --- a/iphone/legacy/Barcodes_original/Classes/URLResultParser.h +++ /dev/null @@ -1,30 +0,0 @@ -// -// URIResultParser.h -// ZXing -// -// Created by Christian Brunschen on 25/06/2008. -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import -#import "ResultParser.h" - - -@interface URLResultParser : ResultParser { - -} - -@end diff --git a/iphone/legacy/Barcodes_original/Classes/URLResultParser.m b/iphone/legacy/Barcodes_original/Classes/URLResultParser.m deleted file mode 100644 index df93f19dc..000000000 --- a/iphone/legacy/Barcodes_original/Classes/URLResultParser.m +++ /dev/null @@ -1,80 +0,0 @@ -// -// URIResultParser.m -// ZXing -// -// Created by Christian Brunschen on 25/06/2008. -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import "URLResultParser.h" -#import "URIParsedResult.h" - -@implementation NSString (ZXingURLExtensions) - -- (bool)looksLikeAURI { - if ([self rangeOfCharacterFromSet:[NSCharacterSet whitespaceCharacterSet]].location != NSNotFound) { - return false; - } - if ([self rangeOfString:@":"].location == NSNotFound) { - return false; - } - return true; -} - -- (NSString *)massagedURLString { - NSRange colonRange = [self rangeOfString:@":"]; - if (colonRange.location == NSNotFound) { - return [NSString stringWithFormat:@"http://%@", self]; - } else { - return [NSString stringWithFormat:@"%@%@", - [[self substringToIndex:colonRange.location] lowercaseString], - [self substringFromIndex:colonRange.location] - ]; - } -} - -@end - - -#define PREFIX @"URL:" - -@implementation URLResultParser - -+ (void)load { - [ResultParser registerResultParserClass:self]; -} - -+ (ParsedResult *)parsedResultForString:(NSString *)s { - NSRange prefixRange = [s rangeOfString:PREFIX options:NSCaseInsensitiveSearch]; - if (prefixRange.location == 0) { - int restStart = prefixRange.location + prefixRange.length; - return [[[URIParsedResult alloc] initWithURLString:[[s substringFromIndex:restStart] massagedURLString]] - autorelease]; - } - - if ([s looksLikeAURI]) { - NSString *massaged = [s massagedURLString]; - NSURL *url = [NSURL URLWithString:massaged]; - if (url != nil) { - return [[[URIParsedResult alloc] initWithURLString:massaged URL:url] autorelease]; - } - } - - return nil; -} - - -@end diff --git a/iphone/legacy/Barcodes_original/Classes/URLTOResultParser.h b/iphone/legacy/Barcodes_original/Classes/URLTOResultParser.h deleted file mode 100644 index 3419acfe3..000000000 --- a/iphone/legacy/Barcodes_original/Classes/URLTOResultParser.h +++ /dev/null @@ -1,29 +0,0 @@ -// -// URLTOResultParser.h -// ZXing -// -// Created by Christian Brunschen on 25/06/2008. -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import -#import "ResultParser.h" - -@interface URLTOResultParser : ResultParser { - -} - -@end diff --git a/iphone/legacy/Barcodes_original/Classes/URLTOResultParser.m b/iphone/legacy/Barcodes_original/Classes/URLTOResultParser.m deleted file mode 100644 index 73f2fc0b8..000000000 --- a/iphone/legacy/Barcodes_original/Classes/URLTOResultParser.m +++ /dev/null @@ -1,54 +0,0 @@ -// -// URLTOResultParser.m -// ZXing -// -// Created by Christian Brunschen on 25/06/2008. -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import "URLTOResultParser.h" -#import "URIParsedResult.h" - -#define PREFIX @"URLTO:" - -@implementation URLTOResultParser - -+ (void)load { - [ResultParser registerResultParserClass:self]; -} - -+ (ParsedResult *)parsedResultForString:(NSString *)s { - NSRange prefixRange = [s rangeOfString:PREFIX options:NSCaseInsensitiveSearch]; - if (prefixRange.location == 0) { - int max = [s length]; - int titleStart = prefixRange.location + prefixRange.length; - NSRange searchRange = NSMakeRange(titleStart, max - titleStart); - NSRange colonRange = [s rangeOfString:@":" options:0 range:searchRange]; - if (colonRange.location != NSNotFound) { - NSRange titleRange = NSMakeRange(titleStart, - colonRange.location - titleStart); - int linkStart = colonRange.location + colonRange.length; - NSRange linkRange = NSMakeRange(linkStart, max - linkStart); - return [[[URIParsedResult alloc] initWithURLString:[s substringWithRange:linkRange] - title:[s substringWithRange:titleRange]] - autorelease]; - } - } - return nil; -} - - -@end diff --git a/iphone/legacy/Barcodes_original/Classes/ZXingAppDelegate.h b/iphone/legacy/Barcodes_original/Classes/ZXingAppDelegate.h deleted file mode 100644 index e8199984a..000000000 --- a/iphone/legacy/Barcodes_original/Classes/ZXingAppDelegate.h +++ /dev/null @@ -1,38 +0,0 @@ -// -// ZXingAppDelegate.h -// ZXing -// -// Created by Christian Brunschen on 23/04/2008. -// -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -@class DecoderViewController; - -@interface ZXingAppDelegate : NSObject { - IBOutlet UIWindow *window; - DecoderViewController *viewController; - UINavigationController *navigationController; -} - -@property (nonatomic, retain) UIWindow *window; -@property (nonatomic, retain) DecoderViewController *viewController; -@property (nonatomic, retain) UINavigationController *navigationController; - -@end - diff --git a/iphone/legacy/Barcodes_original/Classes/ZXingAppDelegate.m b/iphone/legacy/Barcodes_original/Classes/ZXingAppDelegate.m deleted file mode 100644 index df3cb5f9f..000000000 --- a/iphone/legacy/Barcodes_original/Classes/ZXingAppDelegate.m +++ /dev/null @@ -1,70 +0,0 @@ -// -// ZXingAppDelegate.m -// ZXing -// -// Created by Christian Brunschen on 23/04/2008. -// -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -#import "ZXingAppDelegate.h" -#import "DecoderViewController.h" - -@implementation ZXingAppDelegate - -@synthesize window; -@synthesize viewController; -@synthesize navigationController; - -- (void)applicationDidFinishLaunching:(UIApplication *)application { - /* create the view controller */ - DecoderViewController *vc = - [[DecoderViewController alloc] initWithNibName:@"DecoderView" - bundle:[NSBundle mainBundle]]; - self.viewController = vc; - [vc release]; - - navigationController = [[UINavigationController alloc] - initWithRootViewController:viewController]; - - // hook up the view controller's view to be in the window - [window addSubview:navigationController.view]; - - // show the window - [window makeKeyAndVisible]; - - // pick and decode using the first available source type in priority order - UIImagePickerControllerSourceType sourceTypes[] = { - UIImagePickerControllerSourceTypeCamera, - UIImagePickerControllerSourceTypeSavedPhotosAlbum, - UIImagePickerControllerSourceTypePhotoLibrary - }; - - for (int i = 0; i < sizeof(sourceTypes) / sizeof(*sourceTypes); i++) { - if ([UIImagePickerController isSourceTypeAvailable:sourceTypes[i]]) { - [viewController pickAndDecodeFromSource:sourceTypes[i]]; - break; - } - } -} - -- (void)dealloc { - [window release]; - [super dealloc]; -} - -@end diff --git a/iphone/legacy/Barcodes_original/Default.png b/iphone/legacy/Barcodes_original/Default.png deleted file mode 100644 index e7ebf3f76..000000000 Binary files a/iphone/legacy/Barcodes_original/Default.png and /dev/null differ diff --git a/iphone/legacy/Barcodes_original/Entitlements.plist b/iphone/legacy/Barcodes_original/Entitlements.plist deleted file mode 100644 index ce373e19b..000000000 --- a/iphone/legacy/Barcodes_original/Entitlements.plist +++ /dev/null @@ -1,8 +0,0 @@ - - - - - get-task-allow - - - diff --git a/iphone/legacy/Barcodes_original/Info.plist b/iphone/legacy/Barcodes_original/Info.plist deleted file mode 100644 index d36bee323..000000000 --- a/iphone/legacy/Barcodes_original/Info.plist +++ /dev/null @@ -1,30 +0,0 @@ - - - - - CFBundleDevelopmentRegion - en - CFBundleDisplayName - ${PRODUCT_NAME} - CFBundleExecutable - ${EXECUTABLE_NAME} - CFBundleIconFile - icon - CFBundleIdentifier - com.googlecode.zxing.${PRODUCT_NAME:identifier} - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - ${PRODUCT_NAME} - CFBundlePackageType - APPL - CFBundleSignature - CBRU - CFBundleVersion - 1.0.1 - LSRequiresIPhoneOS - - NSMainNibFile - MainWindow - - diff --git a/iphone/legacy/Barcodes_original/README b/iphone/legacy/Barcodes_original/README deleted file mode 100644 index 839381689..000000000 --- a/iphone/legacy/Barcodes_original/README +++ /dev/null @@ -1 +0,0 @@ -THis projects contains code of original iPhone app of zxing project. As of May 2010 there is not much activity on it and the focus is on ZXingWidget and ScanTest instead \ No newline at end of file diff --git a/iphone/legacy/Barcodes_original/ZXing.xcodeproj/project.pbxproj b/iphone/legacy/Barcodes_original/ZXing.xcodeproj/project.pbxproj deleted file mode 100755 index 08e57d344..000000000 --- a/iphone/legacy/Barcodes_original/ZXing.xcodeproj/project.pbxproj +++ /dev/null @@ -1,2126 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 45; - objects = { - -/* Begin PBXAggregateTarget section */ - 856C25780E1BC767006ABF00 /* Build All */ = { - isa = PBXAggregateTarget; - buildConfigurationList = 856C25830E1BC77E006ABF00 /* Build configuration list for PBXAggregateTarget "Build All" */; - buildPhases = ( - ); - dependencies = ( - 856C257C0E1BC76C006ABF00 /* PBXTargetDependency */, - ); - name = "Build All"; - productName = "Build All"; - }; - 856C257D0E1BC779006ABF00 /* Test All */ = { - isa = PBXAggregateTarget; - buildConfigurationList = 856C25840E1BC77E006ABF00 /* Build configuration list for PBXAggregateTarget "Test All" */; - buildPhases = ( - 856EABB80E1CE9FF00B2E1C7 /* ShellScript */, - ); - dependencies = ( - 856EABB50E1CE98600B2E1C7 /* PBXTargetDependency */, - ); - name = "Test All"; - productName = "Test All"; - }; -/* End PBXAggregateTarget section */ - -/* Begin PBXBuildFile section */ - 1D60589B0D05DD56006BFB54 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 29B97316FDCFA39411CA2CEA /* main.m */; }; - 1D60589F0D05DD5A006BFB54 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1D30AB110D05D00D00671497 /* Foundation.framework */; }; - 1DF5F4E00D08C38300B7A737 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */; }; - 1FB434D312904344002D63E8 /* BarcodeFormat.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1FB4343D12904343002D63E8 /* BarcodeFormat.cpp */; }; - 1FB434D412904344002D63E8 /* Binarizer.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1FB4343F12904343002D63E8 /* Binarizer.cpp */; }; - 1FB434D512904344002D63E8 /* BinaryBitmap.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1FB4344112904343002D63E8 /* BinaryBitmap.cpp */; }; - 1FB434D612904344002D63E8 /* Array.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1FB4344412904343002D63E8 /* Array.cpp */; }; - 1FB434D712904344002D63E8 /* BitArray.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1FB4344612904343002D63E8 /* BitArray.cpp */; }; - 1FB434D812904344002D63E8 /* BitMatrix.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1FB4344812904343002D63E8 /* BitMatrix.cpp */; }; - 1FB434D912904344002D63E8 /* BitSource.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1FB4344A12904343002D63E8 /* BitSource.cpp */; }; - 1FB434DA12904344002D63E8 /* Counted.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1FB4344C12904343002D63E8 /* Counted.cpp */; }; - 1FB434DB12904344002D63E8 /* DecoderResult.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1FB4344E12904343002D63E8 /* DecoderResult.cpp */; }; - 1FB434DC12904344002D63E8 /* DetectorResult.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1FB4345012904343002D63E8 /* DetectorResult.cpp */; }; - 1FB434DD12904344002D63E8 /* EdgeDetector.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1FB4345212904343002D63E8 /* EdgeDetector.cpp */; }; - 1FB434DE12904344002D63E8 /* GlobalHistogramBinarizer.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1FB4345412904343002D63E8 /* GlobalHistogramBinarizer.cpp */; }; - 1FB434DF12904344002D63E8 /* GreyscaleLuminanceSource.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1FB4345612904343002D63E8 /* GreyscaleLuminanceSource.cpp */; }; - 1FB434E012904344002D63E8 /* GreyscaleRotatedLuminanceSource.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1FB4345812904343002D63E8 /* GreyscaleRotatedLuminanceSource.cpp */; }; - 1FB434E112904344002D63E8 /* GridSampler.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1FB4345A12904343002D63E8 /* GridSampler.cpp */; }; - 1FB434E212904344002D63E8 /* HybridBinarizer.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1FB4345C12904343002D63E8 /* HybridBinarizer.cpp */; }; - 1FB434E312904344002D63E8 /* IllegalArgumentException.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1FB4345E12904343002D63E8 /* IllegalArgumentException.cpp */; }; - 1FB434E412904344002D63E8 /* PerspectiveTransform.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1FB4346012904343002D63E8 /* PerspectiveTransform.cpp */; }; - 1FB434E512904344002D63E8 /* GF256.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1FB4346412904343002D63E8 /* GF256.cpp */; }; - 1FB434E612904344002D63E8 /* GF256Poly.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1FB4346612904343002D63E8 /* GF256Poly.cpp */; }; - 1FB434E712904344002D63E8 /* ReedSolomonDecoder.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1FB4346812904343002D63E8 /* ReedSolomonDecoder.cpp */; }; - 1FB434E812904344002D63E8 /* ReedSolomonException.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1FB4346A12904343002D63E8 /* ReedSolomonException.cpp */; }; - 1FB434E912904344002D63E8 /* Str.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1FB4346C12904343002D63E8 /* Str.cpp */; }; - 1FB434EA12904344002D63E8 /* DataMatrixReader.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1FB4346F12904343002D63E8 /* DataMatrixReader.cpp */; }; - 1FB434EB12904344002D63E8 /* BitMatrixParser.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1FB4347212904343002D63E8 /* BitMatrixParser.cpp */; }; - 1FB434EC12904344002D63E8 /* DataBlock.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1FB4347412904343002D63E8 /* DataBlock.cpp */; }; - 1FB434ED12904344002D63E8 /* DecodedBitStreamParser.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1FB4347612904343002D63E8 /* DecodedBitStreamParser.cpp */; }; - 1FB434EE12904344002D63E8 /* Decoder.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1FB4347812904343002D63E8 /* Decoder.cpp */; }; - 1FB434EF12904344002D63E8 /* CornerPoint.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1FB4347B12904343002D63E8 /* CornerPoint.cpp */; }; - 1FB434F012904344002D63E8 /* Detector.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1FB4347D12904343002D63E8 /* Detector.cpp */; }; - 1FB434F112904344002D63E8 /* MonochromeRectangleDetector.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1FB4347F12904343002D63E8 /* MonochromeRectangleDetector.cpp */; }; - 1FB434F212904344002D63E8 /* Version.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1FB4348112904343002D63E8 /* Version.cpp */; }; - 1FB434F312904344002D63E8 /* DecodeHints.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1FB4348312904343002D63E8 /* DecodeHints.cpp */; }; - 1FB434F412904344002D63E8 /* Exception.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1FB4348512904343002D63E8 /* Exception.cpp */; }; - 1FB434F512904344002D63E8 /* LuminanceSource.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1FB4348712904343002D63E8 /* LuminanceSource.cpp */; }; - 1FB434F612904344002D63E8 /* MultiFormatReader.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1FB4348912904343002D63E8 /* MultiFormatReader.cpp */; }; - 1FB434F712904344002D63E8 /* Code128Reader.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1FB4348C12904343002D63E8 /* Code128Reader.cpp */; }; - 1FB434F812904344002D63E8 /* Code39Reader.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1FB4348E12904343002D63E8 /* Code39Reader.cpp */; }; - 1FB434F912904344002D63E8 /* EAN13Reader.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1FB4349012904343002D63E8 /* EAN13Reader.cpp */; }; - 1FB434FA12904344002D63E8 /* EAN8Reader.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1FB4349212904343002D63E8 /* EAN8Reader.cpp */; }; - 1FB434FB12904344002D63E8 /* ITFReader.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1FB4349412904343002D63E8 /* ITFReader.cpp */; }; - 1FB434FC12904344002D63E8 /* MultiFormatOneDReader.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1FB4349612904343002D63E8 /* MultiFormatOneDReader.cpp */; }; - 1FB434FD12904344002D63E8 /* MultiFormatUPCEANReader.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1FB4349812904343002D63E8 /* MultiFormatUPCEANReader.cpp */; }; - 1FB434FE12904344002D63E8 /* OneDReader.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1FB4349A12904343002D63E8 /* OneDReader.cpp */; }; - 1FB434FF12904344002D63E8 /* OneDResultPoint.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1FB4349C12904343002D63E8 /* OneDResultPoint.cpp */; }; - 1FB4350012904344002D63E8 /* UPCAReader.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1FB4349E12904343002D63E8 /* UPCAReader.cpp */; }; - 1FB4350112904344002D63E8 /* UPCEANReader.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1FB434A012904343002D63E8 /* UPCEANReader.cpp */; }; - 1FB4350212904344002D63E8 /* UPCEReader.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1FB434A212904343002D63E8 /* UPCEReader.cpp */; }; - 1FB4350312904344002D63E8 /* BitMatrixParser.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1FB434A612904343002D63E8 /* BitMatrixParser.cpp */; }; - 1FB4350412904344002D63E8 /* DataBlock.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1FB434A812904343002D63E8 /* DataBlock.cpp */; }; - 1FB4350512904344002D63E8 /* DataMask.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1FB434AA12904344002D63E8 /* DataMask.cpp */; }; - 1FB4350612904344002D63E8 /* DecodedBitStreamParser.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1FB434AC12904344002D63E8 /* DecodedBitStreamParser.cpp */; }; - 1FB4350712904344002D63E8 /* Decoder.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1FB434AE12904344002D63E8 /* Decoder.cpp */; }; - 1FB4350812904344002D63E8 /* Mode.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1FB434B012904344002D63E8 /* Mode.cpp */; }; - 1FB4350912904344002D63E8 /* AlignmentPattern.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1FB434B312904344002D63E8 /* AlignmentPattern.cpp */; }; - 1FB4350A12904344002D63E8 /* AlignmentPatternFinder.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1FB434B512904344002D63E8 /* AlignmentPatternFinder.cpp */; }; - 1FB4350B12904344002D63E8 /* Detector.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1FB434B712904344002D63E8 /* Detector.cpp */; }; - 1FB4350C12904344002D63E8 /* FinderPattern.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1FB434B912904344002D63E8 /* FinderPattern.cpp */; }; - 1FB4350D12904344002D63E8 /* FinderPatternFinder.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1FB434BB12904344002D63E8 /* FinderPatternFinder.cpp */; }; - 1FB4350E12904344002D63E8 /* FinderPatternInfo.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1FB434BD12904344002D63E8 /* FinderPatternInfo.cpp */; }; - 1FB4350F12904344002D63E8 /* QREdgeDetector.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1FB434BF12904344002D63E8 /* QREdgeDetector.cpp */; }; - 1FB4351012904344002D63E8 /* ErrorCorrectionLevel.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1FB434C112904344002D63E8 /* ErrorCorrectionLevel.cpp */; }; - 1FB4351112904344002D63E8 /* FormatInformation.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1FB434C312904344002D63E8 /* FormatInformation.cpp */; }; - 1FB4351212904344002D63E8 /* QRCodeReader.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1FB434C512904344002D63E8 /* QRCodeReader.cpp */; }; - 1FB4351312904344002D63E8 /* Version.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1FB434C712904344002D63E8 /* Version.cpp */; }; - 1FB4351412904344002D63E8 /* Reader.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1FB434C912904344002D63E8 /* Reader.cpp */; }; - 1FB4351512904344002D63E8 /* ReaderException.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1FB434CB12904344002D63E8 /* ReaderException.cpp */; }; - 1FB4351612904344002D63E8 /* Result.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1FB434CD12904344002D63E8 /* Result.cpp */; }; - 1FB4351712904344002D63E8 /* ResultPoint.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1FB434CF12904344002D63E8 /* ResultPoint.cpp */; }; - 1FB4351812904344002D63E8 /* ResultPointCallback.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1FB434D112904344002D63E8 /* ResultPointCallback.cpp */; }; - 85096CD00E06D45400D660F9 /* SMSAction.m in Sources */ = {isa = PBXBuildFile; fileRef = 85096CCF0E06D45400D660F9 /* SMSAction.m */; }; - 8514EB1A0DF8A54600EE78D3 /* libzxingcore.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 8514EB190DF8A52700EE78D3 /* libzxingcore.a */; }; - 851B4BF60DF6C64A00C8958F /* TwoDDecoderResult.m in Sources */ = {isa = PBXBuildFile; fileRef = 851B4BF50DF6C64A00C8958F /* TwoDDecoderResult.m */; }; - 852683A20DF851ED005DD4C0 /* GeoParsedResult.m in Sources */ = {isa = PBXBuildFile; fileRef = 852683A10DF851ED005DD4C0 /* GeoParsedResult.m */; }; - 852683C20DF8562B005DD4C0 /* ShowMapAction.m in Sources */ = {isa = PBXBuildFile; fileRef = 852683C10DF8562B005DD4C0 /* ShowMapAction.m */; }; - 852A998F0E0BC433003E6D6D /* DecoderView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 852A998E0E0BC433003E6D6D /* DecoderView.xib */; }; - 852A99910E0BC43C003E6D6D /* MainWindow.xib in Resources */ = {isa = PBXBuildFile; fileRef = 852A99900E0BC43C003E6D6D /* MainWindow.xib */; }; - 852A99970E0BC49E003E6D6D /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = 852A99960E0BC49E003E6D6D /* Localizable.strings */; }; - 853678530E538F9E0054126A /* MessageViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 853678520E538F9E0054126A /* MessageViewController.m */; }; - 853678830E5394D70054126A /* About.html in Resources */ = {isa = PBXBuildFile; fileRef = 853678820E5394D70054126A /* About.html */; }; - 854BE3010E06A56C00CB4A20 /* AddressBookUI.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 854BE3000E06A56C00CB4A20 /* AddressBookUI.framework */; }; - 8555304E0E643BA800C7B5DE /* Entitlements.plist in Resources */ = {isa = PBXBuildFile; fileRef = 8555304D0E643BA800C7B5DE /* Entitlements.plist */; }; - 8555307B0E64504300C7B5DE /* icon.png in Resources */ = {isa = PBXBuildFile; fileRef = 8555307A0E64504300C7B5DE /* icon.png */; }; - 855A66800DF5E757007B394F /* ArchiveController.m in Sources */ = {isa = PBXBuildFile; fileRef = 855A66510DF5E757007B394F /* ArchiveController.m */; }; - 855A66810DF5E757007B394F /* Database.m in Sources */ = {isa = PBXBuildFile; fileRef = 855A66540DF5E757007B394F /* Database.m */; }; - 855A66830DF5E757007B394F /* AddContactAction.m in Sources */ = {isa = PBXBuildFile; fileRef = 855A66580DF5E757007B394F /* AddContactAction.m */; }; - 855A66840DF5E757007B394F /* BusinessCardParsedResult.m in Sources */ = {isa = PBXBuildFile; fileRef = 855A665A0DF5E757007B394F /* BusinessCardParsedResult.m */; }; - 855A66860DF5E757007B394F /* EmailAction.m in Sources */ = {isa = PBXBuildFile; fileRef = 855A665E0DF5E757007B394F /* EmailAction.m */; }; - 855A66870DF5E757007B394F /* EmailParsedResult.m in Sources */ = {isa = PBXBuildFile; fileRef = 855A66600DF5E757007B394F /* EmailParsedResult.m */; }; - 855A66890DF5E757007B394F /* CallAction.m in Sources */ = {isa = PBXBuildFile; fileRef = 855A66640DF5E757007B394F /* CallAction.m */; }; - 855A668A0DF5E757007B394F /* OpenUrlAction.m in Sources */ = {isa = PBXBuildFile; fileRef = 855A66660DF5E757007B394F /* OpenUrlAction.m */; }; - 855A668B0DF5E757007B394F /* ResultAction.m in Sources */ = {isa = PBXBuildFile; fileRef = 855A66680DF5E757007B394F /* ResultAction.m */; }; - 855A668C0DF5E757007B394F /* TelParsedResult.m in Sources */ = {isa = PBXBuildFile; fileRef = 855A666A0DF5E757007B394F /* TelParsedResult.m */; }; - 855A668D0DF5E757007B394F /* TextParsedResult.m in Sources */ = {isa = PBXBuildFile; fileRef = 855A666C0DF5E757007B394F /* TextParsedResult.m */; }; - 855A668E0DF5E757007B394F /* DecoderViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 855A666E0DF5E757007B394F /* DecoderViewController.m */; }; - 855A668F0DF5E757007B394F /* Decoder.mm in Sources */ = {isa = PBXBuildFile; fileRef = 855A66710DF5E757007B394F /* Decoder.mm */; }; - 855A66900DF5E757007B394F /* ZXingAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 855A66730DF5E757007B394F /* ZXingAppDelegate.m */; }; - 855A66910DF5E757007B394F /* ParsedResult.m in Sources */ = {isa = PBXBuildFile; fileRef = 855A66750DF5E757007B394F /* ParsedResult.m */; }; - 855A66920DF5E757007B394F /* NSString+HTML.m in Sources */ = {isa = PBXBuildFile; fileRef = 855A66770DF5E757007B394F /* NSString+HTML.m */; }; - 855A66930DF5E757007B394F /* URIParsedResult.m in Sources */ = {isa = PBXBuildFile; fileRef = 855A66790DF5E757007B394F /* URIParsedResult.m */; }; - 855A66960DF5E757007B394F /* Scan.m in Sources */ = {isa = PBXBuildFile; fileRef = 855A667F0DF5E757007B394F /* Scan.m */; }; - 855A66A50DF5E7B4007B394F /* scans.db in Resources */ = {isa = PBXBuildFile; fileRef = 855A66A00DF5E7B4007B394F /* scans.db */; }; - 855A66B40DF5E884007B394F /* AddressBook.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 855A66B30DF5E884007B394F /* AddressBook.framework */; }; - 855A66BD0DF5E8D6007B394F /* libsqlite3.0.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 855A66BC0DF5E8D6007B394F /* libsqlite3.0.dylib */; }; - 855A66BF0DF5E8F8007B394F /* libiconv.2.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 855A66BE0DF5E8F8007B394F /* libiconv.2.dylib */; }; - 855A66D20DF5E954007B394F /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 855A66D10DF5E954007B394F /* CoreGraphics.framework */; }; - 856EAB7D0E1CE8D400B2E1C7 /* libzxingcore.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 8514EB190DF8A52700EE78D3 /* libzxingcore.a */; }; - 856EAB7E0E1CE8D400B2E1C7 /* libCppUnit.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 856EAB150E1CE6E000B2E1C7 /* libCppUnit.a */; }; - 856EAB800E1CE8F600B2E1C7 /* BitArrayTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 8514EA610DF88C9E00EE78D3 /* BitArrayTest.cpp */; }; - 856EAB820E1CE8F600B2E1C7 /* BitMatrixTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 8514EA630DF88C9E00EE78D3 /* BitMatrixTest.cpp */; }; - 856EAB840E1CE8F600B2E1C7 /* BitSourceTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 8514EA650DF88C9E00EE78D3 /* BitSourceTest.cpp */; }; - 856EAB860E1CE8F600B2E1C7 /* BlackPointEstimatorTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 8514EA670DF88C9E00EE78D3 /* BlackPointEstimatorTest.cpp */; }; - 856EAB880E1CE8F600B2E1C7 /* CountedTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 8514EA690DF88C9E00EE78D3 /* CountedTest.cpp */; }; - 856EAB8A0E1CE8F600B2E1C7 /* PerspectiveTransformTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 8514EA6B0DF88C9E00EE78D3 /* PerspectiveTransformTest.cpp */; }; - 856EAB8C0E1CE8F600B2E1C7 /* ReedSolomonTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 8514EA6E0DF88C9E00EE78D3 /* ReedSolomonTest.cpp */; }; - 856EAB8E0E1CE8F600B2E1C7 /* DataMaskTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 8514EA720DF88C9E00EE78D3 /* DataMaskTest.cpp */; }; - 856EAB900E1CE8F600B2E1C7 /* ErrorCorrectionLevelTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 8514EA740DF88C9E00EE78D3 /* ErrorCorrectionLevelTest.cpp */; }; - 856EAB920E1CE8F600B2E1C7 /* FormatInformationTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 8514EA760DF88C9E00EE78D3 /* FormatInformationTest.cpp */; }; - 856EAB940E1CE8F600B2E1C7 /* ModeTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 8514EA780DF88C9E00EE78D3 /* ModeTest.cpp */; }; - 856EAB960E1CE8F600B2E1C7 /* VersionTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 8514EA7A0DF88C9E00EE78D3 /* VersionTest.cpp */; }; - 856EAB980E1CE8F600B2E1C7 /* TestRunner.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 8514EA7C0DF88C9E00EE78D3 /* TestRunner.cpp */; }; - 85764F2E0E3DE75700A61BF5 /* PlainEmailResultParser.m in Sources */ = {isa = PBXBuildFile; fileRef = 85764F2D0E3DE75700A61BF5 /* PlainEmailResultParser.m */; }; - 85764F6A0E3E22FC00A61BF5 /* Hints.html in Resources */ = {isa = PBXBuildFile; fileRef = 85764F680E3E22FC00A61BF5 /* Hints.html */; }; - 85B1D7EF0E18EB6800514A6A /* ScanCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 85B1D7EE0E18EB6700514A6A /* ScanCell.m */; }; - 85B1D8850E190E3A00514A6A /* Default.png in Resources */ = {isa = PBXBuildFile; fileRef = 85B1D8840E190E3A00514A6A /* Default.png */; }; - 85B8F52C0E6AD33200510402 /* photolib.png in Resources */ = {isa = PBXBuildFile; fileRef = 85B8F52B0E6AD33200510402 /* photolib.png */; }; - 85C0B9140E123AFC005EED58 /* ResultParser.m in Sources */ = {isa = PBXBuildFile; fileRef = 85C0B9130E123AFC005EED58 /* ResultParser.m */; }; - 85C0B91A0E123BD2005EED58 /* DoCoMoResultParser.m in Sources */ = {isa = PBXBuildFile; fileRef = 85C0B9190E123BD2005EED58 /* DoCoMoResultParser.m */; }; - 85C0B9220E123C93005EED58 /* MeCardParser.m in Sources */ = {isa = PBXBuildFile; fileRef = 85C0B9210E123C93005EED58 /* MeCardParser.m */; }; - 85C0B9AB0E123DB6005EED58 /* EmailDoCoMoResultParser.m in Sources */ = {isa = PBXBuildFile; fileRef = 85C0B9AA0E123DB6005EED58 /* EmailDoCoMoResultParser.m */; }; - 85C0B9BA0E123E99005EED58 /* TelResultParser.m in Sources */ = {isa = PBXBuildFile; fileRef = 85C0B9B90E123E99005EED58 /* TelResultParser.m */; }; - 85C0BA020E123F30005EED58 /* TextResultParser.m in Sources */ = {isa = PBXBuildFile; fileRef = 85C0BA010E123F30005EED58 /* TextResultParser.m */; }; - 85C0BA5A0E124497005EED58 /* URLTOResultParser.m in Sources */ = {isa = PBXBuildFile; fileRef = 85C0BA590E124497005EED58 /* URLTOResultParser.m */; }; - 85C0BA640E124AC7005EED58 /* URLResultParser.m in Sources */ = {isa = PBXBuildFile; fileRef = 85C0BA630E124AC7005EED58 /* URLResultParser.m */; }; - 85C0BAFA0E1250E4005EED58 /* BookmarkDoCoMoResultParser.m in Sources */ = {isa = PBXBuildFile; fileRef = 85C0BAF90E1250E4005EED58 /* BookmarkDoCoMoResultParser.m */; }; - 85C0BAFD0E12515D005EED58 /* GeoResultParser.m in Sources */ = {isa = PBXBuildFile; fileRef = 85C0BAFC0E12515D005EED58 /* GeoResultParser.m */; }; - 85C0BC100E12548D005EED58 /* SMSTOResultParser.m in Sources */ = {isa = PBXBuildFile; fileRef = 85C0BC0F0E12548D005EED58 /* SMSTOResultParser.m */; }; - 85C0BC140E1254C0005EED58 /* SMSParsedResult.m in Sources */ = {isa = PBXBuildFile; fileRef = 85C0BC130E1254C0005EED58 /* SMSParsedResult.m */; }; - 85C0BC1C0E125842005EED58 /* SMSResultParser.m in Sources */ = {isa = PBXBuildFile; fileRef = 85C0BC1B0E125842005EED58 /* SMSResultParser.m */; }; - 85C37A410E4076BB0052209B /* Message.xib in Resources */ = {isa = PBXBuildFile; fileRef = 85C37A3F0E4076BB0052209B /* Message.xib */; }; - 85C3CC350E119E1700A01C6A /* business-card.png in Resources */ = {isa = PBXBuildFile; fileRef = 85C3CC2D0E119E1600A01C6A /* business-card.png */; }; - 85C3CC360E119E1700A01C6A /* email.png in Resources */ = {isa = PBXBuildFile; fileRef = 85C3CC2E0E119E1700A01C6A /* email.png */; }; - 85C3CC370E119E1700A01C6A /* link1.png in Resources */ = {isa = PBXBuildFile; fileRef = 85C3CC2F0E119E1700A01C6A /* link1.png */; }; - 85C3CC380E119E1700A01C6A /* link2.png in Resources */ = {isa = PBXBuildFile; fileRef = 85C3CC300E119E1700A01C6A /* link2.png */; }; - 85C3CC390E119E1700A01C6A /* map-pin.png in Resources */ = {isa = PBXBuildFile; fileRef = 85C3CC310E119E1700A01C6A /* map-pin.png */; }; - 85C3CC3A0E119E1700A01C6A /* phone.png in Resources */ = {isa = PBXBuildFile; fileRef = 85C3CC320E119E1700A01C6A /* phone.png */; }; - 85C3CC3B0E119E1700A01C6A /* sms.png in Resources */ = {isa = PBXBuildFile; fileRef = 85C3CC330E119E1700A01C6A /* sms.png */; }; - 85C3CC3C0E119E1700A01C6A /* text.png in Resources */ = {isa = PBXBuildFile; fileRef = 85C3CC340E119E1700A01C6A /* text.png */; }; - 85C4969C0E4A3E87003DB029 /* filmroll-2.png in Resources */ = {isa = PBXBuildFile; fileRef = 85C4969B0E4A3E87003DB029 /* filmroll-2.png */; }; - 85D937270E11064700B785E0 /* ScanViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 85D937260E11064700B785E0 /* ScanViewController.m */; }; - 85E883980E1A34D2004C4547 /* ScannedImageView.m in Sources */ = {isa = PBXBuildFile; fileRef = 85E883970E1A34D2004C4547 /* ScannedImageView.m */; }; - 85E945270E9410EF0052CC40 /* ZxingLarge.png in Resources */ = {isa = PBXBuildFile; fileRef = 85E945260E9410EF0052CC40 /* ZxingLarge.png */; }; - 85F895030E543EE100C0A666 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 85F895020E543EE100C0A666 /* InfoPlist.strings */; }; - 8B2B9BE6118FB42D00437315 /* FormatReader.mm in Sources */ = {isa = PBXBuildFile; fileRef = 8B2B9BE3118FB42D00437315 /* FormatReader.mm */; }; - 8B2B9BE7118FB42D00437315 /* MultiFormatReader.mm in Sources */ = {isa = PBXBuildFile; fileRef = 8B2B9BE4118FB42D00437315 /* MultiFormatReader.mm */; }; - AD92A8BB10BFE07F009C3614 /* GrayBytesMonochromeBitmapSource.cpp in Sources */ = {isa = PBXBuildFile; fileRef = AD92A8BA10BFE07F009C3614 /* GrayBytesMonochromeBitmapSource.cpp */; }; -/* End PBXBuildFile section */ - -/* Begin PBXContainerItemProxy section */ - 8514EB170DF8A50900EE78D3 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 29B97313FDCFA39411CA2CEA /* Project object */; - proxyType = 1; - remoteGlobalIDString = 8514EAE70DF88E5200EE78D3; - remoteInfo = zxingcore; - }; - 856C257B0E1BC76C006ABF00 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 29B97313FDCFA39411CA2CEA /* Project object */; - proxyType = 1; - remoteGlobalIDString = 1D6058900D05DD3D006BFB54; - remoteInfo = ZXing; - }; - 856EABB00E1CE97800B2E1C7 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 29B97313FDCFA39411CA2CEA /* Project object */; - proxyType = 1; - remoteGlobalIDString = 8514EAE70DF88E5200EE78D3; - remoteInfo = zxingcore; - }; - 856EABB20E1CE97B00B2E1C7 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 29B97313FDCFA39411CA2CEA /* Project object */; - proxyType = 1; - remoteGlobalIDString = 856EAB140E1CE6E000B2E1C7; - remoteInfo = CppUnit; - }; - 856EABB40E1CE98600B2E1C7 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 29B97313FDCFA39411CA2CEA /* Project object */; - proxyType = 1; - remoteGlobalIDString = 856EAB7A0E1CE8AA00B2E1C7; - remoteInfo = "zxingcore-tests"; - }; -/* End PBXContainerItemProxy section */ - -/* Begin PBXFileReference section */ - 1D30AB110D05D00D00671497 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; - 1D6058910D05DD3D006BFB54 /* Barcodes.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Barcodes.app; sourceTree = BUILT_PRODUCTS_DIR; }; - 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; - 1FB4343D12904343002D63E8 /* BarcodeFormat.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = BarcodeFormat.cpp; sourceTree = ""; }; - 1FB4343E12904343002D63E8 /* BarcodeFormat.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BarcodeFormat.h; sourceTree = ""; }; - 1FB4343F12904343002D63E8 /* Binarizer.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Binarizer.cpp; sourceTree = ""; }; - 1FB4344012904343002D63E8 /* Binarizer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Binarizer.h; sourceTree = ""; }; - 1FB4344112904343002D63E8 /* BinaryBitmap.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = BinaryBitmap.cpp; sourceTree = ""; }; - 1FB4344212904343002D63E8 /* BinaryBitmap.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BinaryBitmap.h; sourceTree = ""; }; - 1FB4344412904343002D63E8 /* Array.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Array.cpp; sourceTree = ""; }; - 1FB4344512904343002D63E8 /* Array.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Array.h; sourceTree = ""; }; - 1FB4344612904343002D63E8 /* BitArray.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = BitArray.cpp; sourceTree = ""; }; - 1FB4344712904343002D63E8 /* BitArray.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BitArray.h; sourceTree = ""; }; - 1FB4344812904343002D63E8 /* BitMatrix.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = BitMatrix.cpp; sourceTree = ""; }; - 1FB4344912904343002D63E8 /* BitMatrix.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BitMatrix.h; sourceTree = ""; }; - 1FB4344A12904343002D63E8 /* BitSource.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = BitSource.cpp; sourceTree = ""; }; - 1FB4344B12904343002D63E8 /* BitSource.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BitSource.h; sourceTree = ""; }; - 1FB4344C12904343002D63E8 /* Counted.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Counted.cpp; sourceTree = ""; }; - 1FB4344D12904343002D63E8 /* Counted.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Counted.h; sourceTree = ""; }; - 1FB4344E12904343002D63E8 /* DecoderResult.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = DecoderResult.cpp; sourceTree = ""; }; - 1FB4344F12904343002D63E8 /* DecoderResult.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DecoderResult.h; sourceTree = ""; }; - 1FB4345012904343002D63E8 /* DetectorResult.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = DetectorResult.cpp; sourceTree = ""; }; - 1FB4345112904343002D63E8 /* DetectorResult.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DetectorResult.h; sourceTree = ""; }; - 1FB4345212904343002D63E8 /* EdgeDetector.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = EdgeDetector.cpp; sourceTree = ""; }; - 1FB4345312904343002D63E8 /* EdgeDetector.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EdgeDetector.h; sourceTree = ""; }; - 1FB4345412904343002D63E8 /* GlobalHistogramBinarizer.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = GlobalHistogramBinarizer.cpp; sourceTree = ""; }; - 1FB4345512904343002D63E8 /* GlobalHistogramBinarizer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GlobalHistogramBinarizer.h; sourceTree = ""; }; - 1FB4345612904343002D63E8 /* GreyscaleLuminanceSource.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = GreyscaleLuminanceSource.cpp; sourceTree = ""; }; - 1FB4345712904343002D63E8 /* GreyscaleLuminanceSource.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GreyscaleLuminanceSource.h; sourceTree = ""; }; - 1FB4345812904343002D63E8 /* GreyscaleRotatedLuminanceSource.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = GreyscaleRotatedLuminanceSource.cpp; sourceTree = ""; }; - 1FB4345912904343002D63E8 /* GreyscaleRotatedLuminanceSource.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GreyscaleRotatedLuminanceSource.h; sourceTree = ""; }; - 1FB4345A12904343002D63E8 /* GridSampler.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = GridSampler.cpp; sourceTree = ""; }; - 1FB4345B12904343002D63E8 /* GridSampler.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GridSampler.h; sourceTree = ""; }; - 1FB4345C12904343002D63E8 /* HybridBinarizer.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = HybridBinarizer.cpp; sourceTree = ""; }; - 1FB4345D12904343002D63E8 /* HybridBinarizer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HybridBinarizer.h; sourceTree = ""; }; - 1FB4345E12904343002D63E8 /* IllegalArgumentException.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = IllegalArgumentException.cpp; sourceTree = ""; }; - 1FB4345F12904343002D63E8 /* IllegalArgumentException.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = IllegalArgumentException.h; sourceTree = ""; }; - 1FB4346012904343002D63E8 /* PerspectiveTransform.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = PerspectiveTransform.cpp; sourceTree = ""; }; - 1FB4346112904343002D63E8 /* PerspectiveTransform.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PerspectiveTransform.h; sourceTree = ""; }; - 1FB4346212904343002D63E8 /* Point.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Point.h; sourceTree = ""; }; - 1FB4346412904343002D63E8 /* GF256.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = GF256.cpp; sourceTree = ""; }; - 1FB4346512904343002D63E8 /* GF256.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GF256.h; sourceTree = ""; }; - 1FB4346612904343002D63E8 /* GF256Poly.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = GF256Poly.cpp; sourceTree = ""; }; - 1FB4346712904343002D63E8 /* GF256Poly.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GF256Poly.h; sourceTree = ""; }; - 1FB4346812904343002D63E8 /* ReedSolomonDecoder.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ReedSolomonDecoder.cpp; sourceTree = ""; }; - 1FB4346912904343002D63E8 /* ReedSolomonDecoder.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ReedSolomonDecoder.h; sourceTree = ""; }; - 1FB4346A12904343002D63E8 /* ReedSolomonException.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ReedSolomonException.cpp; sourceTree = ""; }; - 1FB4346B12904343002D63E8 /* ReedSolomonException.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ReedSolomonException.h; sourceTree = ""; }; - 1FB4346C12904343002D63E8 /* Str.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Str.cpp; sourceTree = ""; }; - 1FB4346D12904343002D63E8 /* Str.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Str.h; sourceTree = ""; }; - 1FB4346F12904343002D63E8 /* DataMatrixReader.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = DataMatrixReader.cpp; sourceTree = ""; }; - 1FB4347012904343002D63E8 /* DataMatrixReader.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DataMatrixReader.h; sourceTree = ""; }; - 1FB4347212904343002D63E8 /* BitMatrixParser.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = BitMatrixParser.cpp; sourceTree = ""; }; - 1FB4347312904343002D63E8 /* BitMatrixParser.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BitMatrixParser.h; sourceTree = ""; }; - 1FB4347412904343002D63E8 /* DataBlock.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = DataBlock.cpp; sourceTree = ""; }; - 1FB4347512904343002D63E8 /* DataBlock.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DataBlock.h; sourceTree = ""; }; - 1FB4347612904343002D63E8 /* DecodedBitStreamParser.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = DecodedBitStreamParser.cpp; sourceTree = ""; }; - 1FB4347712904343002D63E8 /* DecodedBitStreamParser.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DecodedBitStreamParser.h; sourceTree = ""; }; - 1FB4347812904343002D63E8 /* Decoder.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Decoder.cpp; sourceTree = ""; }; - 1FB4347912904343002D63E8 /* Decoder.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Decoder.h; sourceTree = ""; }; - 1FB4347B12904343002D63E8 /* CornerPoint.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = CornerPoint.cpp; sourceTree = ""; }; - 1FB4347C12904343002D63E8 /* CornerPoint.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CornerPoint.h; sourceTree = ""; }; - 1FB4347D12904343002D63E8 /* Detector.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Detector.cpp; sourceTree = ""; }; - 1FB4347E12904343002D63E8 /* Detector.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Detector.h; sourceTree = ""; }; - 1FB4347F12904343002D63E8 /* MonochromeRectangleDetector.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = MonochromeRectangleDetector.cpp; sourceTree = ""; }; - 1FB4348012904343002D63E8 /* MonochromeRectangleDetector.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MonochromeRectangleDetector.h; sourceTree = ""; }; - 1FB4348112904343002D63E8 /* Version.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Version.cpp; sourceTree = ""; }; - 1FB4348212904343002D63E8 /* Version.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Version.h; sourceTree = ""; }; - 1FB4348312904343002D63E8 /* DecodeHints.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = DecodeHints.cpp; sourceTree = ""; }; - 1FB4348412904343002D63E8 /* DecodeHints.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DecodeHints.h; sourceTree = ""; }; - 1FB4348512904343002D63E8 /* Exception.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Exception.cpp; sourceTree = ""; }; - 1FB4348612904343002D63E8 /* Exception.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Exception.h; sourceTree = ""; }; - 1FB4348712904343002D63E8 /* LuminanceSource.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = LuminanceSource.cpp; sourceTree = ""; }; - 1FB4348812904343002D63E8 /* LuminanceSource.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LuminanceSource.h; sourceTree = ""; }; - 1FB4348912904343002D63E8 /* MultiFormatReader.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = MultiFormatReader.cpp; sourceTree = ""; }; - 1FB4348A12904343002D63E8 /* MultiFormatReader.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MultiFormatReader.h; sourceTree = ""; }; - 1FB4348C12904343002D63E8 /* Code128Reader.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Code128Reader.cpp; sourceTree = ""; }; - 1FB4348D12904343002D63E8 /* Code128Reader.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Code128Reader.h; sourceTree = ""; }; - 1FB4348E12904343002D63E8 /* Code39Reader.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Code39Reader.cpp; sourceTree = ""; }; - 1FB4348F12904343002D63E8 /* Code39Reader.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Code39Reader.h; sourceTree = ""; }; - 1FB4349012904343002D63E8 /* EAN13Reader.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = EAN13Reader.cpp; sourceTree = ""; }; - 1FB4349112904343002D63E8 /* EAN13Reader.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EAN13Reader.h; sourceTree = ""; }; - 1FB4349212904343002D63E8 /* EAN8Reader.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = EAN8Reader.cpp; sourceTree = ""; }; - 1FB4349312904343002D63E8 /* EAN8Reader.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EAN8Reader.h; sourceTree = ""; }; - 1FB4349412904343002D63E8 /* ITFReader.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ITFReader.cpp; sourceTree = ""; }; - 1FB4349512904343002D63E8 /* ITFReader.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ITFReader.h; sourceTree = ""; }; - 1FB4349612904343002D63E8 /* MultiFormatOneDReader.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = MultiFormatOneDReader.cpp; sourceTree = ""; }; - 1FB4349712904343002D63E8 /* MultiFormatOneDReader.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MultiFormatOneDReader.h; sourceTree = ""; }; - 1FB4349812904343002D63E8 /* MultiFormatUPCEANReader.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = MultiFormatUPCEANReader.cpp; sourceTree = ""; }; - 1FB4349912904343002D63E8 /* MultiFormatUPCEANReader.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MultiFormatUPCEANReader.h; sourceTree = ""; }; - 1FB4349A12904343002D63E8 /* OneDReader.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = OneDReader.cpp; sourceTree = ""; }; - 1FB4349B12904343002D63E8 /* OneDReader.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OneDReader.h; sourceTree = ""; }; - 1FB4349C12904343002D63E8 /* OneDResultPoint.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = OneDResultPoint.cpp; sourceTree = ""; }; - 1FB4349D12904343002D63E8 /* OneDResultPoint.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OneDResultPoint.h; sourceTree = ""; }; - 1FB4349E12904343002D63E8 /* UPCAReader.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UPCAReader.cpp; sourceTree = ""; }; - 1FB4349F12904343002D63E8 /* UPCAReader.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UPCAReader.h; sourceTree = ""; }; - 1FB434A012904343002D63E8 /* UPCEANReader.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UPCEANReader.cpp; sourceTree = ""; }; - 1FB434A112904343002D63E8 /* UPCEANReader.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UPCEANReader.h; sourceTree = ""; }; - 1FB434A212904343002D63E8 /* UPCEReader.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UPCEReader.cpp; sourceTree = ""; }; - 1FB434A312904343002D63E8 /* UPCEReader.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UPCEReader.h; sourceTree = ""; }; - 1FB434A612904343002D63E8 /* BitMatrixParser.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = BitMatrixParser.cpp; sourceTree = ""; }; - 1FB434A712904343002D63E8 /* BitMatrixParser.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BitMatrixParser.h; sourceTree = ""; }; - 1FB434A812904343002D63E8 /* DataBlock.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = DataBlock.cpp; sourceTree = ""; }; - 1FB434A912904343002D63E8 /* DataBlock.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DataBlock.h; sourceTree = ""; }; - 1FB434AA12904344002D63E8 /* DataMask.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = DataMask.cpp; sourceTree = ""; }; - 1FB434AB12904344002D63E8 /* DataMask.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DataMask.h; sourceTree = ""; }; - 1FB434AC12904344002D63E8 /* DecodedBitStreamParser.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = DecodedBitStreamParser.cpp; sourceTree = ""; }; - 1FB434AD12904344002D63E8 /* DecodedBitStreamParser.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DecodedBitStreamParser.h; sourceTree = ""; }; - 1FB434AE12904344002D63E8 /* Decoder.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Decoder.cpp; sourceTree = ""; }; - 1FB434AF12904344002D63E8 /* Decoder.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Decoder.h; sourceTree = ""; }; - 1FB434B012904344002D63E8 /* Mode.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Mode.cpp; sourceTree = ""; }; - 1FB434B112904344002D63E8 /* Mode.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Mode.h; sourceTree = ""; }; - 1FB434B312904344002D63E8 /* AlignmentPattern.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = AlignmentPattern.cpp; sourceTree = ""; }; - 1FB434B412904344002D63E8 /* AlignmentPattern.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AlignmentPattern.h; sourceTree = ""; }; - 1FB434B512904344002D63E8 /* AlignmentPatternFinder.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = AlignmentPatternFinder.cpp; sourceTree = ""; }; - 1FB434B612904344002D63E8 /* AlignmentPatternFinder.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AlignmentPatternFinder.h; sourceTree = ""; }; - 1FB434B712904344002D63E8 /* Detector.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Detector.cpp; sourceTree = ""; }; - 1FB434B812904344002D63E8 /* Detector.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Detector.h; sourceTree = ""; }; - 1FB434B912904344002D63E8 /* FinderPattern.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = FinderPattern.cpp; sourceTree = ""; }; - 1FB434BA12904344002D63E8 /* FinderPattern.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FinderPattern.h; sourceTree = ""; }; - 1FB434BB12904344002D63E8 /* FinderPatternFinder.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = FinderPatternFinder.cpp; sourceTree = ""; }; - 1FB434BC12904344002D63E8 /* FinderPatternFinder.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FinderPatternFinder.h; sourceTree = ""; }; - 1FB434BD12904344002D63E8 /* FinderPatternInfo.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = FinderPatternInfo.cpp; sourceTree = ""; }; - 1FB434BE12904344002D63E8 /* FinderPatternInfo.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FinderPatternInfo.h; sourceTree = ""; }; - 1FB434BF12904344002D63E8 /* QREdgeDetector.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = QREdgeDetector.cpp; sourceTree = ""; }; - 1FB434C012904344002D63E8 /* QREdgeDetector.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = QREdgeDetector.h; sourceTree = ""; }; - 1FB434C112904344002D63E8 /* ErrorCorrectionLevel.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ErrorCorrectionLevel.cpp; sourceTree = ""; }; - 1FB434C212904344002D63E8 /* ErrorCorrectionLevel.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ErrorCorrectionLevel.h; sourceTree = ""; }; - 1FB434C312904344002D63E8 /* FormatInformation.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = FormatInformation.cpp; sourceTree = ""; }; - 1FB434C412904344002D63E8 /* FormatInformation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FormatInformation.h; sourceTree = ""; }; - 1FB434C512904344002D63E8 /* QRCodeReader.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = QRCodeReader.cpp; sourceTree = ""; }; - 1FB434C612904344002D63E8 /* QRCodeReader.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = QRCodeReader.h; sourceTree = ""; }; - 1FB434C712904344002D63E8 /* Version.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Version.cpp; sourceTree = ""; }; - 1FB434C812904344002D63E8 /* Version.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Version.h; sourceTree = ""; }; - 1FB434C912904344002D63E8 /* Reader.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Reader.cpp; sourceTree = ""; }; - 1FB434CA12904344002D63E8 /* Reader.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Reader.h; sourceTree = ""; }; - 1FB434CB12904344002D63E8 /* ReaderException.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ReaderException.cpp; sourceTree = ""; }; - 1FB434CC12904344002D63E8 /* ReaderException.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ReaderException.h; sourceTree = ""; }; - 1FB434CD12904344002D63E8 /* Result.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Result.cpp; sourceTree = ""; }; - 1FB434CE12904344002D63E8 /* Result.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Result.h; sourceTree = ""; }; - 1FB434CF12904344002D63E8 /* ResultPoint.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ResultPoint.cpp; sourceTree = ""; }; - 1FB434D012904344002D63E8 /* ResultPoint.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ResultPoint.h; sourceTree = ""; }; - 1FB434D112904344002D63E8 /* ResultPointCallback.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ResultPointCallback.cpp; sourceTree = ""; }; - 1FB434D212904344002D63E8 /* ResultPointCallback.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ResultPointCallback.h; sourceTree = ""; }; - 29B97316FDCFA39411CA2CEA /* main.m */ = {isa = PBXFileReference; explicitFileType = sourcecode.c.objc; fileEncoding = 4; path = main.m; sourceTree = ""; }; - 32CA4F630368D1EE00C91783 /* ZXing_Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ZXing_Prefix.pch; sourceTree = ""; }; - 85096CCE0E06D45400D660F9 /* SMSAction.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SMSAction.h; sourceTree = ""; }; - 85096CCF0E06D45400D660F9 /* SMSAction.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SMSAction.m; sourceTree = ""; }; - 8514EA610DF88C9E00EE78D3 /* BitArrayTest.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = BitArrayTest.cpp; sourceTree = ""; }; - 8514EA620DF88C9E00EE78D3 /* BitArrayTest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BitArrayTest.h; sourceTree = ""; }; - 8514EA630DF88C9E00EE78D3 /* BitMatrixTest.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = BitMatrixTest.cpp; sourceTree = ""; }; - 8514EA640DF88C9E00EE78D3 /* BitMatrixTest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BitMatrixTest.h; sourceTree = ""; }; - 8514EA650DF88C9E00EE78D3 /* BitSourceTest.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = BitSourceTest.cpp; sourceTree = ""; }; - 8514EA660DF88C9E00EE78D3 /* BitSourceTest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BitSourceTest.h; sourceTree = ""; }; - 8514EA670DF88C9E00EE78D3 /* BlackPointEstimatorTest.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = BlackPointEstimatorTest.cpp; sourceTree = ""; }; - 8514EA680DF88C9E00EE78D3 /* BlackPointEstimatorTest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BlackPointEstimatorTest.h; sourceTree = ""; }; - 8514EA690DF88C9E00EE78D3 /* CountedTest.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = CountedTest.cpp; sourceTree = ""; }; - 8514EA6A0DF88C9E00EE78D3 /* CountedTest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CountedTest.h; sourceTree = ""; }; - 8514EA6B0DF88C9E00EE78D3 /* PerspectiveTransformTest.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = PerspectiveTransformTest.cpp; sourceTree = ""; }; - 8514EA6C0DF88C9E00EE78D3 /* PerspectiveTransformTest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PerspectiveTransformTest.h; sourceTree = ""; }; - 8514EA6E0DF88C9E00EE78D3 /* ReedSolomonTest.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ReedSolomonTest.cpp; sourceTree = ""; }; - 8514EA6F0DF88C9E00EE78D3 /* ReedSolomonTest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ReedSolomonTest.h; sourceTree = ""; }; - 8514EA720DF88C9E00EE78D3 /* DataMaskTest.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = DataMaskTest.cpp; sourceTree = ""; }; - 8514EA730DF88C9E00EE78D3 /* DataMaskTest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DataMaskTest.h; sourceTree = ""; }; - 8514EA740DF88C9E00EE78D3 /* ErrorCorrectionLevelTest.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = ErrorCorrectionLevelTest.cpp; path = ../ErrorCorrectionLevelTest.cpp; sourceTree = ""; }; - 8514EA750DF88C9E00EE78D3 /* ErrorCorrectionLevelTest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ErrorCorrectionLevelTest.h; sourceTree = ""; }; - 8514EA760DF88C9E00EE78D3 /* FormatInformationTest.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = FormatInformationTest.cpp; path = ../FormatInformationTest.cpp; sourceTree = ""; }; - 8514EA770DF88C9E00EE78D3 /* FormatInformationTest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FormatInformationTest.h; sourceTree = ""; }; - 8514EA780DF88C9E00EE78D3 /* ModeTest.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ModeTest.cpp; sourceTree = ""; }; - 8514EA790DF88C9E00EE78D3 /* ModeTest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ModeTest.h; sourceTree = ""; }; - 8514EA7A0DF88C9E00EE78D3 /* VersionTest.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = VersionTest.cpp; path = ../VersionTest.cpp; sourceTree = ""; }; - 8514EA7B0DF88C9E00EE78D3 /* VersionTest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = VersionTest.h; sourceTree = ""; }; - 8514EA7C0DF88C9E00EE78D3 /* TestRunner.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = TestRunner.cpp; sourceTree = ""; }; - 8514EB190DF8A52700EE78D3 /* libzxingcore.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libzxingcore.a; sourceTree = BUILT_PRODUCTS_DIR; }; - 851B4BF40DF6C64A00C8958F /* TwoDDecoderResult.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TwoDDecoderResult.h; sourceTree = ""; }; - 851B4BF50DF6C64A00C8958F /* TwoDDecoderResult.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TwoDDecoderResult.m; sourceTree = ""; }; - 852683A00DF851ED005DD4C0 /* GeoParsedResult.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GeoParsedResult.h; sourceTree = ""; }; - 852683A10DF851ED005DD4C0 /* GeoParsedResult.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeoParsedResult.m; sourceTree = ""; }; - 852683C00DF8562B005DD4C0 /* ShowMapAction.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ShowMapAction.h; sourceTree = ""; }; - 852683C10DF8562B005DD4C0 /* ShowMapAction.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ShowMapAction.m; sourceTree = ""; }; - 852A99C90E0BC7D1003E6D6D /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/DecoderView.xib; sourceTree = ""; }; - 852A99CA0E0BC7D6003E6D6D /* de */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = de; path = de.lproj/DecoderView.xib; sourceTree = ""; }; - 852A99CB0E0BC7E0003E6D6D /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/MainWindow.xib; sourceTree = ""; }; - 852A99CC0E0BC7E2003E6D6D /* de */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = de; path = de.lproj/MainWindow.xib; sourceTree = ""; }; - 852A99CD0E0BC7EE003E6D6D /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/Localizable.strings; sourceTree = ""; }; - 852A99CE0E0BC7F3003E6D6D /* de */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = de; path = de.lproj/Localizable.strings; sourceTree = ""; }; - 852A99D00E0BC8E8003E6D6D /* sv */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = sv; path = sv.lproj/DecoderView.xib; sourceTree = ""; }; - 852A99D10E0BC8E8003E6D6D /* sv */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = sv; path = sv.lproj/Localizable.strings; sourceTree = ""; }; - 852A99D20E0BC8E8003E6D6D /* sv */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = sv; path = sv.lproj/MainWindow.xib; sourceTree = ""; }; - 853678510E538F9E0054126A /* MessageViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MessageViewController.h; sourceTree = ""; }; - 853678520E538F9E0054126A /* MessageViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MessageViewController.m; sourceTree = ""; }; - 853678840E5394E40054126A /* en */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; name = en; path = en.lproj/About.html; sourceTree = ""; }; - 853678850E5394E70054126A /* de */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; name = de; path = de.lproj/About.html; sourceTree = ""; }; - 853678860E5394EA0054126A /* sv */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; name = sv; path = sv.lproj/About.html; sourceTree = ""; }; - 8539502B0E5442AA00D081D6 /* de */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = de; path = de.lproj/InfoPlist.strings; sourceTree = ""; }; - 8539502C0E5442B500D081D6 /* sv */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = sv; path = sv.lproj/InfoPlist.strings; sourceTree = ""; }; - 854BE3000E06A56C00CB4A20 /* AddressBookUI.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AddressBookUI.framework; path = System/Library/Frameworks/AddressBookUI.framework; sourceTree = SDKROOT; }; - 8555304D0E643BA800C7B5DE /* Entitlements.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Entitlements.plist; sourceTree = ""; }; - 8555307A0E64504300C7B5DE /* icon.png */ = {isa = PBXFileReference; explicitFileType = image.png; path = icon.png; sourceTree = ""; }; - 855A66510DF5E757007B394F /* ArchiveController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ArchiveController.m; sourceTree = ""; }; - 855A66520DF5E757007B394F /* ArchiveController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ArchiveController.h; sourceTree = ""; }; - 855A66530DF5E757007B394F /* Database.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Database.h; sourceTree = ""; }; - 855A66540DF5E757007B394F /* Database.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Database.m; sourceTree = ""; }; - 855A66570DF5E757007B394F /* AddContactAction.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AddContactAction.h; sourceTree = ""; }; - 855A66580DF5E757007B394F /* AddContactAction.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AddContactAction.m; sourceTree = ""; }; - 855A66590DF5E757007B394F /* BusinessCardParsedResult.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BusinessCardParsedResult.h; sourceTree = ""; }; - 855A665A0DF5E757007B394F /* BusinessCardParsedResult.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BusinessCardParsedResult.m; sourceTree = ""; }; - 855A665D0DF5E757007B394F /* EmailAction.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EmailAction.h; sourceTree = ""; }; - 855A665E0DF5E757007B394F /* EmailAction.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = EmailAction.m; sourceTree = ""; }; - 855A665F0DF5E757007B394F /* EmailParsedResult.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EmailParsedResult.h; sourceTree = ""; }; - 855A66600DF5E757007B394F /* EmailParsedResult.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = EmailParsedResult.m; sourceTree = ""; }; - 855A66630DF5E757007B394F /* CallAction.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CallAction.h; sourceTree = ""; }; - 855A66640DF5E757007B394F /* CallAction.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CallAction.m; sourceTree = ""; }; - 855A66650DF5E757007B394F /* OpenUrlAction.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OpenUrlAction.h; sourceTree = ""; }; - 855A66660DF5E757007B394F /* OpenUrlAction.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = OpenUrlAction.m; sourceTree = ""; }; - 855A66670DF5E757007B394F /* ResultAction.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ResultAction.h; sourceTree = ""; }; - 855A66680DF5E757007B394F /* ResultAction.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ResultAction.m; sourceTree = ""; }; - 855A66690DF5E757007B394F /* TelParsedResult.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TelParsedResult.h; sourceTree = ""; }; - 855A666A0DF5E757007B394F /* TelParsedResult.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TelParsedResult.m; sourceTree = ""; }; - 855A666B0DF5E757007B394F /* TextParsedResult.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TextParsedResult.h; sourceTree = ""; }; - 855A666C0DF5E757007B394F /* TextParsedResult.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TextParsedResult.m; sourceTree = ""; }; - 855A666D0DF5E757007B394F /* DecoderViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DecoderViewController.h; sourceTree = ""; }; - 855A666E0DF5E757007B394F /* DecoderViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = DecoderViewController.m; sourceTree = ""; }; - 855A666F0DF5E757007B394F /* DecoderDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DecoderDelegate.h; sourceTree = ""; }; - 855A66700DF5E757007B394F /* Decoder.h */ = {isa = PBXFileReference; explicitFileType = sourcecode.c.h; fileEncoding = 4; path = Decoder.h; sourceTree = ""; }; - 855A66710DF5E757007B394F /* Decoder.mm */ = {isa = PBXFileReference; explicitFileType = sourcecode.cpp.objcpp; fileEncoding = 4; path = Decoder.mm; sourceTree = ""; }; - 855A66720DF5E757007B394F /* ZXingAppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ZXingAppDelegate.h; sourceTree = ""; }; - 855A66730DF5E757007B394F /* ZXingAppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ZXingAppDelegate.m; sourceTree = ""; }; - 855A66740DF5E757007B394F /* ParsedResult.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ParsedResult.h; sourceTree = ""; }; - 855A66750DF5E757007B394F /* ParsedResult.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ParsedResult.m; sourceTree = ""; }; - 855A66760DF5E757007B394F /* NSString+HTML.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSString+HTML.h"; sourceTree = ""; }; - 855A66770DF5E757007B394F /* NSString+HTML.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSString+HTML.m"; sourceTree = ""; }; - 855A66780DF5E757007B394F /* URIParsedResult.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = URIParsedResult.h; sourceTree = ""; }; - 855A66790DF5E757007B394F /* URIParsedResult.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = URIParsedResult.m; sourceTree = ""; }; - 855A667E0DF5E757007B394F /* Scan.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Scan.h; sourceTree = ""; }; - 855A667F0DF5E757007B394F /* Scan.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Scan.m; sourceTree = ""; }; - 855A66A00DF5E7B4007B394F /* scans.db */ = {isa = PBXFileReference; lastKnownFileType = file; path = scans.db; sourceTree = ""; }; - 855A66B30DF5E884007B394F /* AddressBook.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AddressBook.framework; path = System/Library/Frameworks/AddressBook.framework; sourceTree = SDKROOT; }; - 855A66BC0DF5E8D6007B394F /* libsqlite3.0.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libsqlite3.0.dylib; path = usr/lib/libsqlite3.0.dylib; sourceTree = SDKROOT; }; - 855A66BE0DF5E8F8007B394F /* libiconv.2.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libiconv.2.dylib; path = usr/lib/libiconv.2.dylib; sourceTree = SDKROOT; }; - 855A66D10DF5E954007B394F /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; - 856EAB150E1CE6E000B2E1C7 /* libCppUnit.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libCppUnit.a; sourceTree = BUILT_PRODUCTS_DIR; }; - 85764F2C0E3DE75700A61BF5 /* PlainEmailResultParser.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PlainEmailResultParser.h; sourceTree = ""; }; - 85764F2D0E3DE75700A61BF5 /* PlainEmailResultParser.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PlainEmailResultParser.m; sourceTree = ""; }; - 85764F690E3E22FC00A61BF5 /* en */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; name = en; path = en.lproj/Hints.html; sourceTree = ""; }; - 85B1D7ED0E18EB6700514A6A /* ScanCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ScanCell.h; sourceTree = ""; }; - 85B1D7EE0E18EB6700514A6A /* ScanCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ScanCell.m; sourceTree = ""; }; - 85B1D8840E190E3A00514A6A /* Default.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Default.png; sourceTree = ""; }; - 85B8F52B0E6AD33200510402 /* photolib.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = photolib.png; sourceTree = ""; }; - 85C0B9120E123AFC005EED58 /* ResultParser.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ResultParser.h; sourceTree = ""; }; - 85C0B9130E123AFC005EED58 /* ResultParser.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ResultParser.m; sourceTree = ""; }; - 85C0B9180E123BD2005EED58 /* DoCoMoResultParser.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DoCoMoResultParser.h; sourceTree = ""; }; - 85C0B9190E123BD2005EED58 /* DoCoMoResultParser.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = DoCoMoResultParser.m; sourceTree = ""; }; - 85C0B9200E123C93005EED58 /* MeCardParser.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MeCardParser.h; sourceTree = ""; }; - 85C0B9210E123C93005EED58 /* MeCardParser.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MeCardParser.m; sourceTree = ""; }; - 85C0B9A90E123DB6005EED58 /* EmailDoCoMoResultParser.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EmailDoCoMoResultParser.h; sourceTree = ""; }; - 85C0B9AA0E123DB6005EED58 /* EmailDoCoMoResultParser.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = EmailDoCoMoResultParser.m; sourceTree = ""; }; - 85C0B9B80E123E99005EED58 /* TelResultParser.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TelResultParser.h; sourceTree = ""; }; - 85C0B9B90E123E99005EED58 /* TelResultParser.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TelResultParser.m; sourceTree = ""; }; - 85C0BA000E123F30005EED58 /* TextResultParser.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TextResultParser.h; sourceTree = ""; }; - 85C0BA010E123F30005EED58 /* TextResultParser.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TextResultParser.m; sourceTree = ""; }; - 85C0BA580E124497005EED58 /* URLTOResultParser.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = URLTOResultParser.h; sourceTree = ""; }; - 85C0BA590E124497005EED58 /* URLTOResultParser.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = URLTOResultParser.m; sourceTree = ""; }; - 85C0BA620E124AC7005EED58 /* URLResultParser.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = URLResultParser.h; sourceTree = ""; }; - 85C0BA630E124AC7005EED58 /* URLResultParser.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = URLResultParser.m; sourceTree = ""; }; - 85C0BAF80E1250E4005EED58 /* BookmarkDoCoMoResultParser.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BookmarkDoCoMoResultParser.h; sourceTree = ""; }; - 85C0BAF90E1250E4005EED58 /* BookmarkDoCoMoResultParser.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BookmarkDoCoMoResultParser.m; sourceTree = ""; }; - 85C0BAFB0E12515D005EED58 /* GeoResultParser.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GeoResultParser.h; sourceTree = ""; }; - 85C0BAFC0E12515D005EED58 /* GeoResultParser.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeoResultParser.m; sourceTree = ""; }; - 85C0BC0E0E12548D005EED58 /* SMSTOResultParser.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SMSTOResultParser.h; sourceTree = ""; }; - 85C0BC0F0E12548D005EED58 /* SMSTOResultParser.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SMSTOResultParser.m; sourceTree = ""; }; - 85C0BC120E1254C0005EED58 /* SMSParsedResult.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SMSParsedResult.h; sourceTree = ""; }; - 85C0BC130E1254C0005EED58 /* SMSParsedResult.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SMSParsedResult.m; sourceTree = ""; }; - 85C0BC1A0E125842005EED58 /* SMSResultParser.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SMSResultParser.h; sourceTree = ""; }; - 85C0BC1B0E125842005EED58 /* SMSResultParser.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SMSResultParser.m; sourceTree = ""; }; - 85C37A400E4076BB0052209B /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/Message.xib; sourceTree = ""; }; - 85C3CC2D0E119E1600A01C6A /* business-card.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "business-card.png"; sourceTree = ""; }; - 85C3CC2E0E119E1700A01C6A /* email.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = email.png; sourceTree = ""; }; - 85C3CC2F0E119E1700A01C6A /* link1.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = link1.png; sourceTree = ""; }; - 85C3CC300E119E1700A01C6A /* link2.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = link2.png; sourceTree = ""; }; - 85C3CC310E119E1700A01C6A /* map-pin.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "map-pin.png"; sourceTree = ""; }; - 85C3CC320E119E1700A01C6A /* phone.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = phone.png; sourceTree = ""; }; - 85C3CC330E119E1700A01C6A /* sms.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = sms.png; sourceTree = ""; }; - 85C3CC340E119E1700A01C6A /* text.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = text.png; sourceTree = ""; }; - 85C4969B0E4A3E87003DB029 /* filmroll-2.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "filmroll-2.png"; sourceTree = ""; }; - 85D937250E11064700B785E0 /* ScanViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ScanViewController.h; sourceTree = ""; }; - 85D937260E11064700B785E0 /* ScanViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ScanViewController.m; sourceTree = ""; }; - 85E883960E1A34D2004C4547 /* ScannedImageView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ScannedImageView.h; sourceTree = ""; }; - 85E883970E1A34D2004C4547 /* ScannedImageView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ScannedImageView.m; sourceTree = ""; }; - 85E945260E9410EF0052CC40 /* ZxingLarge.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = ZxingLarge.png; sourceTree = ""; }; - 85F7D20E0E41D4A700FDC34E /* de */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = de; path = de.lproj/Message.xib; sourceTree = ""; }; - 85F7D20F0E41D4A700FDC34E /* de */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; name = de; path = de.lproj/Hints.html; sourceTree = ""; }; - 85F7D2100E41D4B300FDC34E /* sv */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = sv; path = sv.lproj/Message.xib; sourceTree = ""; }; - 85F7D2110E41D4B300FDC34E /* sv */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; name = sv; path = sv.lproj/Hints.html; sourceTree = ""; }; - 85F895040E543F0400C0A666 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; - 8B2B9BE3118FB42D00437315 /* FormatReader.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = FormatReader.mm; sourceTree = ""; }; - 8B2B9BE4118FB42D00437315 /* MultiFormatReader.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = MultiFormatReader.mm; sourceTree = ""; }; - 8B2B9BE5118FB42D00437315 /* FormatReader.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FormatReader.h; sourceTree = ""; }; - 8D1107310486CEB800E47090 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - AD92A8B910BFE07F009C3614 /* GrayBytesMonochromeBitmapSource.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GrayBytesMonochromeBitmapSource.h; sourceTree = ""; }; - AD92A8BA10BFE07F009C3614 /* GrayBytesMonochromeBitmapSource.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = GrayBytesMonochromeBitmapSource.cpp; sourceTree = ""; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - 1D60588F0D05DD3D006BFB54 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 8514EB1A0DF8A54600EE78D3 /* libzxingcore.a in Frameworks */, - 1D60589F0D05DD5A006BFB54 /* Foundation.framework in Frameworks */, - 1DF5F4E00D08C38300B7A737 /* UIKit.framework in Frameworks */, - 855A66B40DF5E884007B394F /* AddressBook.framework in Frameworks */, - 855A66BD0DF5E8D6007B394F /* libsqlite3.0.dylib in Frameworks */, - 855A66BF0DF5E8F8007B394F /* libiconv.2.dylib in Frameworks */, - 855A66D20DF5E954007B394F /* CoreGraphics.framework in Frameworks */, - 854BE3010E06A56C00CB4A20 /* AddressBookUI.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 8514EAE60DF88E5200EE78D3 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 856EAB130E1CE6E000B2E1C7 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 856EAB790E1CE8AA00B2E1C7 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 856EAB7D0E1CE8D400B2E1C7 /* libzxingcore.a in Frameworks */, - 856EAB7E0E1CE8D400B2E1C7 /* libCppUnit.a in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 080E96DDFE201D6D7F000001 /* Classes */ = { - isa = PBXGroup; - children = ( - 85C0B9100E123AC4005EED58 /* ResultParsers */, - 85C0B8E70E1238FD005EED58 /* ParsedResults */, - 85C0B8E80E123929005EED58 /* Actions */, - 851B4BF40DF6C64A00C8958F /* TwoDDecoderResult.h */, - 851B4BF50DF6C64A00C8958F /* TwoDDecoderResult.m */, - 85D937250E11064700B785E0 /* ScanViewController.h */, - 85D937260E11064700B785E0 /* ScanViewController.m */, - 85B1D7ED0E18EB6700514A6A /* ScanCell.h */, - 85B1D7EE0E18EB6700514A6A /* ScanCell.m */, - 8B2B9BE3118FB42D00437315 /* FormatReader.mm */, - 8B2B9BE4118FB42D00437315 /* MultiFormatReader.mm */, - 8B2B9BE5118FB42D00437315 /* FormatReader.h */, - 855A66520DF5E757007B394F /* ArchiveController.h */, - 855A66510DF5E757007B394F /* ArchiveController.m */, - 855A66530DF5E757007B394F /* Database.h */, - 855A66540DF5E757007B394F /* Database.m */, - 855A666D0DF5E757007B394F /* DecoderViewController.h */, - 855A666E0DF5E757007B394F /* DecoderViewController.m */, - 855A666F0DF5E757007B394F /* DecoderDelegate.h */, - 855A66700DF5E757007B394F /* Decoder.h */, - 855A66710DF5E757007B394F /* Decoder.mm */, - 855A66720DF5E757007B394F /* ZXingAppDelegate.h */, - 855A66730DF5E757007B394F /* ZXingAppDelegate.m */, - 855A66760DF5E757007B394F /* NSString+HTML.h */, - 855A66770DF5E757007B394F /* NSString+HTML.m */, - 855A667E0DF5E757007B394F /* Scan.h */, - 855A667F0DF5E757007B394F /* Scan.m */, - 85E883960E1A34D2004C4547 /* ScannedImageView.h */, - 85E883970E1A34D2004C4547 /* ScannedImageView.m */, - 853678510E538F9E0054126A /* MessageViewController.h */, - 853678520E538F9E0054126A /* MessageViewController.m */, - AD92A8B910BFE07F009C3614 /* GrayBytesMonochromeBitmapSource.h */, - AD92A8BA10BFE07F009C3614 /* GrayBytesMonochromeBitmapSource.cpp */, - ); - path = Classes; - sourceTree = ""; - }; - 19C28FACFE9D520D11CA2CBB /* Products */ = { - isa = PBXGroup; - children = ( - 1D6058910D05DD3D006BFB54 /* Barcodes.app */, - 8514EB190DF8A52700EE78D3 /* libzxingcore.a */, - 856EAB150E1CE6E000B2E1C7 /* libCppUnit.a */, - ); - name = Products; - sourceTree = ""; - }; - 1F513B5C11B4E17700E217E3 /* CoreSrc */ = { - isa = PBXGroup; - children = ( - 1FB4343C12904343002D63E8 /* zxing */, - ); - name = CoreSrc; - sourceTree = ""; - }; - 1FB4343C12904343002D63E8 /* zxing */ = { - isa = PBXGroup; - children = ( - 1FB4343D12904343002D63E8 /* BarcodeFormat.cpp */, - 1FB4343E12904343002D63E8 /* BarcodeFormat.h */, - 1FB4343F12904343002D63E8 /* Binarizer.cpp */, - 1FB4344012904343002D63E8 /* Binarizer.h */, - 1FB4344112904343002D63E8 /* BinaryBitmap.cpp */, - 1FB4344212904343002D63E8 /* BinaryBitmap.h */, - 1FB4344312904343002D63E8 /* common */, - 1FB4346E12904343002D63E8 /* datamatrix */, - 1FB4348312904343002D63E8 /* DecodeHints.cpp */, - 1FB4348412904343002D63E8 /* DecodeHints.h */, - 1FB4348512904343002D63E8 /* Exception.cpp */, - 1FB4348612904343002D63E8 /* Exception.h */, - 1FB4348712904343002D63E8 /* LuminanceSource.cpp */, - 1FB4348812904343002D63E8 /* LuminanceSource.h */, - 1FB4348912904343002D63E8 /* MultiFormatReader.cpp */, - 1FB4348A12904343002D63E8 /* MultiFormatReader.h */, - 1FB4348B12904343002D63E8 /* oned */, - 1FB434A412904343002D63E8 /* qrcode */, - 1FB434C912904344002D63E8 /* Reader.cpp */, - 1FB434CA12904344002D63E8 /* Reader.h */, - 1FB434CB12904344002D63E8 /* ReaderException.cpp */, - 1FB434CC12904344002D63E8 /* ReaderException.h */, - 1FB434CD12904344002D63E8 /* Result.cpp */, - 1FB434CE12904344002D63E8 /* Result.h */, - 1FB434CF12904344002D63E8 /* ResultPoint.cpp */, - 1FB434D012904344002D63E8 /* ResultPoint.h */, - 1FB434D112904344002D63E8 /* ResultPointCallback.cpp */, - 1FB434D212904344002D63E8 /* ResultPointCallback.h */, - ); - name = zxing; - path = ../../../cpp/core/src/zxing; - sourceTree = SOURCE_ROOT; - }; - 1FB4344312904343002D63E8 /* common */ = { - isa = PBXGroup; - children = ( - 1FB4344412904343002D63E8 /* Array.cpp */, - 1FB4344512904343002D63E8 /* Array.h */, - 1FB4344612904343002D63E8 /* BitArray.cpp */, - 1FB4344712904343002D63E8 /* BitArray.h */, - 1FB4344812904343002D63E8 /* BitMatrix.cpp */, - 1FB4344912904343002D63E8 /* BitMatrix.h */, - 1FB4344A12904343002D63E8 /* BitSource.cpp */, - 1FB4344B12904343002D63E8 /* BitSource.h */, - 1FB4344C12904343002D63E8 /* Counted.cpp */, - 1FB4344D12904343002D63E8 /* Counted.h */, - 1FB4344E12904343002D63E8 /* DecoderResult.cpp */, - 1FB4344F12904343002D63E8 /* DecoderResult.h */, - 1FB4345012904343002D63E8 /* DetectorResult.cpp */, - 1FB4345112904343002D63E8 /* DetectorResult.h */, - 1FB4345212904343002D63E8 /* EdgeDetector.cpp */, - 1FB4345312904343002D63E8 /* EdgeDetector.h */, - 1FB4345412904343002D63E8 /* GlobalHistogramBinarizer.cpp */, - 1FB4345512904343002D63E8 /* GlobalHistogramBinarizer.h */, - 1FB4345612904343002D63E8 /* GreyscaleLuminanceSource.cpp */, - 1FB4345712904343002D63E8 /* GreyscaleLuminanceSource.h */, - 1FB4345812904343002D63E8 /* GreyscaleRotatedLuminanceSource.cpp */, - 1FB4345912904343002D63E8 /* GreyscaleRotatedLuminanceSource.h */, - 1FB4345A12904343002D63E8 /* GridSampler.cpp */, - 1FB4345B12904343002D63E8 /* GridSampler.h */, - 1FB4345C12904343002D63E8 /* HybridBinarizer.cpp */, - 1FB4345D12904343002D63E8 /* HybridBinarizer.h */, - 1FB4345E12904343002D63E8 /* IllegalArgumentException.cpp */, - 1FB4345F12904343002D63E8 /* IllegalArgumentException.h */, - 1FB4346012904343002D63E8 /* PerspectiveTransform.cpp */, - 1FB4346112904343002D63E8 /* PerspectiveTransform.h */, - 1FB4346212904343002D63E8 /* Point.h */, - 1FB4346312904343002D63E8 /* reedsolomon */, - 1FB4346C12904343002D63E8 /* Str.cpp */, - 1FB4346D12904343002D63E8 /* Str.h */, - ); - path = common; - sourceTree = ""; - }; - 1FB4346312904343002D63E8 /* reedsolomon */ = { - isa = PBXGroup; - children = ( - 1FB4346412904343002D63E8 /* GF256.cpp */, - 1FB4346512904343002D63E8 /* GF256.h */, - 1FB4346612904343002D63E8 /* GF256Poly.cpp */, - 1FB4346712904343002D63E8 /* GF256Poly.h */, - 1FB4346812904343002D63E8 /* ReedSolomonDecoder.cpp */, - 1FB4346912904343002D63E8 /* ReedSolomonDecoder.h */, - 1FB4346A12904343002D63E8 /* ReedSolomonException.cpp */, - 1FB4346B12904343002D63E8 /* ReedSolomonException.h */, - ); - path = reedsolomon; - sourceTree = ""; - }; - 1FB4346E12904343002D63E8 /* datamatrix */ = { - isa = PBXGroup; - children = ( - 1FB4346F12904343002D63E8 /* DataMatrixReader.cpp */, - 1FB4347012904343002D63E8 /* DataMatrixReader.h */, - 1FB4347112904343002D63E8 /* decoder */, - 1FB4347A12904343002D63E8 /* detector */, - 1FB4348112904343002D63E8 /* Version.cpp */, - 1FB4348212904343002D63E8 /* Version.h */, - ); - path = datamatrix; - sourceTree = ""; - }; - 1FB4347112904343002D63E8 /* decoder */ = { - isa = PBXGroup; - children = ( - 1FB4347212904343002D63E8 /* BitMatrixParser.cpp */, - 1FB4347312904343002D63E8 /* BitMatrixParser.h */, - 1FB4347412904343002D63E8 /* DataBlock.cpp */, - 1FB4347512904343002D63E8 /* DataBlock.h */, - 1FB4347612904343002D63E8 /* DecodedBitStreamParser.cpp */, - 1FB4347712904343002D63E8 /* DecodedBitStreamParser.h */, - 1FB4347812904343002D63E8 /* Decoder.cpp */, - 1FB4347912904343002D63E8 /* Decoder.h */, - ); - path = decoder; - sourceTree = ""; - }; - 1FB4347A12904343002D63E8 /* detector */ = { - isa = PBXGroup; - children = ( - 1FB4347B12904343002D63E8 /* CornerPoint.cpp */, - 1FB4347C12904343002D63E8 /* CornerPoint.h */, - 1FB4347D12904343002D63E8 /* Detector.cpp */, - 1FB4347E12904343002D63E8 /* Detector.h */, - 1FB4347F12904343002D63E8 /* MonochromeRectangleDetector.cpp */, - 1FB4348012904343002D63E8 /* MonochromeRectangleDetector.h */, - ); - path = detector; - sourceTree = ""; - }; - 1FB4348B12904343002D63E8 /* oned */ = { - isa = PBXGroup; - children = ( - 1FB4348C12904343002D63E8 /* Code128Reader.cpp */, - 1FB4348D12904343002D63E8 /* Code128Reader.h */, - 1FB4348E12904343002D63E8 /* Code39Reader.cpp */, - 1FB4348F12904343002D63E8 /* Code39Reader.h */, - 1FB4349012904343002D63E8 /* EAN13Reader.cpp */, - 1FB4349112904343002D63E8 /* EAN13Reader.h */, - 1FB4349212904343002D63E8 /* EAN8Reader.cpp */, - 1FB4349312904343002D63E8 /* EAN8Reader.h */, - 1FB4349412904343002D63E8 /* ITFReader.cpp */, - 1FB4349512904343002D63E8 /* ITFReader.h */, - 1FB4349612904343002D63E8 /* MultiFormatOneDReader.cpp */, - 1FB4349712904343002D63E8 /* MultiFormatOneDReader.h */, - 1FB4349812904343002D63E8 /* MultiFormatUPCEANReader.cpp */, - 1FB4349912904343002D63E8 /* MultiFormatUPCEANReader.h */, - 1FB4349A12904343002D63E8 /* OneDReader.cpp */, - 1FB4349B12904343002D63E8 /* OneDReader.h */, - 1FB4349C12904343002D63E8 /* OneDResultPoint.cpp */, - 1FB4349D12904343002D63E8 /* OneDResultPoint.h */, - 1FB4349E12904343002D63E8 /* UPCAReader.cpp */, - 1FB4349F12904343002D63E8 /* UPCAReader.h */, - 1FB434A012904343002D63E8 /* UPCEANReader.cpp */, - 1FB434A112904343002D63E8 /* UPCEANReader.h */, - 1FB434A212904343002D63E8 /* UPCEReader.cpp */, - 1FB434A312904343002D63E8 /* UPCEReader.h */, - ); - path = oned; - sourceTree = ""; - }; - 1FB434A412904343002D63E8 /* qrcode */ = { - isa = PBXGroup; - children = ( - 1FB434A512904343002D63E8 /* decoder */, - 1FB434B212904344002D63E8 /* detector */, - 1FB434C112904344002D63E8 /* ErrorCorrectionLevel.cpp */, - 1FB434C212904344002D63E8 /* ErrorCorrectionLevel.h */, - 1FB434C312904344002D63E8 /* FormatInformation.cpp */, - 1FB434C412904344002D63E8 /* FormatInformation.h */, - 1FB434C512904344002D63E8 /* QRCodeReader.cpp */, - 1FB434C612904344002D63E8 /* QRCodeReader.h */, - 1FB434C712904344002D63E8 /* Version.cpp */, - 1FB434C812904344002D63E8 /* Version.h */, - ); - path = qrcode; - sourceTree = ""; - }; - 1FB434A512904343002D63E8 /* decoder */ = { - isa = PBXGroup; - children = ( - 1FB434A612904343002D63E8 /* BitMatrixParser.cpp */, - 1FB434A712904343002D63E8 /* BitMatrixParser.h */, - 1FB434A812904343002D63E8 /* DataBlock.cpp */, - 1FB434A912904343002D63E8 /* DataBlock.h */, - 1FB434AA12904344002D63E8 /* DataMask.cpp */, - 1FB434AB12904344002D63E8 /* DataMask.h */, - 1FB434AC12904344002D63E8 /* DecodedBitStreamParser.cpp */, - 1FB434AD12904344002D63E8 /* DecodedBitStreamParser.h */, - 1FB434AE12904344002D63E8 /* Decoder.cpp */, - 1FB434AF12904344002D63E8 /* Decoder.h */, - 1FB434B012904344002D63E8 /* Mode.cpp */, - 1FB434B112904344002D63E8 /* Mode.h */, - ); - path = decoder; - sourceTree = ""; - }; - 1FB434B212904344002D63E8 /* detector */ = { - isa = PBXGroup; - children = ( - 1FB434B312904344002D63E8 /* AlignmentPattern.cpp */, - 1FB434B412904344002D63E8 /* AlignmentPattern.h */, - 1FB434B512904344002D63E8 /* AlignmentPatternFinder.cpp */, - 1FB434B612904344002D63E8 /* AlignmentPatternFinder.h */, - 1FB434B712904344002D63E8 /* Detector.cpp */, - 1FB434B812904344002D63E8 /* Detector.h */, - 1FB434B912904344002D63E8 /* FinderPattern.cpp */, - 1FB434BA12904344002D63E8 /* FinderPattern.h */, - 1FB434BB12904344002D63E8 /* FinderPatternFinder.cpp */, - 1FB434BC12904344002D63E8 /* FinderPatternFinder.h */, - 1FB434BD12904344002D63E8 /* FinderPatternInfo.cpp */, - 1FB434BE12904344002D63E8 /* FinderPatternInfo.h */, - 1FB434BF12904344002D63E8 /* QREdgeDetector.cpp */, - 1FB434C012904344002D63E8 /* QREdgeDetector.h */, - ); - path = detector; - sourceTree = ""; - }; - 29B97314FDCFA39411CA2CEA /* CustomTemplate */ = { - isa = PBXGroup; - children = ( - 1F513B5C11B4E17700E217E3 /* CoreSrc */, - 8555304D0E643BA800C7B5DE /* Entitlements.plist */, - 8514EA5F0DF88C9E00EE78D3 /* src */, - 080E96DDFE201D6D7F000001 /* Classes */, - 29B97315FDCFA39411CA2CEA /* Other Sources */, - 29B97317FDCFA39411CA2CEA /* Resources */, - 29B97323FDCFA39411CA2CEA /* Frameworks */, - 19C28FACFE9D520D11CA2CBB /* Products */, - ); - name = CustomTemplate; - sourceTree = ""; - }; - 29B97315FDCFA39411CA2CEA /* Other Sources */ = { - isa = PBXGroup; - children = ( - 32CA4F630368D1EE00C91783 /* ZXing_Prefix.pch */, - 29B97316FDCFA39411CA2CEA /* main.m */, - ); - name = "Other Sources"; - sourceTree = ""; - }; - 29B97317FDCFA39411CA2CEA /* Resources */ = { - isa = PBXGroup; - children = ( - 85E945260E9410EF0052CC40 /* ZxingLarge.png */, - 85C37A3F0E4076BB0052209B /* Message.xib */, - 85764F680E3E22FC00A61BF5 /* Hints.html */, - 85B1D8840E190E3A00514A6A /* Default.png */, - 85C3CC0F0E119E0500A01C6A /* Images */, - 852A99960E0BC49E003E6D6D /* Localizable.strings */, - 855A66A00DF5E7B4007B394F /* scans.db */, - 852A998E0E0BC433003E6D6D /* DecoderView.xib */, - 852A99900E0BC43C003E6D6D /* MainWindow.xib */, - 8D1107310486CEB800E47090 /* Info.plist */, - 853678820E5394D70054126A /* About.html */, - 85F895020E543EE100C0A666 /* InfoPlist.strings */, - ); - name = Resources; - sourceTree = ""; - }; - 29B97323FDCFA39411CA2CEA /* Frameworks */ = { - isa = PBXGroup; - children = ( - 854BE3000E06A56C00CB4A20 /* AddressBookUI.framework */, - 855A66D10DF5E954007B394F /* CoreGraphics.framework */, - 855A66B30DF5E884007B394F /* AddressBook.framework */, - 855A66BE0DF5E8F8007B394F /* libiconv.2.dylib */, - 855A66BC0DF5E8D6007B394F /* libsqlite3.0.dylib */, - 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */, - 1D30AB110D05D00D00671497 /* Foundation.framework */, - ); - name = Frameworks; - sourceTree = ""; - }; - 8514EA5F0DF88C9E00EE78D3 /* src */ = { - isa = PBXGroup; - children = ( - 8514EA600DF88C9E00EE78D3 /* common */, - 8514EA700DF88C9E00EE78D3 /* qrcode */, - 8514EA7C0DF88C9E00EE78D3 /* TestRunner.cpp */, - ); - name = src; - path = ../../../cpp/core/tests/src; - sourceTree = ""; - }; - 8514EA600DF88C9E00EE78D3 /* common */ = { - isa = PBXGroup; - children = ( - 8514EA610DF88C9E00EE78D3 /* BitArrayTest.cpp */, - 8514EA620DF88C9E00EE78D3 /* BitArrayTest.h */, - 8514EA630DF88C9E00EE78D3 /* BitMatrixTest.cpp */, - 8514EA640DF88C9E00EE78D3 /* BitMatrixTest.h */, - 8514EA650DF88C9E00EE78D3 /* BitSourceTest.cpp */, - 8514EA660DF88C9E00EE78D3 /* BitSourceTest.h */, - 8514EA670DF88C9E00EE78D3 /* BlackPointEstimatorTest.cpp */, - 8514EA680DF88C9E00EE78D3 /* BlackPointEstimatorTest.h */, - 8514EA690DF88C9E00EE78D3 /* CountedTest.cpp */, - 8514EA6A0DF88C9E00EE78D3 /* CountedTest.h */, - 8514EA6B0DF88C9E00EE78D3 /* PerspectiveTransformTest.cpp */, - 8514EA6C0DF88C9E00EE78D3 /* PerspectiveTransformTest.h */, - 8514EA6D0DF88C9E00EE78D3 /* reedsolomon */, - ); - path = common; - sourceTree = ""; - }; - 8514EA6D0DF88C9E00EE78D3 /* reedsolomon */ = { - isa = PBXGroup; - children = ( - 8514EA6E0DF88C9E00EE78D3 /* ReedSolomonTest.cpp */, - 8514EA6F0DF88C9E00EE78D3 /* ReedSolomonTest.h */, - ); - path = reedsolomon; - sourceTree = ""; - }; - 8514EA700DF88C9E00EE78D3 /* qrcode */ = { - isa = PBXGroup; - children = ( - 8514EA710DF88C9E00EE78D3 /* decoder */, - ); - path = qrcode; - sourceTree = ""; - }; - 8514EA710DF88C9E00EE78D3 /* decoder */ = { - isa = PBXGroup; - children = ( - 8514EA720DF88C9E00EE78D3 /* DataMaskTest.cpp */, - 8514EA730DF88C9E00EE78D3 /* DataMaskTest.h */, - 8514EA740DF88C9E00EE78D3 /* ErrorCorrectionLevelTest.cpp */, - 8514EA750DF88C9E00EE78D3 /* ErrorCorrectionLevelTest.h */, - 8514EA760DF88C9E00EE78D3 /* FormatInformationTest.cpp */, - 8514EA770DF88C9E00EE78D3 /* FormatInformationTest.h */, - 8514EA780DF88C9E00EE78D3 /* ModeTest.cpp */, - 8514EA790DF88C9E00EE78D3 /* ModeTest.h */, - 8514EA7A0DF88C9E00EE78D3 /* VersionTest.cpp */, - 8514EA7B0DF88C9E00EE78D3 /* VersionTest.h */, - ); - path = decoder; - sourceTree = ""; - }; - 85C0B8E70E1238FD005EED58 /* ParsedResults */ = { - isa = PBXGroup; - children = ( - 855A66590DF5E757007B394F /* BusinessCardParsedResult.h */, - 855A665A0DF5E757007B394F /* BusinessCardParsedResult.m */, - 855A665F0DF5E757007B394F /* EmailParsedResult.h */, - 855A66600DF5E757007B394F /* EmailParsedResult.m */, - 855A66690DF5E757007B394F /* TelParsedResult.h */, - 855A666A0DF5E757007B394F /* TelParsedResult.m */, - 855A666B0DF5E757007B394F /* TextParsedResult.h */, - 855A666C0DF5E757007B394F /* TextParsedResult.m */, - 855A66740DF5E757007B394F /* ParsedResult.h */, - 855A66750DF5E757007B394F /* ParsedResult.m */, - 855A66780DF5E757007B394F /* URIParsedResult.h */, - 855A66790DF5E757007B394F /* URIParsedResult.m */, - 852683A00DF851ED005DD4C0 /* GeoParsedResult.h */, - 852683A10DF851ED005DD4C0 /* GeoParsedResult.m */, - 85C0BC120E1254C0005EED58 /* SMSParsedResult.h */, - 85C0BC130E1254C0005EED58 /* SMSParsedResult.m */, - ); - name = ParsedResults; - sourceTree = ""; - }; - 85C0B8E80E123929005EED58 /* Actions */ = { - isa = PBXGroup; - children = ( - 85096CCE0E06D45400D660F9 /* SMSAction.h */, - 85096CCF0E06D45400D660F9 /* SMSAction.m */, - 852683C00DF8562B005DD4C0 /* ShowMapAction.h */, - 852683C10DF8562B005DD4C0 /* ShowMapAction.m */, - 855A66570DF5E757007B394F /* AddContactAction.h */, - 855A66580DF5E757007B394F /* AddContactAction.m */, - 855A665D0DF5E757007B394F /* EmailAction.h */, - 855A665E0DF5E757007B394F /* EmailAction.m */, - 855A66630DF5E757007B394F /* CallAction.h */, - 855A66640DF5E757007B394F /* CallAction.m */, - 855A66650DF5E757007B394F /* OpenUrlAction.h */, - 855A66660DF5E757007B394F /* OpenUrlAction.m */, - 855A66670DF5E757007B394F /* ResultAction.h */, - 855A66680DF5E757007B394F /* ResultAction.m */, - ); - name = Actions; - sourceTree = ""; - }; - 85C0B9100E123AC4005EED58 /* ResultParsers */ = { - isa = PBXGroup; - children = ( - 85C0B9120E123AFC005EED58 /* ResultParser.h */, - 85C0B9130E123AFC005EED58 /* ResultParser.m */, - 85C0B9180E123BD2005EED58 /* DoCoMoResultParser.h */, - 85C0B9190E123BD2005EED58 /* DoCoMoResultParser.m */, - 85C0B9200E123C93005EED58 /* MeCardParser.h */, - 85C0B9210E123C93005EED58 /* MeCardParser.m */, - 85C0B9A90E123DB6005EED58 /* EmailDoCoMoResultParser.h */, - 85C0B9AA0E123DB6005EED58 /* EmailDoCoMoResultParser.m */, - 85C0BAF80E1250E4005EED58 /* BookmarkDoCoMoResultParser.h */, - 85C0BAF90E1250E4005EED58 /* BookmarkDoCoMoResultParser.m */, - 85C0B9B80E123E99005EED58 /* TelResultParser.h */, - 85C0B9B90E123E99005EED58 /* TelResultParser.m */, - 85C0BA000E123F30005EED58 /* TextResultParser.h */, - 85C0BA010E123F30005EED58 /* TextResultParser.m */, - 85C0BA620E124AC7005EED58 /* URLResultParser.h */, - 85C0BA630E124AC7005EED58 /* URLResultParser.m */, - 85C0BA580E124497005EED58 /* URLTOResultParser.h */, - 85C0BA590E124497005EED58 /* URLTOResultParser.m */, - 85C0BC1A0E125842005EED58 /* SMSResultParser.h */, - 85C0BC1B0E125842005EED58 /* SMSResultParser.m */, - 85C0BAFB0E12515D005EED58 /* GeoResultParser.h */, - 85C0BAFC0E12515D005EED58 /* GeoResultParser.m */, - 85C0BC0E0E12548D005EED58 /* SMSTOResultParser.h */, - 85C0BC0F0E12548D005EED58 /* SMSTOResultParser.m */, - 85764F2C0E3DE75700A61BF5 /* PlainEmailResultParser.h */, - 85764F2D0E3DE75700A61BF5 /* PlainEmailResultParser.m */, - ); - name = ResultParsers; - sourceTree = ""; - }; - 85C3CC0F0E119E0500A01C6A /* Images */ = { - isa = PBXGroup; - children = ( - 85B8F52B0E6AD33200510402 /* photolib.png */, - 8555307A0E64504300C7B5DE /* icon.png */, - 85C4969B0E4A3E87003DB029 /* filmroll-2.png */, - 85C3CC2D0E119E1600A01C6A /* business-card.png */, - 85C3CC2E0E119E1700A01C6A /* email.png */, - 85C3CC2F0E119E1700A01C6A /* link1.png */, - 85C3CC300E119E1700A01C6A /* link2.png */, - 85C3CC310E119E1700A01C6A /* map-pin.png */, - 85C3CC320E119E1700A01C6A /* phone.png */, - 85C3CC330E119E1700A01C6A /* sms.png */, - 85C3CC340E119E1700A01C6A /* text.png */, - ); - name = Images; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXHeadersBuildPhase section */ - 8514EAE40DF88E5200EE78D3 /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 856EAB110E1CE6E000B2E1C7 /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXHeadersBuildPhase section */ - -/* Begin PBXNativeTarget section */ - 1D6058900D05DD3D006BFB54 /* Barcodes */ = { - isa = PBXNativeTarget; - buildConfigurationList = 1D6058960D05DD3E006BFB54 /* Build configuration list for PBXNativeTarget "Barcodes" */; - buildPhases = ( - 1D60588D0D05DD3D006BFB54 /* Resources */, - 1D60588E0D05DD3D006BFB54 /* Sources */, - 1D60588F0D05DD3D006BFB54 /* Frameworks */, - ); - buildRules = ( - ); - comments = "/*\n * Copyright 2008 Google Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n"; - dependencies = ( - 8514EB180DF8A50900EE78D3 /* PBXTargetDependency */, - ); - name = Barcodes; - productName = ZXing; - productReference = 1D6058910D05DD3D006BFB54 /* Barcodes.app */; - productType = "com.apple.product-type.application"; - }; - 8514EAE70DF88E5200EE78D3 /* zxingcore */ = { - isa = PBXNativeTarget; - buildConfigurationList = 8514EAEB0DF88E7100EE78D3 /* Build configuration list for PBXNativeTarget "zxingcore" */; - buildPhases = ( - 8514EAE40DF88E5200EE78D3 /* Headers */, - 8514EAE50DF88E5200EE78D3 /* Sources */, - 8514EAE60DF88E5200EE78D3 /* Frameworks */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = zxingcore; - productName = libzxing; - productReference = 8514EB190DF8A52700EE78D3 /* libzxingcore.a */; - productType = "com.apple.product-type.library.static"; - }; - 856EAB140E1CE6E000B2E1C7 /* CppUnit */ = { - isa = PBXNativeTarget; - buildConfigurationList = 856EAB180E1CE6F400B2E1C7 /* Build configuration list for PBXNativeTarget "CppUnit" */; - buildPhases = ( - 856EAB110E1CE6E000B2E1C7 /* Headers */, - 856EAB120E1CE6E000B2E1C7 /* Sources */, - 856EAB130E1CE6E000B2E1C7 /* Frameworks */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = CppUnit; - productName = CppUnit; - productReference = 856EAB150E1CE6E000B2E1C7 /* libCppUnit.a */; - productType = "com.apple.product-type.library.static"; - }; - 856EAB7A0E1CE8AA00B2E1C7 /* zxingcore-tests */ = { - isa = PBXNativeTarget; - buildConfigurationList = 856EAB7F0E1CE8F200B2E1C7 /* Build configuration list for PBXNativeTarget "zxingcore-tests" */; - buildPhases = ( - 856EAB780E1CE8AA00B2E1C7 /* Sources */, - 856EAB790E1CE8AA00B2E1C7 /* Frameworks */, - ); - buildRules = ( - ); - dependencies = ( - 856EABB10E1CE97800B2E1C7 /* PBXTargetDependency */, - 856EABB30E1CE97B00B2E1C7 /* PBXTargetDependency */, - ); - name = "zxingcore-tests"; - productName = "zxingcore-tests"; - productType = "com.apple.product-type.tool"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - 29B97313FDCFA39411CA2CEA /* Project object */ = { - isa = PBXProject; - buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "ZXing" */; - compatibilityVersion = "Xcode 3.1"; - developmentRegion = English; - hasScannedForEncodings = 1; - knownRegions = ( - English, - Japanese, - French, - German, - Swedish, - sv, - en, - de, - se, - ); - mainGroup = 29B97314FDCFA39411CA2CEA /* CustomTemplate */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - 1D6058900D05DD3D006BFB54 /* Barcodes */, - 8514EAE70DF88E5200EE78D3 /* zxingcore */, - 856C25780E1BC767006ABF00 /* Build All */, - 856C257D0E1BC779006ABF00 /* Test All */, - 856EAB140E1CE6E000B2E1C7 /* CppUnit */, - 856EAB7A0E1CE8AA00B2E1C7 /* zxingcore-tests */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXResourcesBuildPhase section */ - 1D60588D0D05DD3D006BFB54 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 855A66A50DF5E7B4007B394F /* scans.db in Resources */, - 852A998F0E0BC433003E6D6D /* DecoderView.xib in Resources */, - 852A99910E0BC43C003E6D6D /* MainWindow.xib in Resources */, - 852A99970E0BC49E003E6D6D /* Localizable.strings in Resources */, - 85C3CC350E119E1700A01C6A /* business-card.png in Resources */, - 85C3CC360E119E1700A01C6A /* email.png in Resources */, - 85C3CC370E119E1700A01C6A /* link1.png in Resources */, - 85C3CC380E119E1700A01C6A /* link2.png in Resources */, - 85C3CC390E119E1700A01C6A /* map-pin.png in Resources */, - 85C3CC3A0E119E1700A01C6A /* phone.png in Resources */, - 85C3CC3B0E119E1700A01C6A /* sms.png in Resources */, - 85C3CC3C0E119E1700A01C6A /* text.png in Resources */, - 85B1D8850E190E3A00514A6A /* Default.png in Resources */, - 85764F6A0E3E22FC00A61BF5 /* Hints.html in Resources */, - 85C37A410E4076BB0052209B /* Message.xib in Resources */, - 85C4969C0E4A3E87003DB029 /* filmroll-2.png in Resources */, - 853678830E5394D70054126A /* About.html in Resources */, - 85F895030E543EE100C0A666 /* InfoPlist.strings in Resources */, - 8555304E0E643BA800C7B5DE /* Entitlements.plist in Resources */, - 8555307B0E64504300C7B5DE /* icon.png in Resources */, - 85B8F52C0E6AD33200510402 /* photolib.png in Resources */, - 85E945270E9410EF0052CC40 /* ZxingLarge.png in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXShellScriptBuildPhase section */ - 856EABB80E1CE9FF00B2E1C7 /* ShellScript */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - comments = "Run the tests\n"; - files = ( - ); - inputPaths = ( - ); - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "echo \"Running ${BUILT_PRODUCTS_DIR}/zxingcore-tests\"\n${BUILT_PRODUCTS_DIR}/zxingcore-tests\n"; - }; -/* End PBXShellScriptBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - 1D60588E0D05DD3D006BFB54 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 1D60589B0D05DD56006BFB54 /* main.m in Sources */, - 855A66800DF5E757007B394F /* ArchiveController.m in Sources */, - 855A66810DF5E757007B394F /* Database.m in Sources */, - 855A66830DF5E757007B394F /* AddContactAction.m in Sources */, - 855A66840DF5E757007B394F /* BusinessCardParsedResult.m in Sources */, - 855A66860DF5E757007B394F /* EmailAction.m in Sources */, - 855A66870DF5E757007B394F /* EmailParsedResult.m in Sources */, - 855A66890DF5E757007B394F /* CallAction.m in Sources */, - 855A668A0DF5E757007B394F /* OpenUrlAction.m in Sources */, - 855A668B0DF5E757007B394F /* ResultAction.m in Sources */, - 855A668C0DF5E757007B394F /* TelParsedResult.m in Sources */, - 855A668D0DF5E757007B394F /* TextParsedResult.m in Sources */, - 855A668E0DF5E757007B394F /* DecoderViewController.m in Sources */, - 855A668F0DF5E757007B394F /* Decoder.mm in Sources */, - 855A66900DF5E757007B394F /* ZXingAppDelegate.m in Sources */, - 855A66910DF5E757007B394F /* ParsedResult.m in Sources */, - 855A66920DF5E757007B394F /* NSString+HTML.m in Sources */, - 855A66930DF5E757007B394F /* URIParsedResult.m in Sources */, - 855A66960DF5E757007B394F /* Scan.m in Sources */, - 851B4BF60DF6C64A00C8958F /* TwoDDecoderResult.m in Sources */, - 852683A20DF851ED005DD4C0 /* GeoParsedResult.m in Sources */, - 852683C20DF8562B005DD4C0 /* ShowMapAction.m in Sources */, - 85096CD00E06D45400D660F9 /* SMSAction.m in Sources */, - 85D937270E11064700B785E0 /* ScanViewController.m in Sources */, - 85C0B9140E123AFC005EED58 /* ResultParser.m in Sources */, - 85C0B91A0E123BD2005EED58 /* DoCoMoResultParser.m in Sources */, - 85C0B9220E123C93005EED58 /* MeCardParser.m in Sources */, - 85C0B9AB0E123DB6005EED58 /* EmailDoCoMoResultParser.m in Sources */, - 85C0B9BA0E123E99005EED58 /* TelResultParser.m in Sources */, - 85C0BA020E123F30005EED58 /* TextResultParser.m in Sources */, - 85C0BA5A0E124497005EED58 /* URLTOResultParser.m in Sources */, - 85C0BA640E124AC7005EED58 /* URLResultParser.m in Sources */, - 85C0BAFA0E1250E4005EED58 /* BookmarkDoCoMoResultParser.m in Sources */, - 85C0BAFD0E12515D005EED58 /* GeoResultParser.m in Sources */, - 85C0BC100E12548D005EED58 /* SMSTOResultParser.m in Sources */, - 85C0BC140E1254C0005EED58 /* SMSParsedResult.m in Sources */, - 85C0BC1C0E125842005EED58 /* SMSResultParser.m in Sources */, - 85B1D7EF0E18EB6800514A6A /* ScanCell.m in Sources */, - 85E883980E1A34D2004C4547 /* ScannedImageView.m in Sources */, - 85764F2E0E3DE75700A61BF5 /* PlainEmailResultParser.m in Sources */, - 853678530E538F9E0054126A /* MessageViewController.m in Sources */, - AD92A8BB10BFE07F009C3614 /* GrayBytesMonochromeBitmapSource.cpp in Sources */, - 8B2B9BE6118FB42D00437315 /* FormatReader.mm in Sources */, - 8B2B9BE7118FB42D00437315 /* MultiFormatReader.mm in Sources */, - 1FB434D312904344002D63E8 /* BarcodeFormat.cpp in Sources */, - 1FB434D412904344002D63E8 /* Binarizer.cpp in Sources */, - 1FB434D512904344002D63E8 /* BinaryBitmap.cpp in Sources */, - 1FB434D612904344002D63E8 /* Array.cpp in Sources */, - 1FB434D712904344002D63E8 /* BitArray.cpp in Sources */, - 1FB434D812904344002D63E8 /* BitMatrix.cpp in Sources */, - 1FB434D912904344002D63E8 /* BitSource.cpp in Sources */, - 1FB434DA12904344002D63E8 /* Counted.cpp in Sources */, - 1FB434DB12904344002D63E8 /* DecoderResult.cpp in Sources */, - 1FB434DC12904344002D63E8 /* DetectorResult.cpp in Sources */, - 1FB434DD12904344002D63E8 /* EdgeDetector.cpp in Sources */, - 1FB434DE12904344002D63E8 /* GlobalHistogramBinarizer.cpp in Sources */, - 1FB434DF12904344002D63E8 /* GreyscaleLuminanceSource.cpp in Sources */, - 1FB434E012904344002D63E8 /* GreyscaleRotatedLuminanceSource.cpp in Sources */, - 1FB434E112904344002D63E8 /* GridSampler.cpp in Sources */, - 1FB434E212904344002D63E8 /* HybridBinarizer.cpp in Sources */, - 1FB434E312904344002D63E8 /* IllegalArgumentException.cpp in Sources */, - 1FB434E412904344002D63E8 /* PerspectiveTransform.cpp in Sources */, - 1FB434E512904344002D63E8 /* GF256.cpp in Sources */, - 1FB434E612904344002D63E8 /* GF256Poly.cpp in Sources */, - 1FB434E712904344002D63E8 /* ReedSolomonDecoder.cpp in Sources */, - 1FB434E812904344002D63E8 /* ReedSolomonException.cpp in Sources */, - 1FB434E912904344002D63E8 /* Str.cpp in Sources */, - 1FB434EA12904344002D63E8 /* DataMatrixReader.cpp in Sources */, - 1FB434EB12904344002D63E8 /* BitMatrixParser.cpp in Sources */, - 1FB434EC12904344002D63E8 /* DataBlock.cpp in Sources */, - 1FB434ED12904344002D63E8 /* DecodedBitStreamParser.cpp in Sources */, - 1FB434EE12904344002D63E8 /* Decoder.cpp in Sources */, - 1FB434EF12904344002D63E8 /* CornerPoint.cpp in Sources */, - 1FB434F012904344002D63E8 /* Detector.cpp in Sources */, - 1FB434F112904344002D63E8 /* MonochromeRectangleDetector.cpp in Sources */, - 1FB434F212904344002D63E8 /* Version.cpp in Sources */, - 1FB434F312904344002D63E8 /* DecodeHints.cpp in Sources */, - 1FB434F412904344002D63E8 /* Exception.cpp in Sources */, - 1FB434F512904344002D63E8 /* LuminanceSource.cpp in Sources */, - 1FB434F612904344002D63E8 /* MultiFormatReader.cpp in Sources */, - 1FB434F712904344002D63E8 /* Code128Reader.cpp in Sources */, - 1FB434F812904344002D63E8 /* Code39Reader.cpp in Sources */, - 1FB434F912904344002D63E8 /* EAN13Reader.cpp in Sources */, - 1FB434FA12904344002D63E8 /* EAN8Reader.cpp in Sources */, - 1FB434FB12904344002D63E8 /* ITFReader.cpp in Sources */, - 1FB434FC12904344002D63E8 /* MultiFormatOneDReader.cpp in Sources */, - 1FB434FD12904344002D63E8 /* MultiFormatUPCEANReader.cpp in Sources */, - 1FB434FE12904344002D63E8 /* OneDReader.cpp in Sources */, - 1FB434FF12904344002D63E8 /* OneDResultPoint.cpp in Sources */, - 1FB4350012904344002D63E8 /* UPCAReader.cpp in Sources */, - 1FB4350112904344002D63E8 /* UPCEANReader.cpp in Sources */, - 1FB4350212904344002D63E8 /* UPCEReader.cpp in Sources */, - 1FB4350312904344002D63E8 /* BitMatrixParser.cpp in Sources */, - 1FB4350412904344002D63E8 /* DataBlock.cpp in Sources */, - 1FB4350512904344002D63E8 /* DataMask.cpp in Sources */, - 1FB4350612904344002D63E8 /* DecodedBitStreamParser.cpp in Sources */, - 1FB4350712904344002D63E8 /* Decoder.cpp in Sources */, - 1FB4350812904344002D63E8 /* Mode.cpp in Sources */, - 1FB4350912904344002D63E8 /* AlignmentPattern.cpp in Sources */, - 1FB4350A12904344002D63E8 /* AlignmentPatternFinder.cpp in Sources */, - 1FB4350B12904344002D63E8 /* Detector.cpp in Sources */, - 1FB4350C12904344002D63E8 /* FinderPattern.cpp in Sources */, - 1FB4350D12904344002D63E8 /* FinderPatternFinder.cpp in Sources */, - 1FB4350E12904344002D63E8 /* FinderPatternInfo.cpp in Sources */, - 1FB4350F12904344002D63E8 /* QREdgeDetector.cpp in Sources */, - 1FB4351012904344002D63E8 /* ErrorCorrectionLevel.cpp in Sources */, - 1FB4351112904344002D63E8 /* FormatInformation.cpp in Sources */, - 1FB4351212904344002D63E8 /* QRCodeReader.cpp in Sources */, - 1FB4351312904344002D63E8 /* Version.cpp in Sources */, - 1FB4351412904344002D63E8 /* Reader.cpp in Sources */, - 1FB4351512904344002D63E8 /* ReaderException.cpp in Sources */, - 1FB4351612904344002D63E8 /* Result.cpp in Sources */, - 1FB4351712904344002D63E8 /* ResultPoint.cpp in Sources */, - 1FB4351812904344002D63E8 /* ResultPointCallback.cpp in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 8514EAE50DF88E5200EE78D3 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 856EAB120E1CE6E000B2E1C7 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 856EAB780E1CE8AA00B2E1C7 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 856EAB800E1CE8F600B2E1C7 /* BitArrayTest.cpp in Sources */, - 856EAB820E1CE8F600B2E1C7 /* BitMatrixTest.cpp in Sources */, - 856EAB840E1CE8F600B2E1C7 /* BitSourceTest.cpp in Sources */, - 856EAB860E1CE8F600B2E1C7 /* BlackPointEstimatorTest.cpp in Sources */, - 856EAB880E1CE8F600B2E1C7 /* CountedTest.cpp in Sources */, - 856EAB8A0E1CE8F600B2E1C7 /* PerspectiveTransformTest.cpp in Sources */, - 856EAB8C0E1CE8F600B2E1C7 /* ReedSolomonTest.cpp in Sources */, - 856EAB8E0E1CE8F600B2E1C7 /* DataMaskTest.cpp in Sources */, - 856EAB900E1CE8F600B2E1C7 /* ErrorCorrectionLevelTest.cpp in Sources */, - 856EAB920E1CE8F600B2E1C7 /* FormatInformationTest.cpp in Sources */, - 856EAB940E1CE8F600B2E1C7 /* ModeTest.cpp in Sources */, - 856EAB960E1CE8F600B2E1C7 /* VersionTest.cpp in Sources */, - 856EAB980E1CE8F600B2E1C7 /* TestRunner.cpp in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin PBXTargetDependency section */ - 8514EB180DF8A50900EE78D3 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 8514EAE70DF88E5200EE78D3 /* zxingcore */; - targetProxy = 8514EB170DF8A50900EE78D3 /* PBXContainerItemProxy */; - }; - 856C257C0E1BC76C006ABF00 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 1D6058900D05DD3D006BFB54 /* Barcodes */; - targetProxy = 856C257B0E1BC76C006ABF00 /* PBXContainerItemProxy */; - }; - 856EABB10E1CE97800B2E1C7 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 8514EAE70DF88E5200EE78D3 /* zxingcore */; - targetProxy = 856EABB00E1CE97800B2E1C7 /* PBXContainerItemProxy */; - }; - 856EABB30E1CE97B00B2E1C7 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 856EAB140E1CE6E000B2E1C7 /* CppUnit */; - targetProxy = 856EABB20E1CE97B00B2E1C7 /* PBXContainerItemProxy */; - }; - 856EABB50E1CE98600B2E1C7 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 856EAB7A0E1CE8AA00B2E1C7 /* zxingcore-tests */; - targetProxy = 856EABB40E1CE98600B2E1C7 /* PBXContainerItemProxy */; - }; -/* End PBXTargetDependency section */ - -/* Begin PBXVariantGroup section */ - 852A998E0E0BC433003E6D6D /* DecoderView.xib */ = { - isa = PBXVariantGroup; - children = ( - 852A99C90E0BC7D1003E6D6D /* en */, - 852A99CA0E0BC7D6003E6D6D /* de */, - 852A99D00E0BC8E8003E6D6D /* sv */, - ); - name = DecoderView.xib; - sourceTree = ""; - }; - 852A99900E0BC43C003E6D6D /* MainWindow.xib */ = { - isa = PBXVariantGroup; - children = ( - 852A99CB0E0BC7E0003E6D6D /* en */, - 852A99CC0E0BC7E2003E6D6D /* de */, - 852A99D20E0BC8E8003E6D6D /* sv */, - ); - name = MainWindow.xib; - sourceTree = ""; - }; - 852A99960E0BC49E003E6D6D /* Localizable.strings */ = { - isa = PBXVariantGroup; - children = ( - 852A99CD0E0BC7EE003E6D6D /* en */, - 852A99CE0E0BC7F3003E6D6D /* de */, - 852A99D10E0BC8E8003E6D6D /* sv */, - ); - name = Localizable.strings; - sourceTree = ""; - }; - 853678820E5394D70054126A /* About.html */ = { - isa = PBXVariantGroup; - children = ( - 853678840E5394E40054126A /* en */, - 853678850E5394E70054126A /* de */, - 853678860E5394EA0054126A /* sv */, - ); - name = About.html; - sourceTree = ""; - }; - 85764F680E3E22FC00A61BF5 /* Hints.html */ = { - isa = PBXVariantGroup; - children = ( - 85764F690E3E22FC00A61BF5 /* en */, - 85F7D20F0E41D4A700FDC34E /* de */, - 85F7D2110E41D4B300FDC34E /* sv */, - ); - name = Hints.html; - sourceTree = ""; - }; - 85C37A3F0E4076BB0052209B /* Message.xib */ = { - isa = PBXVariantGroup; - children = ( - 85C37A400E4076BB0052209B /* en */, - 85F7D20E0E41D4A700FDC34E /* de */, - 85F7D2100E41D4B300FDC34E /* sv */, - ); - name = Message.xib; - sourceTree = ""; - }; - 85F895020E543EE100C0A666 /* InfoPlist.strings */ = { - isa = PBXVariantGroup; - children = ( - 85F895040E543F0400C0A666 /* en */, - 8539502B0E5442AA00D081D6 /* de */, - 8539502C0E5442B500D081D6 /* sv */, - ); - name = InfoPlist.strings; - sourceTree = ""; - }; -/* End PBXVariantGroup section */ - -/* Begin XCBuildConfiguration section */ - 1D6058940D05DD3E006BFB54 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - COPY_PHASE_STRIP = NO; - GCC_DYNAMIC_NO_PIC = NO; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = ZXing_Prefix.pch; - GCC_PREPROCESSOR_DEFINITIONS = "DEBUG=1"; - HEADER_SEARCH_PATHS = ../../../cpp/core/src; - INFOPLIST_FILE = Info.plist; - PRODUCT_NAME = Barcodes; - }; - name = Debug; - }; - 1D6058950D05DD3E006BFB54 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - COPY_PHASE_STRIP = YES; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = ZXing_Prefix.pch; - HEADER_SEARCH_PATHS = ../../cpp/core/src; - INFOPLIST_FILE = Info.plist; - PRODUCT_NAME = Barcodes; - }; - name = Release; - }; - 8514EAE90DF88E5300EE78D3 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - COPY_PHASE_STRIP = NO; - GCC_DYNAMIC_NO_PIC = NO; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_THUMB_SUPPORT = NO; - HEADER_SEARCH_PATHS = ../../cpp/core/src; - PREBINDING = NO; - PRODUCT_NAME = zxingcore; - SCAN_ALL_SOURCE_FILES_FOR_INCLUDES = YES; - SDKROOT = iphonesimulator3.1.2; - }; - name = Debug; - }; - 8514EAEA0DF88E5300EE78D3 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - COPY_PHASE_STRIP = YES; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - GCC_ENABLE_FIX_AND_CONTINUE = NO; - HEADER_SEARCH_PATHS = ../../cpp/core/src; - PREBINDING = NO; - PRODUCT_NAME = zxingcore; - SCAN_ALL_SOURCE_FILES_FOR_INCLUDES = YES; - SDKROOT = iphonesimulator3.1.2; - ZERO_LINK = NO; - }; - name = Release; - }; - 855530180E64248400C7B5DE /* AdHoc Distribution */ = { - isa = XCBuildConfiguration; - buildSettings = { - ARCHS = "$(ARCHS_STANDARD_32_BIT)"; - GCC_C_LANGUAGE_STANDARD = c99; - GCC_TREAT_WARNINGS_AS_ERRORS = NO; - GCC_WARN_ABOUT_MISSING_NEWLINE = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES; - GCC_WARN_CHECK_SWITCH_STATEMENTS = YES; - GCC_WARN_EFFECTIVE_CPLUSPLUS_VIOLATIONS = YES; - GCC_WARN_FOUR_CHARACTER_CONSTANTS = YES; - GCC_WARN_HIDDEN_VIRTUAL_FUNCTIONS = YES; - GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED = YES; - GCC_WARN_MISSING_PARENTHESES = NO; - GCC_WARN_NON_VIRTUAL_DESTRUCTOR = YES; - GCC_WARN_SHADOW = YES; - GCC_WARN_TYPECHECK_CALLS_TO_PRINTF = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = ../../cpp/core/src; - PREBINDING = NO; - SDKROOT = iphoneos3.1.2; - }; - name = "AdHoc Distribution"; - }; - 855530190E64248400C7B5DE /* AdHoc Distribution */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - COPY_PHASE_STRIP = YES; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = ZXing_Prefix.pch; - HEADER_SEARCH_PATHS = ../../cpp/core/src; - INFOPLIST_FILE = Info.plist; - PRODUCT_NAME = Barcodes; - }; - name = "AdHoc Distribution"; - }; - 8555301A0E64248400C7B5DE /* AdHoc Distribution */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - COPY_PHASE_STRIP = YES; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - GCC_ENABLE_FIX_AND_CONTINUE = NO; - HEADER_SEARCH_PATHS = ../../cpp/core/src; - PREBINDING = NO; - PRODUCT_NAME = zxingcore; - SCAN_ALL_SOURCE_FILES_FOR_INCLUDES = YES; - SDKROOT = iphonesimulator3.1.2; - ZERO_LINK = NO; - }; - name = "AdHoc Distribution"; - }; - 8555301B0E64248400C7B5DE /* AdHoc Distribution */ = { - isa = XCBuildConfiguration; - buildSettings = { - COPY_PHASE_STRIP = YES; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - GCC_ENABLE_FIX_AND_CONTINUE = NO; - PRODUCT_NAME = "Build All"; - ZERO_LINK = NO; - }; - name = "AdHoc Distribution"; - }; - 8555301C0E64248400C7B5DE /* AdHoc Distribution */ = { - isa = XCBuildConfiguration; - buildSettings = { - PRODUCT_NAME = "Test All"; - SDKROOT = "Mac OS X 10.5"; - }; - name = "AdHoc Distribution"; - }; - 8555301D0E64248400C7B5DE /* AdHoc Distribution */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - COPY_PHASE_STRIP = YES; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - GCC_ENABLE_FIX_AND_CONTINUE = NO; - GCC_MODEL_TUNING = G5; - GCC_WARN_EFFECTIVE_CPLUSPLUS_VIOLATIONS = NO; - GCC_WARN_HIDDEN_VIRTUAL_FUNCTIONS = NO; - GCC_WARN_SHADOW = NO; - HEADER_SEARCH_PATHS = "../cpp/core/tests/cppunit-1.12.1/include"; - INSTALL_PATH = /usr/local/lib; - PREBINDING = NO; - PRODUCT_NAME = CppUnit; - ZERO_LINK = NO; - }; - name = "AdHoc Distribution"; - }; - 8555301E0E64248400C7B5DE /* AdHoc Distribution */ = { - isa = XCBuildConfiguration; - buildSettings = { - HEADER_SEARCH_PATHS = ( - "../cpp/core/tests/cppunit-1.12.1/include", - ../cpp/core/src, - ); - PRODUCT_NAME = "zxingcore-tests"; - SDKROOT = ""; - }; - name = "AdHoc Distribution"; - }; - 856C25790E1BC768006ABF00 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - COPY_PHASE_STRIP = NO; - GCC_DYNAMIC_NO_PIC = NO; - GCC_OPTIMIZATION_LEVEL = 0; - PRODUCT_NAME = "Build All"; - }; - name = Debug; - }; - 856C257A0E1BC768006ABF00 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - COPY_PHASE_STRIP = YES; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - GCC_ENABLE_FIX_AND_CONTINUE = NO; - PRODUCT_NAME = "Build All"; - ZERO_LINK = NO; - }; - name = Release; - }; - 856C257E0E1BC779006ABF00 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - PRODUCT_NAME = "Test All"; - SDKROOT = "Mac OS X 10.5"; - }; - name = Debug; - }; - 856C257F0E1BC779006ABF00 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - PRODUCT_NAME = "Test All"; - SDKROOT = "Mac OS X 10.5"; - }; - name = Release; - }; - 856EAB160E1CE6E000B2E1C7 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - COPY_PHASE_STRIP = NO; - GCC_DYNAMIC_NO_PIC = NO; - GCC_ENABLE_FIX_AND_CONTINUE = YES; - GCC_MODEL_TUNING = G5; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_WARN_EFFECTIVE_CPLUSPLUS_VIOLATIONS = NO; - GCC_WARN_HIDDEN_VIRTUAL_FUNCTIONS = NO; - GCC_WARN_SHADOW = NO; - HEADER_SEARCH_PATHS = "../cpp/core/tests/cppunit-1.12.1/include"; - INSTALL_PATH = /usr/local/lib; - PREBINDING = NO; - PRODUCT_NAME = CppUnit; - }; - name = Debug; - }; - 856EAB170E1CE6E000B2E1C7 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - COPY_PHASE_STRIP = YES; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - GCC_ENABLE_FIX_AND_CONTINUE = NO; - GCC_MODEL_TUNING = G5; - GCC_WARN_EFFECTIVE_CPLUSPLUS_VIOLATIONS = NO; - GCC_WARN_HIDDEN_VIRTUAL_FUNCTIONS = NO; - GCC_WARN_SHADOW = NO; - HEADER_SEARCH_PATHS = "../cpp/core/tests/cppunit-1.12.1/include"; - INSTALL_PATH = /usr/local/lib; - PREBINDING = NO; - PRODUCT_NAME = CppUnit; - ZERO_LINK = NO; - }; - name = Release; - }; - 856EAB7B0E1CE8AA00B2E1C7 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - HEADER_SEARCH_PATHS = ( - "../cpp/core/tests/cppunit-1.12.1/include", - ../cpp/core/src, - ); - PRODUCT_NAME = "zxingcore-tests"; - SDKROOT = ""; - }; - name = Debug; - }; - 856EAB7C0E1CE8AA00B2E1C7 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - HEADER_SEARCH_PATHS = ( - "../cpp/core/tests/cppunit-1.12.1/include", - ../cpp/core/src, - ); - PRODUCT_NAME = "zxingcore-tests"; - SDKROOT = ""; - }; - name = Release; - }; - 856EABFA0E1CF73600B2E1C7 /* Test */ = { - isa = XCBuildConfiguration; - buildSettings = { - ARCHS = "$(ARCHS_STANDARD_32_BIT)"; - GCC_C_LANGUAGE_STANDARD = c99; - GCC_TREAT_WARNINGS_AS_ERRORS = NO; - GCC_WARN_ABOUT_MISSING_NEWLINE = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES; - GCC_WARN_CHECK_SWITCH_STATEMENTS = YES; - GCC_WARN_EFFECTIVE_CPLUSPLUS_VIOLATIONS = YES; - GCC_WARN_FOUR_CHARACTER_CONSTANTS = YES; - GCC_WARN_HIDDEN_VIRTUAL_FUNCTIONS = YES; - GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED = YES; - GCC_WARN_MISSING_PARENTHESES = NO; - GCC_WARN_NON_VIRTUAL_DESTRUCTOR = YES; - GCC_WARN_SHADOW = YES; - GCC_WARN_TYPECHECK_CALLS_TO_PRINTF = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = ../../cpp/core/src; - ONLY_ACTIVE_ARCH = YES; - PREBINDING = NO; - SDKROOT = iphoneos3.1.2; - }; - name = Test; - }; - 856EABFB0E1CF73600B2E1C7 /* Test */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - COPY_PHASE_STRIP = NO; - GCC_DYNAMIC_NO_PIC = NO; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = ZXing_Prefix.pch; - GCC_PREPROCESSOR_DEFINITIONS = "DEBUG=1"; - HEADER_SEARCH_PATHS = ../../cpp/core/src; - INFOPLIST_FILE = Info.plist; - PRODUCT_NAME = Barcodes; - }; - name = Test; - }; - 856EABFC0E1CF73600B2E1C7 /* Test */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - COPY_PHASE_STRIP = NO; - GCC_DYNAMIC_NO_PIC = NO; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_THUMB_SUPPORT = NO; - HEADER_SEARCH_PATHS = ../../cpp/core/src; - PREBINDING = NO; - PRODUCT_NAME = zxingcore; - SCAN_ALL_SOURCE_FILES_FOR_INCLUDES = YES; - SDKROOT = iphonesimulator3.1.2; - }; - name = Test; - }; - 856EABFD0E1CF73600B2E1C7 /* Test */ = { - isa = XCBuildConfiguration; - buildSettings = { - COPY_PHASE_STRIP = NO; - GCC_DYNAMIC_NO_PIC = NO; - GCC_OPTIMIZATION_LEVEL = 0; - PRODUCT_NAME = "Build All"; - }; - name = Test; - }; - 856EABFE0E1CF73600B2E1C7 /* Test */ = { - isa = XCBuildConfiguration; - buildSettings = { - PRODUCT_NAME = "Test All"; - SDKROOT = "Mac OS X 10.5"; - }; - name = Test; - }; - 856EABFF0E1CF73600B2E1C7 /* Test */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - COPY_PHASE_STRIP = NO; - GCC_DYNAMIC_NO_PIC = NO; - GCC_ENABLE_FIX_AND_CONTINUE = YES; - GCC_MODEL_TUNING = G5; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_WARN_EFFECTIVE_CPLUSPLUS_VIOLATIONS = NO; - GCC_WARN_HIDDEN_VIRTUAL_FUNCTIONS = NO; - GCC_WARN_SHADOW = NO; - HEADER_SEARCH_PATHS = "../cpp/core/tests/cppunit-1.12.1/include"; - INSTALL_PATH = /usr/local/lib; - PREBINDING = NO; - PRODUCT_NAME = CppUnit; - SDKROOT = macosx10.5; - }; - name = Test; - }; - 856EAC000E1CF73600B2E1C7 /* Test */ = { - isa = XCBuildConfiguration; - buildSettings = { - GCC_WARN_EFFECTIVE_CPLUSPLUS_VIOLATIONS = NO; - GCC_WARN_HIDDEN_VIRTUAL_FUNCTIONS = NO; - GCC_WARN_SHADOW = NO; - HEADER_SEARCH_PATHS = ( - "../cpp/core/tests/cppunit-1.12.1/include", - ../cpp/core/src, - ); - PRODUCT_NAME = "zxingcore-tests"; - SDKROOT = ""; - }; - name = Test; - }; - 8584596E0E64181200211F1B /* Distribution */ = { - isa = XCBuildConfiguration; - buildSettings = { - ARCHS = "$(ARCHS_STANDARD_32_BIT)"; - GCC_C_LANGUAGE_STANDARD = c99; - GCC_TREAT_WARNINGS_AS_ERRORS = NO; - GCC_WARN_ABOUT_MISSING_NEWLINE = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES; - GCC_WARN_CHECK_SWITCH_STATEMENTS = YES; - GCC_WARN_EFFECTIVE_CPLUSPLUS_VIOLATIONS = YES; - GCC_WARN_FOUR_CHARACTER_CONSTANTS = YES; - GCC_WARN_HIDDEN_VIRTUAL_FUNCTIONS = YES; - GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED = YES; - GCC_WARN_MISSING_PARENTHESES = NO; - GCC_WARN_NON_VIRTUAL_DESTRUCTOR = YES; - GCC_WARN_SHADOW = YES; - GCC_WARN_TYPECHECK_CALLS_TO_PRINTF = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = ../../cpp/core/src; - PREBINDING = NO; - SDKROOT = iphoneos3.1.2; - }; - name = Distribution; - }; - 8584596F0E64181200211F1B /* Distribution */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - COPY_PHASE_STRIP = YES; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = ZXing_Prefix.pch; - HEADER_SEARCH_PATHS = ../../cpp/core/src; - INFOPLIST_FILE = Info.plist; - PRODUCT_NAME = Barcodes; - }; - name = Distribution; - }; - 858459700E64181200211F1B /* Distribution */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - COPY_PHASE_STRIP = YES; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - GCC_ENABLE_FIX_AND_CONTINUE = NO; - HEADER_SEARCH_PATHS = ../../cpp/core/src; - PREBINDING = NO; - PRODUCT_NAME = zxingcore; - SCAN_ALL_SOURCE_FILES_FOR_INCLUDES = YES; - SDKROOT = iphonesimulator3.1.2; - ZERO_LINK = NO; - }; - name = Distribution; - }; - 858459710E64181200211F1B /* Distribution */ = { - isa = XCBuildConfiguration; - buildSettings = { - COPY_PHASE_STRIP = YES; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - GCC_ENABLE_FIX_AND_CONTINUE = NO; - PRODUCT_NAME = "Build All"; - ZERO_LINK = NO; - }; - name = Distribution; - }; - 858459720E64181200211F1B /* Distribution */ = { - isa = XCBuildConfiguration; - buildSettings = { - PRODUCT_NAME = "Test All"; - SDKROOT = "Mac OS X 10.5"; - }; - name = Distribution; - }; - 858459730E64181200211F1B /* Distribution */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - COPY_PHASE_STRIP = YES; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - GCC_ENABLE_FIX_AND_CONTINUE = NO; - GCC_MODEL_TUNING = G5; - GCC_WARN_EFFECTIVE_CPLUSPLUS_VIOLATIONS = NO; - GCC_WARN_HIDDEN_VIRTUAL_FUNCTIONS = NO; - GCC_WARN_SHADOW = NO; - HEADER_SEARCH_PATHS = "../cpp/core/tests/cppunit-1.12.1/include"; - INSTALL_PATH = /usr/local/lib; - PREBINDING = NO; - PRODUCT_NAME = CppUnit; - ZERO_LINK = NO; - }; - name = Distribution; - }; - 858459740E64181200211F1B /* Distribution */ = { - isa = XCBuildConfiguration; - buildSettings = { - HEADER_SEARCH_PATHS = ( - "../cpp/core/tests/cppunit-1.12.1/include", - ../cpp/core/src, - ); - PRODUCT_NAME = "zxingcore-tests"; - SDKROOT = ""; - }; - name = Distribution; - }; - C01FCF4F08A954540054247B /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ARCHS = "$(ARCHS_STANDARD_32_BIT)"; - GCC_C_LANGUAGE_STANDARD = c99; - GCC_SYMBOLS_PRIVATE_EXTERN = YES; - GCC_TREAT_WARNINGS_AS_ERRORS = NO; - GCC_WARN_ABOUT_MISSING_NEWLINE = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES; - GCC_WARN_CHECK_SWITCH_STATEMENTS = YES; - GCC_WARN_EFFECTIVE_CPLUSPLUS_VIOLATIONS = YES; - GCC_WARN_FOUR_CHARACTER_CONSTANTS = YES; - GCC_WARN_HIDDEN_VIRTUAL_FUNCTIONS = YES; - GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED = YES; - GCC_WARN_MISSING_PARENTHESES = NO; - GCC_WARN_NON_VIRTUAL_DESTRUCTOR = YES; - GCC_WARN_SHADOW = YES; - GCC_WARN_TYPECHECK_CALLS_TO_PRINTF = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = ../../../cpp/core/src; - ONLY_ACTIVE_ARCH = YES; - PREBINDING = NO; - SDKROOT = iphoneos; - }; - name = Debug; - }; - C01FCF5008A954540054247B /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ARCHS = "$(ARCHS_STANDARD_32_BIT)"; - GCC_C_LANGUAGE_STANDARD = c99; - GCC_TREAT_WARNINGS_AS_ERRORS = NO; - GCC_WARN_ABOUT_MISSING_NEWLINE = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES; - GCC_WARN_CHECK_SWITCH_STATEMENTS = YES; - GCC_WARN_EFFECTIVE_CPLUSPLUS_VIOLATIONS = YES; - GCC_WARN_FOUR_CHARACTER_CONSTANTS = YES; - GCC_WARN_HIDDEN_VIRTUAL_FUNCTIONS = YES; - GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED = YES; - GCC_WARN_MISSING_PARENTHESES = NO; - GCC_WARN_NON_VIRTUAL_DESTRUCTOR = YES; - GCC_WARN_SHADOW = YES; - GCC_WARN_TYPECHECK_CALLS_TO_PRINTF = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = ../../cpp/core/src; - PREBINDING = NO; - SDKROOT = iphoneos3.1.2; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 1D6058960D05DD3E006BFB54 /* Build configuration list for PBXNativeTarget "Barcodes" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 1D6058940D05DD3E006BFB54 /* Debug */, - 856EABFB0E1CF73600B2E1C7 /* Test */, - 1D6058950D05DD3E006BFB54 /* Release */, - 8584596F0E64181200211F1B /* Distribution */, - 855530190E64248400C7B5DE /* AdHoc Distribution */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 8514EAEB0DF88E7100EE78D3 /* Build configuration list for PBXNativeTarget "zxingcore" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 8514EAE90DF88E5300EE78D3 /* Debug */, - 856EABFC0E1CF73600B2E1C7 /* Test */, - 8514EAEA0DF88E5300EE78D3 /* Release */, - 858459700E64181200211F1B /* Distribution */, - 8555301A0E64248400C7B5DE /* AdHoc Distribution */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 856C25830E1BC77E006ABF00 /* Build configuration list for PBXAggregateTarget "Build All" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 856C25790E1BC768006ABF00 /* Debug */, - 856EABFD0E1CF73600B2E1C7 /* Test */, - 856C257A0E1BC768006ABF00 /* Release */, - 858459710E64181200211F1B /* Distribution */, - 8555301B0E64248400C7B5DE /* AdHoc Distribution */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 856C25840E1BC77E006ABF00 /* Build configuration list for PBXAggregateTarget "Test All" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 856C257E0E1BC779006ABF00 /* Debug */, - 856EABFE0E1CF73600B2E1C7 /* Test */, - 856C257F0E1BC779006ABF00 /* Release */, - 858459720E64181200211F1B /* Distribution */, - 8555301C0E64248400C7B5DE /* AdHoc Distribution */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 856EAB180E1CE6F400B2E1C7 /* Build configuration list for PBXNativeTarget "CppUnit" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 856EAB160E1CE6E000B2E1C7 /* Debug */, - 856EABFF0E1CF73600B2E1C7 /* Test */, - 856EAB170E1CE6E000B2E1C7 /* Release */, - 858459730E64181200211F1B /* Distribution */, - 8555301D0E64248400C7B5DE /* AdHoc Distribution */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 856EAB7F0E1CE8F200B2E1C7 /* Build configuration list for PBXNativeTarget "zxingcore-tests" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 856EAB7B0E1CE8AA00B2E1C7 /* Debug */, - 856EAC000E1CF73600B2E1C7 /* Test */, - 856EAB7C0E1CE8AA00B2E1C7 /* Release */, - 858459740E64181200211F1B /* Distribution */, - 8555301E0E64248400C7B5DE /* AdHoc Distribution */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - C01FCF4E08A954540054247B /* Build configuration list for PBXProject "ZXing" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - C01FCF4F08A954540054247B /* Debug */, - 856EABFA0E1CF73600B2E1C7 /* Test */, - C01FCF5008A954540054247B /* Release */, - 8584596E0E64181200211F1B /* Distribution */, - 855530180E64248400C7B5DE /* AdHoc Distribution */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - }; - rootObject = 29B97313FDCFA39411CA2CEA /* Project object */; -} diff --git a/iphone/legacy/Barcodes_original/ZXing_Prefix.pch b/iphone/legacy/Barcodes_original/ZXing_Prefix.pch deleted file mode 100644 index 6acbbc55b..000000000 --- a/iphone/legacy/Barcodes_original/ZXing_Prefix.pch +++ /dev/null @@ -1,23 +0,0 @@ -// -// Prefix header for all source files of the 'ZXing' target in the 'ZXing' project -// -/* - * Copyright 2008 Google Inc. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifdef __OBJC__ -#import -#import -#endif diff --git a/iphone/legacy/Barcodes_original/ZxingLarge.png b/iphone/legacy/Barcodes_original/ZxingLarge.png deleted file mode 100644 index 688a5a3ef..000000000 Binary files a/iphone/legacy/Barcodes_original/ZxingLarge.png and /dev/null differ diff --git a/iphone/legacy/Barcodes_original/business-card.png b/iphone/legacy/Barcodes_original/business-card.png deleted file mode 100644 index 1cf65fcbf..000000000 Binary files a/iphone/legacy/Barcodes_original/business-card.png and /dev/null differ diff --git a/iphone/legacy/Barcodes_original/de.lproj/About.html b/iphone/legacy/Barcodes_original/de.lproj/About.html deleted file mode 100644 index c425e06aa..000000000 --- a/iphone/legacy/Barcodes_original/de.lproj/About.html +++ /dev/null @@ -1,23 +0,0 @@ - - -Info zu Strichcodes - - - - - -

-ZXing Project Logo

-

Strichcodes

-

Version 1.1

-

© 2008-2010 The ZXing -Authors
-

-

-Unterstützte Strichcode-Formate: -

-

-QR Code
-

- \ No newline at end of file diff --git a/iphone/legacy/Barcodes_original/de.lproj/DecoderView.xib b/iphone/legacy/Barcodes_original/de.lproj/DecoderView.xib deleted file mode 100644 index dc8e161f7..000000000 --- a/iphone/legacy/Barcodes_original/de.lproj/DecoderView.xib +++ /dev/null @@ -1,450 +0,0 @@ - - - - 512 - 9E17 - 670 - 949.33 - 352.00 - - YES - - - - YES - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - YES - - IBFilesOwner - - - IBFirstResponder - - - - 274 - - YES - - - 266 - {{0, 431}, {320, 49}} - - NO - NO - - YES - - 15 - - - - 1 - 5 - - - - 1 - - NSImage - filmroll-2.png - - - - - 5 - - - - 2 - - NSImage - photolib.png - - - - - 1 - 5 - - - - 16 - 10 - - - - 1 - 5 - - - - 17 - 9 - - - - - - - 274 - {320, 431} - - - 1 - MCAwIDAAA - - NO - 3 - - - {320, 480} - - - 3 - - - - - YES - - - view - - - - 9 - - - - actionBarItem - - - - 51 - - - - performResultAction: - - - - 53 - - - - toolbar - - - - 57 - - - - pickAndDecode: - - - - 60 - - - - pickAndDecode: - - - - 61 - - - - pickAndDecode: - - - - 62 - - - - cameraBarItem - - - - 63 - - - - savedPhotosBarItem - - - - 64 - - - - libraryBarItem - - - - 65 - - - - archiveBarItem - - - - 66 - - - - showArchive: - - - - 67 - - - - imageView - - - - 71 - - - - - YES - - 0 - - YES - - - - - - 1 - - - YES - - - - - - - -1 - - - RmlsZSdzIE93bmVyA - - - -2 - - - - - 34 - - - YES - - - - - - - - - - - - - - 35 - - - - - 36 - - - - - 37 - - - - - 38 - - - - - 54 - - - - - 55 - - - - - 56 - - - - - 58 - - - - - 59 - - - - - 70 - - - - - - - YES - - YES - -1.CustomClassName - -2.CustomClassName - 1.IBEditorWindowLastContentRect - 1.IBPluginDependency - 34.IBPluginDependency - 35.IBPluginDependency - 36.IBPluginDependency - 37.IBPluginDependency - 38.IBPluginDependency - 54.IBPluginDependency - 55.IBPluginDependency - 56.IBPluginDependency - 58.IBPluginDependency - 59.IBPluginDependency - 70.CustomClassName - 70.IBPluginDependency - - - YES - DecoderViewController - UIResponder - {{387, 352}, {320, 480}} - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - ScannedImageView - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - - YES - - YES - - - YES - - - - - YES - - YES - - - YES - - - - 71 - - - - YES - - DecoderViewController - UIViewController - - YES - - YES - performResultAction: - pickAndDecode: - showArchive: - - - YES - id - id - id - - - - YES - - YES - actionBarItem - archiveBarItem - cameraBarItem - imageView - libraryBarItem - messageHelpButton - messageTextView - messageView - savedPhotosBarItem - toolbar - - - YES - UIBarItem - UIBarItem - UIBarItem - ScannedImageView - UIBarItem - UIButton - UITextView - UIView - UIBarItem - UIToolbar - - - - IBProjectSource - Classes/DecoderViewController.h - - - - ScannedImageView - UIView - - IBProjectSource - Classes/ScannedImageView.h - - - - - 0 - ../ZXing.xcodeproj - 3 - - diff --git a/iphone/legacy/Barcodes_original/de.lproj/Hints.html b/iphone/legacy/Barcodes_original/de.lproj/Hints.html deleted file mode 100644 index f874eb62b..000000000 --- a/iphone/legacy/Barcodes_original/de.lproj/Hints.html +++ /dev/null @@ -1,14 +0,0 @@ - - -Barcode Hints - - - - -

iPhone hat eine fix-fokus-Kamera. Dies funktioniert oft gut, ist -aber für Strichcode-Erkennung ungeeignet, weil alles was zu nah an der -Kamera ist unscharf aussieht und schwer zu dekodieren ist. Für die -besten Resultate sollten Sie:

  • Mindestens 60 cm Abstand zwischen Kamera und Strichcode halten
  • Im Schritt Bewegen und Skalieren den Strichcode im Bild zentrieren und fast flächenfüllend vergrößern
Dies -gibt dem Dekoder ein scharfes, großes Bild, das hauptsächlich den -Strichcode enthält, und sich am einfachsten dekodieren läßt. \ No newline at end of file diff --git a/iphone/legacy/Barcodes_original/de.lproj/InfoPlist.strings b/iphone/legacy/Barcodes_original/de.lproj/InfoPlist.strings deleted file mode 100644 index 15309108b..000000000 --- a/iphone/legacy/Barcodes_original/de.lproj/InfoPlist.strings +++ /dev/null @@ -1 +0,0 @@ -CFBundleDisplayName = "Strichcodes"; \ No newline at end of file diff --git a/iphone/legacy/Barcodes_original/de.lproj/Localizable.strings b/iphone/legacy/Barcodes_original/de.lproj/Localizable.strings deleted file mode 100644 index 008c2f830..000000000 --- a/iphone/legacy/Barcodes_original/de.lproj/Localizable.strings +++ /dev/null @@ -1,141 +0,0 @@ -/* Add Contact? */ -"AddContactAction alert message" = "Kontaktinfo speichern?"; - -/* Cancel */ -"AddContactAction cancel button title" = "Abbrechen"; - -/* Add Contact */ -"AddContactAction confirm button title" = "Kontaktinfo speichern"; - -/* Add Contact */ -"AddContactAction title" = "Kontaktinfo speichern"; - -/* Call %@ */ -"CallAction action title" = "%@ Anrufen"; - -/* Call */ -"CallAction alert button title" = "Anrufen"; - -/* Call %@? */ -"CallAction alert message" = "%@ Anrufen?"; - -/* Call */ -"CallAction alert title" = "Anrufen"; - -/* Compose */ -"SMSAction alert title" = "Schreiben"; - -/* Contact */ -"Contact Result Type Name" = "Kontakt"; - -/* No barcode detected. */ -"Decoder BarcodeDetectionFailure" = "Kein Strichcode gefunden."; - -/* Decoding ... */ -"Decoder MessageWhileDecoding" = "Dekodiert ..."; - -/* ZXing */ -"DecoderViewController AppTitle" = "Strichcodes"; - -/* Cancel */ -"DecoderViewController cancel button title" = "Abbrechen"; - -/* About */ -"DecoderViewController about button title" = "Info"; - -/* Hints */ -"DecoderViewController Hints MessageViewController title" = "Tips"; - -/* About */ -"DecoderViewController About MessageViewController title" = "Info"; - -/* Decoding image (%.0fx%.0f) ... */ -"DecoderViewController MessageWhileDecodingWithDimensions" = "Dekodiert Bild (%.0fx%.0f) ..."; - -/* Please take or choose a picture containing a barcode */ -"DecoderViewController take or choose picture" = "Bitte nehmen oder wählen Sie ein Bild mit Strichcode"; - -/* Email %@ */ -"EmailAction action title" = "Email an %@"; - -/* Compose */ -"EmailAction alert button title" = "Schreiben"; - -/* Compose Email to %@? */ -"EmailAction alert message" = "Email an %@ schreiben?"; - -/* Compose Email */ -"EmailAction alert title" = "Email schreiben"; - -/* %@ */ -"EmailParsedResult Display: Body" = "%@"; - -/* To: %@ */ -"EmailParsedResult Display: Recipient" = "An: %@"; - -/* Subject: %@ */ -"EmailParsedResult Display: Subject" = "Betreff: %@"; - -/* Email */ -"EmailParsedResult type name" = "Email"; - -/* Geo: %@ */ -"GeoParsedResult display" = "Geo: %@"; - -/* Geolocation */ -"GeoParsedResult type name" = "Platz"; - -/* Open URL */ -"OpenURLAction action title" = "Link öffnen"; - -/* Open */ -"OpenURLAction alert button title" = "Öffnen"; - -/* Open URL <%@>? */ -"OpenURLAction alert message" = "Link <%@> öffnen?"; - -/* Open URL */ -"OpenURLAction alert title" = "Link öffnen"; - -/* Cancel */ -"OpenURLAction cancel button title" = "Abbrechen"; - -/* Scan Archive */ -"ScanArchiveTitle" = "Scan Archiv"; - -/* Scan */ -"ScanViewController title" = "Scan"; - -/* Show on Map */ -"ShowMapAction action title" = "Auf der Karte zeigen"; - -/* Show */ -"ShowMapAction alert button title" = "Zeigen"; - -/* Show location %@ on Map ? */ -"ShowMapAction alert message" = "Platz %@ auf der Karte Zeigen?"; - -/* Show on Map */ -"ShowMapAction alert title" = "Auf der Karte zeigen"; - -/* Compose SMS to %@ */ -"SMSAction action title" = "SMS an %@ schreiben"; - -/* Compose */ -"SMSAction alert button title" = "Schreiben"; - -/* Compose SMS to %@? */ -"SMSAction alert message" = "SMS an %@ schreiben?"; - -/* SMS */ -"SMSParsedResult type name" = "SMS"; - -/* Tel */ -"TelParsedResult type name" = "Telefon"; - -/* Text */ -"TextParsedResult type name" = "Text"; - -/* URI */ -"URIParsedResult type name" = "Link"; - diff --git a/iphone/legacy/Barcodes_original/de.lproj/MainWindow.xib b/iphone/legacy/Barcodes_original/de.lproj/MainWindow.xib deleted file mode 100644 index e0a569241..000000000 --- a/iphone/legacy/Barcodes_original/de.lproj/MainWindow.xib +++ /dev/null @@ -1,171 +0,0 @@ - - - - 512 - 9C7010 - 658 - 949.26 - 352.00 - - YES - - - - YES - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - YES - - IBFilesOwner - - - IBFirstResponder - - - - - 1292 - - {320, 480} - - - 1 - MSAxIDEAA - - NO - NO - - - - - YES - - - window - - - - 5 - - - - delegate - - - - 9 - - - - - YES - - 0 - - YES - - - - - - 2 - - - YES - - - - - -1 - - - RmlsZSdzIE93bmVyA - - - 3 - - - - - -2 - - - - - - - YES - - YES - -1.CustomClassName - -2.CustomClassName - 2.IBAttributePlaceholdersKey - 2.IBEditorWindowLastContentRect - 2.IBPluginDependency - 3.CustomClassName - 3.IBPluginDependency - - - YES - UIApplication - UIResponder - - YES - - YES - - - YES - - - {{229, 113}, {320, 480}} - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - ZXingAppDelegate - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - - YES - - YES - - - YES - - - - - YES - - YES - - - YES - - - - 11 - - - - YES - - ZXingAppDelegate - NSObject - - window - UIWindow - - - IBProjectSource - Classes/ZXingAppDelegate.h - - - - - 0 - ZXing.xcodeproj - 3 - - diff --git a/iphone/legacy/Barcodes_original/de.lproj/Message.xib b/iphone/legacy/Barcodes_original/de.lproj/Message.xib deleted file mode 100644 index cd06af12c..000000000 --- a/iphone/legacy/Barcodes_original/de.lproj/Message.xib +++ /dev/null @@ -1,349 +0,0 @@ - - - - 768 - 10D573 - 762 - 1038.29 - 460.00 - - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - 87 - - - YES - - - YES - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - YES - - YES - - - YES - - - - YES - - IBFilesOwner - IBCocoaTouchFramework - - - IBFirstResponder - IBCocoaTouchFramework - - - - 274 - {320, 460} - - 3 - MAA - - YES - YES - IBCocoaTouchFramework - YES - - - - - YES - - - view - - - - 5 - - - - - YES - - 0 - - - - - - -1 - - - File's Owner - - - -2 - - - - - 4 - - - - - - - YES - - YES - -1.CustomClassName - -2.CustomClassName - 4.IBPluginDependency - - - YES - MessageViewController - UIResponder - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - - YES - - - YES - - - - - YES - - - YES - - - - 5 - - - - YES - - MessageViewController - UIViewController - - callbackTarget - id - - - IBProjectSource - Classes/MessageViewController.h - - - - - YES - - NSObject - - IBFrameworkSource - Foundation.framework/Headers/NSError.h - - - - NSObject - - IBFrameworkSource - Foundation.framework/Headers/NSFileManager.h - - - - NSObject - - IBFrameworkSource - Foundation.framework/Headers/NSKeyValueCoding.h - - - - NSObject - - IBFrameworkSource - Foundation.framework/Headers/NSKeyValueObserving.h - - - - NSObject - - IBFrameworkSource - Foundation.framework/Headers/NSKeyedArchiver.h - - - - NSObject - - IBFrameworkSource - Foundation.framework/Headers/NSNetServices.h - - - - NSObject - - IBFrameworkSource - Foundation.framework/Headers/NSObject.h - - - - NSObject - - IBFrameworkSource - Foundation.framework/Headers/NSPort.h - - - - NSObject - - IBFrameworkSource - Foundation.framework/Headers/NSRunLoop.h - - - - NSObject - - IBFrameworkSource - Foundation.framework/Headers/NSStream.h - - - - NSObject - - IBFrameworkSource - Foundation.framework/Headers/NSThread.h - - - - NSObject - - IBFrameworkSource - Foundation.framework/Headers/NSURL.h - - - - NSObject - - IBFrameworkSource - Foundation.framework/Headers/NSURLConnection.h - - - - NSObject - - IBFrameworkSource - Foundation.framework/Headers/NSXMLParser.h - - - - NSObject - - IBFrameworkSource - UIKit.framework/Headers/UIAccessibility.h - - - - NSObject - - IBFrameworkSource - UIKit.framework/Headers/UINibLoading.h - - - - NSObject - - IBFrameworkSource - UIKit.framework/Headers/UIResponder.h - - - - UIResponder - NSObject - - - - UISearchBar - UIView - - IBFrameworkSource - UIKit.framework/Headers/UISearchBar.h - - - - UISearchDisplayController - NSObject - - IBFrameworkSource - UIKit.framework/Headers/UISearchDisplayController.h - - - - UIView - - IBFrameworkSource - UIKit.framework/Headers/UITextField.h - - - - UIView - UIResponder - - IBFrameworkSource - UIKit.framework/Headers/UIView.h - - - - UIViewController - - IBFrameworkSource - UIKit.framework/Headers/UINavigationController.h - - - - UIViewController - - IBFrameworkSource - UIKit.framework/Headers/UITabBarController.h - - - - UIViewController - UIResponder - - IBFrameworkSource - UIKit.framework/Headers/UIViewController.h - - - - UIWebView - UIView - - IBFrameworkSource - UIKit.framework/Headers/UIWebView.h - - - - - 0 - IBCocoaTouchFramework - - com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS - - - - com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS - - - - com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3 - - - YES - ../ZXing.xcodeproj - 3 - 87 - - diff --git a/iphone/legacy/Barcodes_original/email.png b/iphone/legacy/Barcodes_original/email.png deleted file mode 100644 index 5043c64d8..000000000 Binary files a/iphone/legacy/Barcodes_original/email.png and /dev/null differ diff --git a/iphone/legacy/Barcodes_original/en.lproj/About.html b/iphone/legacy/Barcodes_original/en.lproj/About.html deleted file mode 100644 index 816c89d21..000000000 --- a/iphone/legacy/Barcodes_original/en.lproj/About.html +++ /dev/null @@ -1,23 +0,0 @@ - - -About Barcodes - - - - - -

-ZXing Project Logo

-

Barcodes

-

Version 1.1

-

© 2008-2010 The ZXing -Authors
-

-

-Supported barcode formats: -

-

-QR Code
-

- \ No newline at end of file diff --git a/iphone/legacy/Barcodes_original/en.lproj/DecoderView.xib b/iphone/legacy/Barcodes_original/en.lproj/DecoderView.xib deleted file mode 100644 index bf75d6633..000000000 --- a/iphone/legacy/Barcodes_original/en.lproj/DecoderView.xib +++ /dev/null @@ -1,450 +0,0 @@ - - - - 512 - 9E17 - 670 - 949.33 - 352.00 - - YES - - - - YES - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - YES - - IBFilesOwner - - - IBFirstResponder - - - - 274 - - YES - - - 266 - {{0, 431}, {320, 49}} - - NO - NO - - YES - - 15 - - - - 1 - 5 - - - - 1 - - NSImage - filmroll-2.png - - - - - 5 - - - - 2 - - NSImage - photolib.png - - - - - 1 - 5 - - - - 16 - 10 - - - - 1 - 5 - - - - 17 - 9 - - - - - - - 274 - {320, 431} - - - 1 - MCAwIDAAA - - NO - 3 - - - {320, 480} - - - 3 - - - - - YES - - - view - - - - 9 - - - - actionBarItem - - - - 51 - - - - performResultAction: - - - - 53 - - - - toolbar - - - - 57 - - - - pickAndDecode: - - - - 60 - - - - pickAndDecode: - - - - 61 - - - - pickAndDecode: - - - - 62 - - - - cameraBarItem - - - - 63 - - - - savedPhotosBarItem - - - - 64 - - - - libraryBarItem - - - - 65 - - - - archiveBarItem - - - - 66 - - - - showArchive: - - - - 67 - - - - imageView - - - - 71 - - - - - YES - - 0 - - YES - - - - - - 1 - - - YES - - - - - - - -1 - - - RmlsZSdzIE93bmVyA - - - -2 - - - - - 34 - - - YES - - - - - - - - - - - - - - 35 - - - - - 36 - - - - - 37 - - - - - 38 - - - - - 54 - - - - - 55 - - - - - 56 - - - - - 58 - - - - - 59 - - - - - 70 - - - - - - - YES - - YES - -1.CustomClassName - -2.CustomClassName - 1.IBEditorWindowLastContentRect - 1.IBPluginDependency - 34.IBPluginDependency - 35.IBPluginDependency - 36.IBPluginDependency - 37.IBPluginDependency - 38.IBPluginDependency - 54.IBPluginDependency - 55.IBPluginDependency - 56.IBPluginDependency - 58.IBPluginDependency - 59.IBPluginDependency - 70.CustomClassName - 70.IBPluginDependency - - - YES - DecoderViewController - UIResponder - {{387, 352}, {320, 480}} - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - ScannedImageView - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - - YES - - YES - - - YES - - - - - YES - - YES - - - YES - - - - 71 - - - - YES - - DecoderViewController - UIViewController - - YES - - YES - performResultAction: - pickAndDecode: - showArchive: - - - YES - id - id - id - - - - YES - - YES - actionBarItem - archiveBarItem - cameraBarItem - imageView - libraryBarItem - messageHelpButton - messageTextView - messageView - savedPhotosBarItem - toolbar - - - YES - UIBarItem - UIBarItem - UIBarItem - ScannedImageView - UIBarItem - UIButton - UITextView - UIView - UIBarItem - UIToolbar - - - - IBProjectSource - Classes/DecoderViewController.h - - - - ScannedImageView - UIView - - IBProjectSource - Classes/ScannedImageView.h - - - - - 0 - ../ZXing.xcodeproj - 3 - - diff --git a/iphone/legacy/Barcodes_original/en.lproj/Hints.html b/iphone/legacy/Barcodes_original/en.lproj/Hints.html deleted file mode 100644 index 15603d931..000000000 --- a/iphone/legacy/Barcodes_original/en.lproj/Hints.html +++ /dev/null @@ -1,17 +0,0 @@ - - -Barcode Hints - - - - - -

The -iPhone camera has a fixed focus depth, which works well for many -situations but is not ideal for scanning barcodes. Specifically, anything that is too close to the camera will look fuzzy -and will be difficult to decode. For best barcode scanning results:

  • Take the picture from a distance of at least 2 feet / 60 cm
  • Use the Scale and -Move screen to place the barcode centered, almost filling the screen
This will give the decoder a large picture -containing mainly the barcode, which will be the easiest for it to -decode. - \ No newline at end of file diff --git a/iphone/legacy/Barcodes_original/en.lproj/InfoPlist.strings b/iphone/legacy/Barcodes_original/en.lproj/InfoPlist.strings deleted file mode 100644 index d22c0553a..000000000 --- a/iphone/legacy/Barcodes_original/en.lproj/InfoPlist.strings +++ /dev/null @@ -1 +0,0 @@ -CFBundleDisplayName = "Barcodes"; \ No newline at end of file diff --git a/iphone/legacy/Barcodes_original/en.lproj/Localizable.strings b/iphone/legacy/Barcodes_original/en.lproj/Localizable.strings deleted file mode 100644 index a8113c63d..000000000 --- a/iphone/legacy/Barcodes_original/en.lproj/Localizable.strings +++ /dev/null @@ -1,141 +0,0 @@ -/* Add Contact? */ -"AddContactAction alert message" = "Add Contact?"; - -/* Cancel */ -"AddContactAction cancel button title" = "Cancel"; - -/* Add Contact */ -"AddContactAction confirm button title" = "Add Contact"; - -/* Add Contact */ -"AddContactAction title" = "Add Contact"; - -/* Call %@ */ -"CallAction action title" = "Call %@"; - -/* Call */ -"CallAction alert button title" = "Call"; - -/* Call %@? */ -"CallAction alert message" = "Call %@?"; - -/* Call */ -"CallAction alert title" = "Call"; - -/* Compose */ -"SMSAction alert title" = "Compose"; - -/* Contact */ -"Contact Result Type Name" = "Contact"; - -/* No barcode detected. */ -"Decoder BarcodeDetectionFailure" = "No barcode detected."; - -/* Decoding ... */ -"Decoder MessageWhileDecoding" = "Decoding ..."; - -/* ZXing */ -"DecoderViewController AppTitle" = "Barcodes"; - -/* Cancel */ -"DecoderViewController cancel button title" = "Cancel"; - -/* About */ -"DecoderViewController about button title" = "About"; - -/* Hints */ -"DecoderViewController Hints MessageViewController title" = "Hints"; - -/* About */ -"DecoderViewController About MessageViewController title" = "About"; - -/* Decoding image (%.0fx%.0f) ... */ -"DecoderViewController MessageWhileDecodingWithDimensions" = "Decoding image (%.0fx%.0f) ..."; - -/* Please take or choose a picture containing a barcode */ -"DecoderViewController take or choose picture" = "Please take or choose a picture containing a barcode"; - -/* Email %@ */ -"EmailAction action title" = "Email %@"; - -/* Compose */ -"EmailAction alert button title" = "Compose"; - -/* Compose Email to %@? */ -"EmailAction alert message" = "Compose Email to %@?"; - -/* Compose Email */ -"EmailAction alert title" = "Compose Email"; - -/* %@ */ -"EmailParsedResult Display: Body" = "%@"; - -/* To: %@ */ -"EmailParsedResult Display: Recipient" = "To: %@"; - -/* Subject: %@ */ -"EmailParsedResult Display: Subject" = "Subject: %@"; - -/* Email */ -"EmailParsedResult type name" = "Email"; - -/* Geo: %@ */ -"GeoParsedResult display" = "Geo: %@"; - -/* Geolocation */ -"GeoParsedResult type name" = "Geolocation"; - -/* Open URL */ -"OpenURLAction action title" = "Open URL"; - -/* Open */ -"OpenURLAction alert button title" = "Open"; - -/* Open URL <%@>? */ -"OpenURLAction alert message" = "Open URL <%@>?"; - -/* Open URL */ -"OpenURLAction alert title" = "Open URL"; - -/* Cancel */ -"OpenURLAction cancel button title" = "Cancel"; - -/* Scan Archive */ -"ScanArchiveTitle" = "Scan Archive"; - -/* Scan */ -"ScanViewController title" = "Scan"; - -/* Show on Map */ -"ShowMapAction action title" = "Show on Map"; - -/* Show */ -"ShowMapAction alert button title" = "Show"; - -/* Show location %@ on Map ? */ -"ShowMapAction alert message" = "Show location %@ on Map?"; - -/* Show on Map */ -"ShowMapAction alert title" = "Show on Map"; - -/* Compose SMS to %@ */ -"SMSAction action title" = "Compose SMS to %@"; - -/* Compose */ -"SMSAction alert button title" = "Compose"; - -/* Compose SMS to %@? */ -"SMSAction alert message" = "Compose SMS to %@?"; - -/* SMS */ -"SMSParsedResult type name" = "SMS"; - -/* Tel */ -"TelParsedResult type name" = "Tel"; - -/* Text */ -"TextParsedResult type name" = "Text"; - -/* URI */ -"URIParsedResult type name" = "URI"; - diff --git a/iphone/legacy/Barcodes_original/en.lproj/MainWindow.xib b/iphone/legacy/Barcodes_original/en.lproj/MainWindow.xib deleted file mode 100644 index e0a569241..000000000 --- a/iphone/legacy/Barcodes_original/en.lproj/MainWindow.xib +++ /dev/null @@ -1,171 +0,0 @@ - - - - 512 - 9C7010 - 658 - 949.26 - 352.00 - - YES - - - - YES - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - YES - - IBFilesOwner - - - IBFirstResponder - - - - - 1292 - - {320, 480} - - - 1 - MSAxIDEAA - - NO - NO - - - - - YES - - - window - - - - 5 - - - - delegate - - - - 9 - - - - - YES - - 0 - - YES - - - - - - 2 - - - YES - - - - - -1 - - - RmlsZSdzIE93bmVyA - - - 3 - - - - - -2 - - - - - - - YES - - YES - -1.CustomClassName - -2.CustomClassName - 2.IBAttributePlaceholdersKey - 2.IBEditorWindowLastContentRect - 2.IBPluginDependency - 3.CustomClassName - 3.IBPluginDependency - - - YES - UIApplication - UIResponder - - YES - - YES - - - YES - - - {{229, 113}, {320, 480}} - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - ZXingAppDelegate - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - - YES - - YES - - - YES - - - - - YES - - YES - - - YES - - - - 11 - - - - YES - - ZXingAppDelegate - NSObject - - window - UIWindow - - - IBProjectSource - Classes/ZXingAppDelegate.h - - - - - 0 - ZXing.xcodeproj - 3 - - diff --git a/iphone/legacy/Barcodes_original/en.lproj/Message.xib b/iphone/legacy/Barcodes_original/en.lproj/Message.xib deleted file mode 100644 index 20ad456af..000000000 --- a/iphone/legacy/Barcodes_original/en.lproj/Message.xib +++ /dev/null @@ -1,349 +0,0 @@ - - - - 768 - 10D573 - 762 - 1038.29 - 460.00 - - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - 87 - - - YES - - - YES - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - YES - - YES - - - YES - - - - YES - - IBFilesOwner - IBCocoaTouchFramework - - - IBFirstResponder - IBCocoaTouchFramework - - - - 274 - {320, 460} - - 3 - MAA - - YES - YES - IBCocoaTouchFramework - YES - - - - - YES - - - view - - - - 6 - - - - - YES - - 0 - - - - - - -1 - - - File's Owner - - - -2 - - - - - 4 - - - - - - - YES - - YES - -1.CustomClassName - -2.CustomClassName - 4.IBPluginDependency - - - YES - MessageViewController - UIResponder - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - - YES - - - YES - - - - - YES - - - YES - - - - 6 - - - - YES - - MessageViewController - UIViewController - - callbackTarget - id - - - IBProjectSource - Classes/MessageViewController.h - - - - - YES - - NSObject - - IBFrameworkSource - Foundation.framework/Headers/NSError.h - - - - NSObject - - IBFrameworkSource - Foundation.framework/Headers/NSFileManager.h - - - - NSObject - - IBFrameworkSource - Foundation.framework/Headers/NSKeyValueCoding.h - - - - NSObject - - IBFrameworkSource - Foundation.framework/Headers/NSKeyValueObserving.h - - - - NSObject - - IBFrameworkSource - Foundation.framework/Headers/NSKeyedArchiver.h - - - - NSObject - - IBFrameworkSource - Foundation.framework/Headers/NSNetServices.h - - - - NSObject - - IBFrameworkSource - Foundation.framework/Headers/NSObject.h - - - - NSObject - - IBFrameworkSource - Foundation.framework/Headers/NSPort.h - - - - NSObject - - IBFrameworkSource - Foundation.framework/Headers/NSRunLoop.h - - - - NSObject - - IBFrameworkSource - Foundation.framework/Headers/NSStream.h - - - - NSObject - - IBFrameworkSource - Foundation.framework/Headers/NSThread.h - - - - NSObject - - IBFrameworkSource - Foundation.framework/Headers/NSURL.h - - - - NSObject - - IBFrameworkSource - Foundation.framework/Headers/NSURLConnection.h - - - - NSObject - - IBFrameworkSource - Foundation.framework/Headers/NSXMLParser.h - - - - NSObject - - IBFrameworkSource - UIKit.framework/Headers/UIAccessibility.h - - - - NSObject - - IBFrameworkSource - UIKit.framework/Headers/UINibLoading.h - - - - NSObject - - IBFrameworkSource - UIKit.framework/Headers/UIResponder.h - - - - UIResponder - NSObject - - - - UISearchBar - UIView - - IBFrameworkSource - UIKit.framework/Headers/UISearchBar.h - - - - UISearchDisplayController - NSObject - - IBFrameworkSource - UIKit.framework/Headers/UISearchDisplayController.h - - - - UIView - - IBFrameworkSource - UIKit.framework/Headers/UITextField.h - - - - UIView - UIResponder - - IBFrameworkSource - UIKit.framework/Headers/UIView.h - - - - UIViewController - - IBFrameworkSource - UIKit.framework/Headers/UINavigationController.h - - - - UIViewController - - IBFrameworkSource - UIKit.framework/Headers/UITabBarController.h - - - - UIViewController - UIResponder - - IBFrameworkSource - UIKit.framework/Headers/UIViewController.h - - - - UIWebView - UIView - - IBFrameworkSource - UIKit.framework/Headers/UIWebView.h - - - - - 0 - IBCocoaTouchFramework - - com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS - - - - com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS - - - - com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3 - - - YES - ../ZXing.xcodeproj - 3 - 87 - - diff --git a/iphone/legacy/Barcodes_original/filmroll-2.png b/iphone/legacy/Barcodes_original/filmroll-2.png deleted file mode 100644 index e44f47a98..000000000 Binary files a/iphone/legacy/Barcodes_original/filmroll-2.png and /dev/null differ diff --git a/iphone/legacy/Barcodes_original/icon.png b/iphone/legacy/Barcodes_original/icon.png deleted file mode 100644 index 4ca7bf6ac..000000000 Binary files a/iphone/legacy/Barcodes_original/icon.png and /dev/null differ diff --git a/iphone/legacy/Barcodes_original/link1.png b/iphone/legacy/Barcodes_original/link1.png deleted file mode 100644 index 2759a3512..000000000 Binary files a/iphone/legacy/Barcodes_original/link1.png and /dev/null differ diff --git a/iphone/legacy/Barcodes_original/link2.png b/iphone/legacy/Barcodes_original/link2.png deleted file mode 100644 index 0c3463f70..000000000 Binary files a/iphone/legacy/Barcodes_original/link2.png and /dev/null differ diff --git a/iphone/legacy/Barcodes_original/main.m b/iphone/legacy/Barcodes_original/main.m deleted file mode 100644 index a23f47b32..000000000 --- a/iphone/legacy/Barcodes_original/main.m +++ /dev/null @@ -1,31 +0,0 @@ -// -// main.m -// ZXing -// -// Created by Christian Brunschen on 03/06/2008. -// Copyright Google Inc 2008. All rights reserved. -// -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import - -int main(int argc, char *argv[]) { - NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; - int retVal = UIApplicationMain(argc, argv, nil, nil); - [pool release]; - return retVal; -} diff --git a/iphone/legacy/Barcodes_original/map-pin.png b/iphone/legacy/Barcodes_original/map-pin.png deleted file mode 100644 index 7cf2b8207..000000000 Binary files a/iphone/legacy/Barcodes_original/map-pin.png and /dev/null differ diff --git a/iphone/legacy/Barcodes_original/phone.png b/iphone/legacy/Barcodes_original/phone.png deleted file mode 100644 index b473d8fb0..000000000 Binary files a/iphone/legacy/Barcodes_original/phone.png and /dev/null differ diff --git a/iphone/legacy/Barcodes_original/photolib.png b/iphone/legacy/Barcodes_original/photolib.png deleted file mode 100644 index 6f330c5cb..000000000 Binary files a/iphone/legacy/Barcodes_original/photolib.png and /dev/null differ diff --git a/iphone/legacy/Barcodes_original/scans.db b/iphone/legacy/Barcodes_original/scans.db deleted file mode 100644 index c3563f9f6..000000000 Binary files a/iphone/legacy/Barcodes_original/scans.db and /dev/null differ diff --git a/iphone/legacy/Barcodes_original/sms.png b/iphone/legacy/Barcodes_original/sms.png deleted file mode 100644 index 0850635a0..000000000 Binary files a/iphone/legacy/Barcodes_original/sms.png and /dev/null differ diff --git a/iphone/legacy/Barcodes_original/sv.lproj/About.html b/iphone/legacy/Barcodes_original/sv.lproj/About.html deleted file mode 100644 index c8031099c..000000000 --- a/iphone/legacy/Barcodes_original/sv.lproj/About.html +++ /dev/null @@ -1,23 +0,0 @@ - - -Om Streckkoder - - - - - -

-ZXing Project Logo

-

Streckkoder

-

Version 1.1

-

© 2008-2010 The ZXing -Authors
-

-

-Stödda streckkods-format: -

-

-QR Code
-

- \ No newline at end of file diff --git a/iphone/legacy/Barcodes_original/sv.lproj/DecoderView.xib b/iphone/legacy/Barcodes_original/sv.lproj/DecoderView.xib deleted file mode 100644 index 6acc4ea56..000000000 --- a/iphone/legacy/Barcodes_original/sv.lproj/DecoderView.xib +++ /dev/null @@ -1,450 +0,0 @@ - - - - 512 - 9E17 - 670 - 949.33 - 352.00 - - YES - - - - YES - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - YES - - IBFilesOwner - - - IBFirstResponder - - - - 274 - - YES - - - 266 - {{0, 431}, {320, 49}} - - NO - NO - - YES - - 15 - - - - 1 - 5 - - - - 1 - - NSImage - filmroll-2.png - - - - - 5 - - - - 2 - - NSImage - photolib.png - - - - - 1 - 5 - - - - 16 - 10 - - - - 1 - 5 - - - - 17 - 9 - - - - - - - 274 - {320, 431} - - - 1 - MCAwIDAAA - - NO - 3 - - - {320, 480} - - - 3 - - - - - YES - - - view - - - - 9 - - - - actionBarItem - - - - 51 - - - - performResultAction: - - - - 53 - - - - toolbar - - - - 57 - - - - pickAndDecode: - - - - 60 - - - - pickAndDecode: - - - - 61 - - - - pickAndDecode: - - - - 62 - - - - cameraBarItem - - - - 63 - - - - savedPhotosBarItem - - - - 64 - - - - libraryBarItem - - - - 65 - - - - archiveBarItem - - - - 66 - - - - showArchive: - - - - 67 - - - - imageView - - - - 71 - - - - - YES - - 0 - - YES - - - - - - 1 - - - YES - - - - - - - -1 - - - RmlsZSdzIE93bmVyA - - - -2 - - - - - 34 - - - YES - - - - - - - - - - - - - - 35 - - - - - 36 - - - - - 37 - - - - - 38 - - - - - 54 - - - - - 55 - - - - - 56 - - - - - 58 - - - - - 59 - - - - - 70 - - - - - - - YES - - YES - -1.CustomClassName - -2.CustomClassName - 1.IBEditorWindowLastContentRect - 1.IBPluginDependency - 34.IBPluginDependency - 35.IBPluginDependency - 36.IBPluginDependency - 37.IBPluginDependency - 38.IBPluginDependency - 54.IBPluginDependency - 55.IBPluginDependency - 56.IBPluginDependency - 58.IBPluginDependency - 59.IBPluginDependency - 70.CustomClassName - 70.IBPluginDependency - - - YES - DecoderViewController - UIResponder - {{387, 352}, {320, 480}} - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - ScannedImageView - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - - YES - - YES - - - YES - - - - - YES - - YES - - - YES - - - - 71 - - - - YES - - DecoderViewController - UIViewController - - YES - - YES - performResultAction: - pickAndDecode: - showArchive: - - - YES - id - id - id - - - - YES - - YES - actionBarItem - archiveBarItem - cameraBarItem - imageView - libraryBarItem - messageHelpButton - messageTextView - messageView - savedPhotosBarItem - toolbar - - - YES - UIBarItem - UIBarItem - UIBarItem - ScannedImageView - UIBarItem - UIButton - UITextView - UIView - UIBarItem - UIToolbar - - - - IBProjectSource - Classes/DecoderViewController.h - - - - ScannedImageView - UIView - - IBProjectSource - Classes/ScannedImageView.h - - - - - 0 - ../ZXing.xcodeproj - 3 - - diff --git a/iphone/legacy/Barcodes_original/sv.lproj/Hints.html b/iphone/legacy/Barcodes_original/sv.lproj/Hints.html deleted file mode 100644 index ae70c0919..000000000 --- a/iphone/legacy/Barcodes_original/sv.lproj/Hints.html +++ /dev/null @@ -1,14 +0,0 @@ - - -Barcode Hints - - - - -

iPhone-kamera har ett fixt fokus-djup, vilket fungerar väl i många -sammanhang men inte är idealiskt för att känna igen streckkoder. Allt -som är för nära kameran kommer att se suddigt ut och vara svårt att -avkoda. För bästa resultat:

  • Ta fotot av streckkoden från minst ca 60 cm
  • I steget Flytta och skalanpassa, centrera streckkoden i bilden och skala upp den till att nästan fylla skärmen
Detta -ger avkodaren en stor, skarp bild med nästan bara streckkoden själv att -tolka, vilket gör avkodarens arbete så lätt som möjligt. \ No newline at end of file diff --git a/iphone/legacy/Barcodes_original/sv.lproj/InfoPlist.strings b/iphone/legacy/Barcodes_original/sv.lproj/InfoPlist.strings deleted file mode 100644 index a53bf351e..000000000 --- a/iphone/legacy/Barcodes_original/sv.lproj/InfoPlist.strings +++ /dev/null @@ -1 +0,0 @@ -CFBundleDisplayName = "Streckkoder"; \ No newline at end of file diff --git a/iphone/legacy/Barcodes_original/sv.lproj/Localizable.strings b/iphone/legacy/Barcodes_original/sv.lproj/Localizable.strings deleted file mode 100644 index d9cccd018..000000000 --- a/iphone/legacy/Barcodes_original/sv.lproj/Localizable.strings +++ /dev/null @@ -1,141 +0,0 @@ -/* Add Contact? */ -"AddContactAction alert message" = "Lägg till kontakt?"; - -/* Cancel */ -"AddContactAction cancel button title" = "Avbryt"; - -/* Add Contact */ -"AddContactAction confirm button title" = "Lägg till kontakt"; - -/* Add Contact */ -"AddContactAction title" = "Lägg till kontakt"; - -/* Call %@ */ -"CallAction action title" = "Ring %@"; - -/* Call */ -"CallAction alert button title" = "Ring"; - -/* Call %@? */ -"CallAction alert message" = "Ring %@?"; - -/* Call */ -"CallAction alert title" = "Ring"; - -/* Compose */ -"SMSAction alert title" = "Skriv"; - -/* Contact */ -"Contact Result Type Name" = "Kontakt"; - -/* No barcode detected. */ -"Decoder BarcodeDetectionFailure" = "Ingen streckkod hittades."; - -/* Decoding ... */ -"Decoder MessageWhileDecoding" = "Avkodar ..."; - -/* ZXing */ -"DecoderViewController AppTitle" = "Streckkoder"; - -/* Cancel */ -"DecoderViewController cancel button title" = "Avbryt"; - -/* About */ -"DecoderViewController about button title" = "Info"; - -/* Hints */ -"DecoderViewController Hints MessageViewController title" = "Tips"; - -/* About */ -"DecoderViewController About MessageViewController title" = "Info"; - -/* Decoding image (%.0fx%.0f) ... */ -"DecoderViewController MessageWhileDecodingWithDimensions" = "Avkodar bild (%.0fx%.0f) ..."; - -/* Please take or choose a picture containing a barcode */ -"DecoderViewController take or choose picture" = "Tag eller välj en bild som innehåller en streckkod"; - -/* Email %@ */ -"EmailAction action title" = "Mejla %@"; - -/* Compose */ -"EmailAction alert button title" = "Skriv"; - -/* Compose Email to %@? */ -"EmailAction alert message" = "Skriv mejl till %@?"; - -/* Compose Email */ -"EmailAction alert title" = "Skriv mejl"; - -/* %@ */ -"EmailParsedResult Display: Body" = "%@"; - -/* To: %@ */ -"EmailParsedResult Display: Recipient" = "Till: %@"; - -/* Subject: %@ */ -"EmailParsedResult Display: Subject" = "Angående: %@"; - -/* Email */ -"EmailParsedResult type name" = "Mejl"; - -/* Geo: %@ */ -"GeoParsedResult display" = "Plats: %@"; - -/* Geolocation */ -"GeoParsedResult type name" = "Geografisk plats"; - -/* Open URL */ -"OpenURLAction action title" = "Öppna länk"; - -/* Open */ -"OpenURLAction alert button title" = "Öppna"; - -/* Open URL <%@>? */ -"OpenURLAction alert message" = "Öppna länk <%@>?"; - -/* Open URL */ -"OpenURLAction alert title" = "Öppna länk"; - -/* Cancel */ -"OpenURLAction cancel button title" = "Avbryt"; - -/* Scan Archive */ -"ScanArchiveTitle" = "Tidigare Streckkoder"; - -/* Scan */ -"ScanViewController title" = "Streckkod"; - -/* Show on Map */ -"ShowMapAction action title" = "Visa på karta"; - -/* Show */ -"ShowMapAction alert button title" = "Visa"; - -/* Show location %@ on Map ? */ -"ShowMapAction alert message" = "Visa plats %@ på karta?"; - -/* Show on Map */ -"ShowMapAction alert title" = "Visa på karta"; - -/* Compose SMS to %@ */ -"SMSAction action title" = "Skriv SMS till %@"; - -/* Compose */ -"SMSAction alert button title" = "Skriv"; - -/* Compose SMS to %@? */ -"SMSAction alert message" = "Skriv SMS till %@?"; - -/* SMS */ -"SMSParsedResult type name" = "SMS"; - -/* Tel */ -"TelParsedResult type name" = "Telefon"; - -/* Text */ -"TextParsedResult type name" = "Text"; - -/* URI */ -"URIParsedResult type name" = "Länk"; - diff --git a/iphone/legacy/Barcodes_original/sv.lproj/MainWindow.xib b/iphone/legacy/Barcodes_original/sv.lproj/MainWindow.xib deleted file mode 100644 index e0a569241..000000000 --- a/iphone/legacy/Barcodes_original/sv.lproj/MainWindow.xib +++ /dev/null @@ -1,171 +0,0 @@ - - - - 512 - 9C7010 - 658 - 949.26 - 352.00 - - YES - - - - YES - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - YES - - IBFilesOwner - - - IBFirstResponder - - - - - 1292 - - {320, 480} - - - 1 - MSAxIDEAA - - NO - NO - - - - - YES - - - window - - - - 5 - - - - delegate - - - - 9 - - - - - YES - - 0 - - YES - - - - - - 2 - - - YES - - - - - -1 - - - RmlsZSdzIE93bmVyA - - - 3 - - - - - -2 - - - - - - - YES - - YES - -1.CustomClassName - -2.CustomClassName - 2.IBAttributePlaceholdersKey - 2.IBEditorWindowLastContentRect - 2.IBPluginDependency - 3.CustomClassName - 3.IBPluginDependency - - - YES - UIApplication - UIResponder - - YES - - YES - - - YES - - - {{229, 113}, {320, 480}} - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - ZXingAppDelegate - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - - YES - - YES - - - YES - - - - - YES - - YES - - - YES - - - - 11 - - - - YES - - ZXingAppDelegate - NSObject - - window - UIWindow - - - IBProjectSource - Classes/ZXingAppDelegate.h - - - - - 0 - ZXing.xcodeproj - 3 - - diff --git a/iphone/legacy/Barcodes_original/sv.lproj/Message.xib b/iphone/legacy/Barcodes_original/sv.lproj/Message.xib deleted file mode 100644 index d85b217ee..000000000 --- a/iphone/legacy/Barcodes_original/sv.lproj/Message.xib +++ /dev/null @@ -1,349 +0,0 @@ - - - - 768 - 10D573 - 762 - 1038.29 - 460.00 - - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - 87 - - - YES - - - YES - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - YES - - YES - - - YES - - - - YES - - IBFilesOwner - IBCocoaTouchFramework - - - IBFirstResponder - IBCocoaTouchFramework - - - - 274 - {320, 460} - - 3 - MAA - - YES - YES - IBCocoaTouchFramework - YES - - - - - YES - - - view - - - - 5 - - - - - YES - - 0 - - - - - - -1 - - - File's Owner - - - -2 - - - - - 4 - - - - - - - YES - - YES - -1.CustomClassName - -2.CustomClassName - 4.IBPluginDependency - - - YES - MessageViewController - UIResponder - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - - YES - - - YES - - - - - YES - - - YES - - - - 5 - - - - YES - - MessageViewController - UIViewController - - callbackTarget - id - - - IBProjectSource - Classes/MessageViewController.h - - - - - YES - - NSObject - - IBFrameworkSource - Foundation.framework/Headers/NSError.h - - - - NSObject - - IBFrameworkSource - Foundation.framework/Headers/NSFileManager.h - - - - NSObject - - IBFrameworkSource - Foundation.framework/Headers/NSKeyValueCoding.h - - - - NSObject - - IBFrameworkSource - Foundation.framework/Headers/NSKeyValueObserving.h - - - - NSObject - - IBFrameworkSource - Foundation.framework/Headers/NSKeyedArchiver.h - - - - NSObject - - IBFrameworkSource - Foundation.framework/Headers/NSNetServices.h - - - - NSObject - - IBFrameworkSource - Foundation.framework/Headers/NSObject.h - - - - NSObject - - IBFrameworkSource - Foundation.framework/Headers/NSPort.h - - - - NSObject - - IBFrameworkSource - Foundation.framework/Headers/NSRunLoop.h - - - - NSObject - - IBFrameworkSource - Foundation.framework/Headers/NSStream.h - - - - NSObject - - IBFrameworkSource - Foundation.framework/Headers/NSThread.h - - - - NSObject - - IBFrameworkSource - Foundation.framework/Headers/NSURL.h - - - - NSObject - - IBFrameworkSource - Foundation.framework/Headers/NSURLConnection.h - - - - NSObject - - IBFrameworkSource - Foundation.framework/Headers/NSXMLParser.h - - - - NSObject - - IBFrameworkSource - UIKit.framework/Headers/UIAccessibility.h - - - - NSObject - - IBFrameworkSource - UIKit.framework/Headers/UINibLoading.h - - - - NSObject - - IBFrameworkSource - UIKit.framework/Headers/UIResponder.h - - - - UIResponder - NSObject - - - - UISearchBar - UIView - - IBFrameworkSource - UIKit.framework/Headers/UISearchBar.h - - - - UISearchDisplayController - NSObject - - IBFrameworkSource - UIKit.framework/Headers/UISearchDisplayController.h - - - - UIView - - IBFrameworkSource - UIKit.framework/Headers/UITextField.h - - - - UIView - UIResponder - - IBFrameworkSource - UIKit.framework/Headers/UIView.h - - - - UIViewController - - IBFrameworkSource - UIKit.framework/Headers/UINavigationController.h - - - - UIViewController - - IBFrameworkSource - UIKit.framework/Headers/UITabBarController.h - - - - UIViewController - UIResponder - - IBFrameworkSource - UIKit.framework/Headers/UIViewController.h - - - - UIWebView - UIView - - IBFrameworkSource - UIKit.framework/Headers/UIWebView.h - - - - - 0 - IBCocoaTouchFramework - - com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS - - - - com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS - - - - com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3 - - - YES - ../ZXing.xcodeproj - 3 - 87 - - diff --git a/iphone/legacy/Barcodes_original/text.png b/iphone/legacy/Barcodes_original/text.png deleted file mode 100644 index ff9a8b7cc..000000000 Binary files a/iphone/legacy/Barcodes_original/text.png and /dev/null differ diff --git a/iphone/legacy/Barcodes_original/zxing-512.tiff b/iphone/legacy/Barcodes_original/zxing-512.tiff deleted file mode 100644 index a7a6159de..000000000 Binary files a/iphone/legacy/Barcodes_original/zxing-512.tiff and /dev/null differ diff --git a/objc/examples/ios/bare/bare.xcodeproj/project.pbxproj b/objc/examples/ios/bare/bare.xcodeproj/project.pbxproj index 0c64fb226..2243602f4 100644 --- a/objc/examples/ios/bare/bare.xcodeproj/project.pbxproj +++ b/objc/examples/ios/bare/bare.xcodeproj/project.pbxproj @@ -372,11 +372,13 @@ objc/src, ); INFOPLIST_FILE = "bare/bare-Info.plist"; + IPHONEOS_DEPLOYMENT_TARGET = 4.3; LIBRARY_SEARCH_PATHS = ( "$(inherited)", "\"$(SRCROOT)/../../../../../../Library/Developer/Xcode/DerivedData/bare-ceenmvkaxbzcsubayrtaunypjmgx/Build/Products/Debug-iphoneos\"", ); PRODUCT_NAME = "$(TARGET_NAME)"; + TARGETED_DEVICE_FAMILY = "1,2"; WRAPPER_EXTENSION = app; }; name = Debug; @@ -393,11 +395,13 @@ objc/src, ); INFOPLIST_FILE = "bare/bare-Info.plist"; + IPHONEOS_DEPLOYMENT_TARGET = 4.3; LIBRARY_SEARCH_PATHS = ( "$(inherited)", "\"$(SRCROOT)/../../../../../../Library/Developer/Xcode/DerivedData/bare-ceenmvkaxbzcsubayrtaunypjmgx/Build/Products/Debug-iphoneos\"", ); PRODUCT_NAME = "$(TARGET_NAME)"; + TARGETED_DEVICE_FAMILY = "1,2"; WRAPPER_EXTENSION = app; }; name = Release; diff --git a/objc/examples/ios/bare/bare/ViewController.m b/objc/examples/ios/bare/bare/ViewController.m index a5e79db16..d5f9d46d2 100644 --- a/objc/examples/ios/bare/bare/ViewController.m +++ b/objc/examples/ios/bare/bare/ViewController.m @@ -22,9 +22,7 @@ @interface View : UIView @end @implementation View -- (CALayer*)capture_layer { - return [[self.layer sublayers] objectAtIndex:0]; -} + - (UIView*)swap_view { if ([[self subviews] count]) { return [[self subviews] objectAtIndex:0]; @@ -32,18 +30,21 @@ return nil; } } + - (void)layoutSubviews { [super layoutSubviews]; CGRect bounds = self.bounds; - self.capture_layer.frame = bounds; + for(int i=0; i < [[[self layer] sublayers] count]; ++i) { + CALayer* layer = (CALayer*)[[self.layer sublayers] objectAtIndex:i]; + if (layer != [self swap_view].layer) { + layer.frame = bounds; + } + } CGRect frame = self.swap_view.bounds; frame.origin.x = bounds.size.width - frame.size.width - 10; frame.origin.y = 10; self.swap_view.frame = frame; } -@end - -@interface ViewController () @end @@ -66,19 +67,25 @@ - (void)loadView { self.view = [[[View alloc] init] autorelease]; [self.view.layer addSublayer:self.capture.layer]; + + // self.capture.luminance = true; + // [self.view.layer addSublayer:self.capture.luminance]; + + // self.capture.binary = true; + //[ self.view.layer addSublayer:self.capture.binary]; + if (!swap && self.capture.hasFront && self.capture.hasBack) { swap = [UIButton buttonWithType:UIButtonTypeRoundedRect]; [swap setTitle:@"swap" forState:UIControlStateNormal]; [swap sizeToFit]; [swap addTarget:self action:@selector(swap) forControlEvents:UIControlEventTouchUpInside]; + [self.view addSubview:swap]; } - // NSLog(@"%@", swap); - [self.view addSubview:swap]; + [self swap]; [self.capture start]; } -- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation -{ +- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { return YES; } diff --git a/objc/src/ZXing/ZXCapture.mm b/objc/src/ZXing/ZXCapture.mm index 3798063ca..75db15e4e 100644 --- a/objc/src/ZXing/ZXCapture.mm +++ b/objc/src/ZXing/ZXCapture.mm @@ -22,6 +22,7 @@ #include #include #include +#include #include #include #include @@ -37,6 +38,12 @@ #define ZXMediaTypeVideo QTMediaTypeVideo #endif +namespace { + +const bool ZX_MULTI_READER = true; + +} + #if ZXAV(1)+0 static bool isIPad(); #endif @@ -180,11 +187,9 @@ static bool isIPad(); [UIScreen mainScreen].scale > 1 && isIPad() && [zxd supportsAVCaptureSessionPreset:AVCaptureSessionPresetiFrame960x540]) { - // NSLog(@"960"); preset = AVCaptureSessionPresetiFrame960x540; } if (!preset) { - // NSLog(@"MED"); preset = AVCaptureSessionPresetMedium; } session.sessionPreset = preset; @@ -528,7 +533,12 @@ ZXAV(didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer) [[[ZXBinaryBitmap alloc] initWithBinarizer:binarizer] autorelease]; @try { - ZXQRCodeReader* reader = [[[ZXQRCodeReader alloc] init] autorelease]; + ZXReader* reader = nil; + if (ZX_MULTI_READER) { + reader = [[[ZXMultiFormatReader alloc] init] autorelease]; + } else { + reader = [[[ZXQRCodeReader alloc] init] autorelease]; + } // NSLog(@"started decode"); ZXResult* result = [reader decode:bitmap hints:hints]; // NSLog(@"finished decode");