pokeb / asi-http-request

Easy to use CFNetwork wrapper for HTTP requests, Objective-C, Mac OS X and iPhone

This URL has Read+Write access

asi-http-request / AppDelegate.h
100644 44 lines (33 sloc) 1.083 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//
// AppDelegate.h
//
// Created by Ben Copsey on 09/07/2008.
// Copyright 2008 All-Seeing Interactive Ltd. All rights reserved.
//
 
#import <Cocoa/Cocoa.h>
@class ASIHTTPRequest;
 
@interface AppDelegate : NSObject {
NSOperationQueue *networkQueue;
IBOutlet NSProgressIndicator *progressIndicator;
IBOutlet NSTextView *htmlSource;
IBOutlet NSTextField *fileLocation;
IBOutlet NSWindow *window;
IBOutlet NSWindow *loginWindow;
 
IBOutlet NSTextField *host;
IBOutlet NSTextField *realm;
IBOutlet NSTextField *username;
IBOutlet NSTextField *password;
 
IBOutlet NSTextField *topSecretInfo;
IBOutlet NSButton *keychainCheckbox;
 
IBOutlet NSImageView *imageView1;
IBOutlet NSImageView *imageView2;
IBOutlet NSImageView *imageView3;
}
 
- (IBAction)simpleURLFetch:(id)sender;
- (IBAction)URLFetchWithProgress:(id)sender;
 
 
- (IBAction)fetchThreeImages:(id)sender;
 
- (void)authorizationNeededForRequest:(ASIHTTPRequest *)request;
- (IBAction)dismissAuthSheet:(id)sender;
- (IBAction)fetchTopSecretInformation:(id)sender;
 
- (IBAction)postWithProgress:(id)sender;
@end