CKKSCurrentItemPointer.h [plain text]
#import <Foundation/Foundation.h>
#import "keychain/ckks/CKKS.h"
#import "keychain/ckks/CKKSItem.h"
#import "keychain/ckks/CKKSKey.h"
#if OCTAGON
NS_ASSUME_NONNULL_BEGIN
@interface CKKSCurrentItemPointer : CKKSCKRecordHolder
@property CKKSProcessedState* state;
@property NSString* identifier;
@property NSString* currentItemUUID;
- (instancetype)initForIdentifier:(NSString*)identifier
currentItemUUID:(NSString*)currentItemUUID
state:(CKKSProcessedState*)state
zoneID:(CKRecordZoneID*)zoneID
encodedCKRecord:(NSData* _Nullable)encodedrecord;
+ (instancetype)fromDatabase:(NSString*)identifier
state:(CKKSProcessedState*)state
zoneID:(CKRecordZoneID*)zoneID
error:(NSError* __autoreleasing*)error;
+ (instancetype)tryFromDatabase:(NSString*)identifier
state:(CKKSProcessedState*)state
zoneID:(CKRecordZoneID*)zoneID
error:(NSError* __autoreleasing*)error;
+ (NSArray<CKKSCurrentItemPointer*>*)remoteItemPointers:(CKRecordZoneID*)zoneID error:(NSError* __autoreleasing*)error;
+ (bool)deleteAll:(CKRecordZoneID*)zoneID error:(NSError* __autoreleasing*)error;
+ (NSArray<CKKSCurrentItemPointer*>*)allInZone:(CKRecordZoneID*)zoneID error:(NSError* __autoreleasing*)error;
@end
NS_ASSUME_NONNULL_END
#endif