diff options
Diffstat (limited to 'SmartDeviceLink/private/SDLPreloadChoicesOperation.h')
-rw-r--r-- | SmartDeviceLink/private/SDLPreloadChoicesOperation.h | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/SmartDeviceLink/private/SDLPreloadChoicesOperation.h b/SmartDeviceLink/private/SDLPreloadChoicesOperation.h deleted file mode 100644 index 5434e60dd..000000000 --- a/SmartDeviceLink/private/SDLPreloadChoicesOperation.h +++ /dev/null @@ -1,43 +0,0 @@ -// -// SDLPreloadChoicesOperation.h -// SmartDeviceLink -// -// Created by Joel Fischer on 5/23/18. -// Copyright © 2018 smartdevicelink. All rights reserved. -// - -#import <Foundation/Foundation.h> - -#import "SDLAsynchronousOperation.h" - -@class SDLChoiceCell; -@class SDLFileManager; -@class SDLWindowCapability; - -@protocol SDLConnectionManagerType; - -NS_ASSUME_NONNULL_BEGIN - -/// A handler run when the operation completes, containing the failed choice uploads. -/// -/// @param failedChoiceUploadIDs The IDs of failed choice uploads -typedef void(^SDLPreloadChoicesCompletionHandler)(NSArray<NSNumber *> * _Nullable failedChoiceUploadIDs); - -typedef NS_ENUM(NSUInteger, SDLPreloadChoicesOperationState) { - SDLPreloadChoicesOperationStateWaitingToStart, - SDLPreloadChoicesOperationStateUploadingArtworks, - SDLPreloadChoicesOperationStatePreloadingChoices, - SDLPreloadChoicesOperationStateFinished -}; - -@interface SDLPreloadChoicesOperation : SDLAsynchronousOperation - -@property (assign, nonatomic) SDLPreloadChoicesOperationState currentState; - -- (instancetype)initWithConnectionManager:(id<SDLConnectionManagerType>)connectionManager fileManager:(SDLFileManager *)fileManager displayName:(NSString *)displayName windowCapability:(SDLWindowCapability *)defaultMainWindowCapability isVROptional:(BOOL)isVROptional cellsToPreload:(NSOrderedSet<SDLChoiceCell *> *)cells updateCompletionHandler:(SDLPreloadChoicesCompletionHandler)completionHandler; - -- (BOOL)removeChoicesFromUpload:(NSSet<SDLChoiceCell *> *)choices; - -@end - -NS_ASSUME_NONNULL_END |