2015-08-23 00:00:39 +02:00
|
|
|
//
|
|
|
|
// LockInteractionController.h
|
|
|
|
// Signal
|
|
|
|
//
|
|
|
|
// Created by Frederic Jacobs on 22/08/15.
|
|
|
|
// Copyright (c) 2015 Open Whisper Systems. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
|
|
|
|
@interface LockInteractionController : NSObject
|
|
|
|
|
|
|
|
typedef void (^LIControllerCompletionBlock)();
|
|
|
|
typedef BOOL (^LIControllerBlockingOperation)();
|
2015-12-22 12:45:09 +01:00
|
|
|
typedef void (^LIControllerRetryBlock)(LIControllerBlockingOperation operationBlock,
|
|
|
|
LIControllerCompletionBlock completionBlock);
|
2015-08-23 00:00:39 +02:00
|
|
|
|
|
|
|
+ (void)performBlock:(LIControllerBlockingOperation)blockingOperation
|
|
|
|
completionBlock:(LIControllerCompletionBlock)completionBlock
|
|
|
|
retryBlock:(LIControllerRetryBlock)retryBlock
|
|
|
|
usesNetwork:(BOOL)networkFlag;
|
|
|
|
|
|
|
|
+ (LIControllerRetryBlock)defaultNetworkRetry;
|
|
|
|
|
|
|
|
@end
|