CKKSIncomingQueueEntry.h [plain text]
#if OCTAGON
#import <CloudKit/CloudKit.h>
#include <securityd/SecDbItem.h>
#include <utilities/SecDb.h>
#import "CKKSItem.h"
#import "CKKSMirrorEntry.h"
#import "CKKSSQLDatabaseObject.h"
NS_ASSUME_NONNULL_BEGIN
@interface CKKSIncomingQueueEntry : CKKSSQLDatabaseObject
@property CKKSItem* item;
@property NSString* uuid;
@property NSString* action;
@property NSString* state;
- (instancetype)initWithCKKSItem:(CKKSItem*)ckme action:(NSString*)action state:(NSString*)state;
+ (instancetype _Nullable)fromDatabase:(NSString*)uuid zoneID:(CKRecordZoneID*)zoneID error:(NSError* __autoreleasing*)error;
+ (instancetype _Nullable)tryFromDatabase:(NSString*)uuid zoneID:(CKRecordZoneID*)zoneID error:(NSError* __autoreleasing*)error;
+ (NSArray<CKKSIncomingQueueEntry*>* _Nullable)fetch:(ssize_t)n
startingAtUUID:(NSString*)uuid
state:(NSString*)state
zoneID:(CKRecordZoneID*)zoneID
error:(NSError* __autoreleasing*)error;
+ (NSDictionary<NSString*, NSNumber*>*)countsByStateInZone:(CKRecordZoneID*)zoneID error:(NSError* __autoreleasing*)error;
+ (NSInteger)countByState:(CKKSItemState *)state zone:(CKRecordZoneID*)zoneID error: (NSError * __autoreleasing *)error;
@end
NS_ASSUME_NONNULL_END
#endif