session-ios/SignalServiceKit/src/Storage/OWSStorage+Subclass.h

33 lines
661 B
C
Raw Normal View History

2017-12-19 05:00:11 +01:00
//
2018-03-06 16:10:22 +01:00
// Copyright (c) 2018 Open Whisper Systems. All rights reserved.
2017-12-19 05:00:11 +01:00
//
#import "OWSStorage.h"
NS_ASSUME_NONNULL_BEGIN
2018-03-16 12:48:21 +01:00
@class YapDatabase;
2017-12-19 05:00:11 +01:00
@interface OWSStorage (Subclass)
2018-03-16 12:48:21 +01:00
@property (atomic, nullable, readonly) YapDatabase *database;
2018-03-06 16:10:22 +01:00
- (void)loadDatabase;
2017-12-19 05:00:11 +01:00
- (void)runSyncRegistrations;
// completion will be invoked _off_ the main thread.
2017-12-19 05:00:11 +01:00
- (void)runAsyncRegistrationsWithCompletion:(void (^_Nonnull)(void))completion;
- (BOOL)areAsyncRegistrationsComplete;
- (BOOL)areSyncRegistrationsComplete;
2017-12-19 18:02:58 +01:00
- (NSString *)databaseFilePath;
2018-03-12 20:10:37 +01:00
- (NSString *)databaseFilePath_SHM;
- (NSString *)databaseFilePath_WAL;
2017-12-19 05:00:11 +01:00
- (void)resetStorage;
@end
NS_ASSUME_NONNULL_END