2010-11-14 09:18:29 -08:00
|
|
|
//
|
|
|
|
// ZXMainViewController.h
|
|
|
|
// Barcodes
|
|
|
|
//
|
|
|
|
// Created by Romain Pechayre on 11/14/10.
|
|
|
|
// Copyright 2010 __MyCompanyName__. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
#import "ZXingWidgetController.h"
|
2010-11-15 07:43:18 -08:00
|
|
|
#import "MessageViewController.h"
|
2010-11-16 02:29:45 -08:00
|
|
|
#import "ModalViewControllerDelegate.h"
|
2010-11-15 07:43:18 -08:00
|
|
|
|
2010-11-14 09:18:29 -08:00
|
|
|
@class UniversalResultParser;
|
|
|
|
@class ParsedResult;
|
2010-11-29 00:53:13 -08:00
|
|
|
@class ResultAction;
|
2010-11-14 09:18:29 -08:00
|
|
|
|
2010-11-15 07:43:18 -08:00
|
|
|
|
2010-11-16 02:29:45 -08:00
|
|
|
@interface ZXMainViewController : UIViewController <ZXingDelegate,UIActionSheetDelegate,ModalViewControllerDelegate> {
|
2010-11-14 09:18:29 -08:00
|
|
|
NSArray *actions;
|
|
|
|
ParsedResult *result;
|
2010-11-16 07:19:12 -08:00
|
|
|
IBOutlet UITextView *resultView;
|
2010-11-29 00:53:13 -08:00
|
|
|
IBOutlet UIButton *lastActionButton;
|
2010-11-14 09:18:29 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
@property (nonatomic,assign) NSArray *actions;
|
|
|
|
@property (nonatomic,assign) ParsedResult *result;
|
2010-11-16 07:19:12 -08:00
|
|
|
@property (nonatomic,retain) IBOutlet UITextView *resultView;
|
2010-11-29 00:53:13 -08:00
|
|
|
@property (nonatomic,retain) IBOutlet UIButton *lastActionButton;
|
2010-11-14 09:18:29 -08:00
|
|
|
|
|
|
|
- (IBAction)scan:(id)sender;
|
2010-11-14 10:09:37 -08:00
|
|
|
- (IBAction)info:(id)sender;
|
2010-11-15 09:07:03 -08:00
|
|
|
- (IBAction)showArchive:(id)sender;
|
2010-11-29 00:53:13 -08:00
|
|
|
- (IBAction)lastResultAction:(id)sender;
|
2010-11-14 10:09:37 -08:00
|
|
|
|
2010-11-14 09:18:29 -08:00
|
|
|
- (void)zxingController:(ZXingWidgetController*)controller didScanResult:(NSString *)result;
|
|
|
|
- (void)zxingControllerDidCancel:(ZXingWidgetController*)controller;
|
|
|
|
- (void)performResultAction;
|
2010-11-17 11:38:08 -08:00
|
|
|
- (void)setResultViewWithText:(NSString*)theResult;
|
|
|
|
|
2010-11-14 09:18:29 -08:00
|
|
|
|
|
|
|
|
|
|
|
@end
|