-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathHTTPFileUpload.h
More file actions
35 lines (30 loc) · 953 Bytes
/
Copy pathHTTPFileUpload.h
File metadata and controls
35 lines (30 loc) · 953 Bytes
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
//
// HTTPFileUpload.h
//
// Version: 1.01
//
// Created by tochi on 11/06/10.
// Copyright 2011 aguuu Inc. All rights reserved.
//
// License: MIT License
//
#import <Foundation/Foundation.h>
@protocol HTTPFileUploadDelegate;
@interface HTTPFileUpload : NSObject
{
@private
id <HTTPFileUploadDelegate> delegate_;
NSMutableArray *postStrings_, *postImages_;
NSMutableData *resultData_;
}
@property(nonatomic, assign) id <HTTPFileUploadDelegate> delegate;
- (void)setPostString:(NSString *)stringValue withPostName:(NSString *)postName;
- (void)setPostImage:(UIImage *)image withPostName:(NSString *)postName fileName:(NSString *)fileName;
- (void)postWithUri:(NSString *)uri;
@end
@protocol HTTPFileUploadDelegate <NSObject>
@required
- (void)httpFileUploadDidFinishLoading:(NSURLConnection *)connection result:(NSString *)result;
@optional
- (void)httpFileUpload:(NSURLConnection *)connection didFailWithError:(NSError *)error;
@end