summaryrefslogtreecommitdiff
path: root/SmartDeviceLink/SDLDeleteFileOperation.h
blob: 78563c58f92b1f52fbbbbca3a52173b2763889bf (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
//
//  SDLDeleteFileOperation.h
//  SmartDeviceLink-iOS
//
//  Created by Joel Fischer on 5/11/16.
//  Copyright © 2016 smartdevicelink. All rights reserved.
//

#import <Foundation/Foundation.h>

#import "SDLAsynchronousOperation.h"
#import "SDLFileManagerConstants.h"

@protocol SDLConnectionManagerType;


NS_ASSUME_NONNULL_BEGIN

@interface SDLDeleteFileOperation : SDLAsynchronousOperation

/**
 *  Create an instance of a delete files operation which will tell the remote system to remove a file form its storage.
 *
 *  @param fileName The name of the file to be deleted on the remote system.
 *  @param connectionManager The connection manager which will handle transporting the request to the remote system.
 *  @param completionHandler A completion handler to be called when the delete finishes.
 *
 *  @return An instance of SDLDeleteFilesOperation
 */
- (instancetype)initWithFileName:(NSString *)fileName connectionManager:(id<SDLConnectionManagerType>)connectionManager completionHandler:(nullable SDLFileManagerDeleteCompletionHandler)completionHandler;

@end

NS_ASSUME_NONNULL_END