[iphone] added known issues in README when including ZXingWidget into your project...
[zxing.git] / iphone / ZXingWidget / Classes / ZXingWidgetController.h
index 5a0cb0c..522cfb6 100755 (executable)
 
 @protocol ZXingDelegate;
 
-@interface ZXingWidgetController : UIImagePickerController <DecoderDelegate, CancelDelegate> {
-       ParsedResult *result;
-       NSArray *actions;       
-       OverlayView *overlayView;
-       SystemSoundID beepSound;
-       BOOL showCancel;
-       NSURL *soundToPlay;
-       id<ZXingDelegate> delegate;
-       BOOL wasCancelled;
-       BOOL oneDMode;
+//@interface ZXingWidgetController : UIImagePickerController <DecoderDelegate, CancelDelegate> {
+@interface ZXingWidgetController : UIViewController<DecoderDelegate, CancelDelegate, UIImagePickerControllerDelegate,UINavigationControllerDelegate> {
+  ParsedResult *result;
+  UIImagePickerController *imagePicker;
+  NSArray *actions;       
+  OverlayView *overlayView;
+  SystemSoundID beepSound;
+  BOOL showCancel;
+  NSURL *soundToPlay;
+  id<ZXingDelegate> delegate;
+  BOOL wasCancelled;
+  BOOL oneDMode;
 }
 
 @property (nonatomic, assign) id<ZXingDelegate> delegate;
-@property (nonatomic, assign) BOOL showCancel;
 @property (nonatomic, assign) NSURL *soundToPlay;
-@property (nonatomic, assign) BOOL oneDMode;
 @property (nonatomic, retain) ParsedResult *result;
 @property (nonatomic, retain) NSArray *actions;
+@property (nonatomic, retain) OverlayView *overlayView;
+
+- (id)initWithDelegate:(id<ZXingDelegate>)delegate showCancel:(BOOL)shouldShowCancel OneDMode:(BOOL)shouldUseoOneDMode;
 
-- (id)initWithDelegate:(id<ZXingDelegate>)delegate;
 - (BOOL)fixedFocus;
+- (void)imagePickerControllerDidCancel:(UIImagePickerController *)picker;
 @end
 
 @protocol ZXingDelegate
 - (void)scanResult:(NSString *)result;
 - (void)cancelled;
-@end
+@end
\ No newline at end of file