-
Notifications
You must be signed in to change notification settings - Fork 12
/
MVFileUploader.h
executable file
·51 lines (42 loc) · 1.67 KB
/
MVFileUploader.h
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
45
46
47
48
49
50
51
//
// MVFileUploader.h
// FileShuttle
//
// Created by Michaël on 26/04/11.
//
#import <Foundation/Foundation.h>
#import "MVFTPFileUpload.h"
#import "MVSFTPFileUpload.h"
#import "MVFileUpload.h"
#import "MVFileUploadDelegate.h"
@class MVFileUploader;
///////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////
@protocol MVFileUploaderDelegate
- (void)fileUploaderDidStart:(MVFileUploader*)fileUploader;
- (void)fileUploader:(MVFileUploader*)fileUploader
didChangeProgression:(float)progression;
- (void)fileUploader:(MVFileUploader*)fileUploader
didSuccess:(NSString*)url
fileName:(NSString*)filename
filePath:(NSString*)filepath;
- (void)fileUploader:(MVFileUploader *)fileUploader
didFailWithError:(NSString*)error;
@end
///////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////
@interface MVFileUploader : NSObject <MVFileUploadDelegate> {
MVFileUpload *fileUpload_;
NSString *filename_;
NSString *filepath_;
BOOL deleteFile_;
int tries_;
NSObject <MVFileUploaderDelegate> *delegate_;
}
@property (assign) NSObject <MVFileUploaderDelegate> *delegate;
- (void)uploadFile:(NSString*)filepath
toFilename:(NSString*)filename
deleteFile:(BOOL)deleteFile;
@end