blob: 17a53ae4e64262c44fbc019a242cc3c202085524 (
plain)
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
|
//
// SDLUploadFileOperation.h
// SmartDeviceLink-iOS
//
// Created by Joel Fischer on 5/11/16.
// Copyright © 2016 smartdevicelink. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "SDLFileManagerConstants.h"
@protocol SDLConnectionManagerType;
@class SDLFileWrapper;
NS_ASSUME_NONNULL_BEGIN
@interface SDLUploadFileOperation : NSOperation
/**
* Create an instance of an upload files operation which will send a file to a remote system when added to an operation queue.
*
* @param file A file wrapper around the file which will be sent and a completion handler for when the file finishes sending.
* @param connectionManager The connection manager which will handle transporting the file bytes to the remote system
*
* @return An instance of SDLUploadFilesOperation
*/
- (instancetype)initWithFile:(SDLFileWrapper *)file connectionManager:(id<SDLConnectionManagerType>)connectionManager;
@end
NS_ASSUME_NONNULL_END
|