ASIAuthenticationDialog.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. //
  2. // ASIAuthenticationDialog.h
  3. // Part of ASIHTTPRequest -> http://allseeing-i.com/ASIHTTPRequest
  4. //
  5. // Created by Ben Copsey on 21/08/2009.
  6. // Copyright 2009 All-Seeing Interactive. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import <UIKit/UIKit.h>
  10. @class ASIHTTPRequest;
  11. typedef enum _ASIAuthenticationType {
  12. ASIStandardAuthenticationType = 0,
  13. ASIProxyAuthenticationType = 1
  14. } ASIAuthenticationType;
  15. @interface ASIAutorotatingViewController : UIViewController
  16. @end
  17. @interface ASIAuthenticationDialog : ASIAutorotatingViewController <UIActionSheetDelegate, UITableViewDelegate, UITableViewDataSource> {
  18. ASIHTTPRequest *request;
  19. ASIAuthenticationType type;
  20. UITableView *tableView;
  21. UIViewController *presentingController;
  22. BOOL didEnableRotationNotifications;
  23. }
  24. + (void)presentAuthenticationDialogForRequest:(ASIHTTPRequest *)request;
  25. + (void)dismiss;
  26. @property (retain) ASIHTTPRequest *request;
  27. @property (assign) ASIAuthenticationType type;
  28. @property (assign) BOOL didEnableRotationNotifications;
  29. @property (retain, nonatomic) UIViewController *presentingController;
  30. @end