X-Git-Url: https://git.saurik.com/apple/security.git/blobdiff_plain/866f8763175ff60e4fa455b92b5eb660a12fe6c7..07691282a056c4efea71e1e505527601e8cc166b:/keychain/ckks/CKKSOutgoingQueueEntry.h diff --git a/keychain/ckks/CKKSOutgoingQueueEntry.h b/keychain/ckks/CKKSOutgoingQueueEntry.h index f8d1516f..a4a91c21 100644 --- a/keychain/ckks/CKKSOutgoingQueueEntry.h +++ b/keychain/ckks/CKKSOutgoingQueueEntry.h @@ -21,11 +21,11 @@ * @APPLE_LICENSE_HEADER_END@ */ -#import "CKKSSQLDatabaseObject.h" +#include +#include #import "CKKSItem.h" #import "CKKSMirrorEntry.h" -#include -#include +#import "CKKSSQLDatabaseObject.h" #ifndef CKKSOutgoingQueueEntry_h #define CKKSOutgoingQueueEntry_h @@ -38,28 +38,43 @@ @interface CKKSOutgoingQueueEntry : CKKSSQLDatabaseObject @property CKKSItem* item; -@property NSString* uuid; // property access to underlying CKKSItem +@property NSString* uuid; // property access to underlying CKKSItem @property NSString* action; @property NSString* state; @property NSString* accessgroup; -@property NSDate* waitUntil; // If non-null, the time at which this entry should be processed +@property NSDate* waitUntil; // If non-null, the time at which this entry should be processed -- (instancetype) initWithCKKSItem:(CKKSItem*) item - action:(NSString*) action - state:(NSString*) state - waitUntil:(NSDate*) waitUntil - accessGroup:(NSString*) accessgroup; +- (instancetype)initWithCKKSItem:(CKKSItem*)item + action:(NSString*)action + state:(NSString*)state + waitUntil:(NSDate*)waitUntil + accessGroup:(NSString*)accessgroup; -+ (instancetype) withItem: (SecDbItemRef) item action: (NSString*) action ckks:(CKKSKeychainView*)ckks error: (NSError * __autoreleasing *) error; -+ (instancetype) fromDatabase: (NSString*) uuid state: (NSString*) state zoneID:(CKRecordZoneID*)zoneID error: (NSError * __autoreleasing *) error; -+ (instancetype) tryFromDatabase: (NSString*) uuid zoneID:(CKRecordZoneID*)zoneID error: (NSError * __autoreleasing *) error; -+ (instancetype) tryFromDatabase: (NSString*) uuid state: (NSString*) state zoneID:(CKRecordZoneID*)zoneID error: (NSError * __autoreleasing *) error; ++ (instancetype)withItem:(SecDbItemRef)item + action:(NSString*)action + ckks:(CKKSKeychainView*)ckks + error:(NSError* __autoreleasing*)error; ++ (instancetype)fromDatabase:(NSString*)uuid + state:(NSString*)state + zoneID:(CKRecordZoneID*)zoneID + error:(NSError* __autoreleasing*)error; ++ (instancetype)tryFromDatabase:(NSString*)uuid zoneID:(CKRecordZoneID*)zoneID error:(NSError* __autoreleasing*)error; ++ (instancetype)tryFromDatabase:(NSString*)uuid + state:(NSString*)state + zoneID:(CKRecordZoneID*)zoneID + error:(NSError* __autoreleasing*)error; -+ (NSArray*) fetch:(ssize_t) n state: (NSString*) state zoneID:(CKRecordZoneID*)zoneID error: (NSError * __autoreleasing *) error; -+ (NSArray*) allInState: (NSString*) state zoneID:(CKRecordZoneID*)zoneID error: (NSError * __autoreleasing *) error; ++ (NSArray*)fetch:(ssize_t)n + state:(NSString*)state + zoneID:(CKRecordZoneID*)zoneID + error:(NSError* __autoreleasing*)error; ++ (NSArray*)allInState:(NSString*)state + zoneID:(CKRecordZoneID*)zoneID + error:(NSError* __autoreleasing*)error; -+ (NSDictionary*)countsByState:(CKRecordZoneID*)zoneID error: (NSError * __autoreleasing *) error; ++ (NSDictionary*)countsByStateInZone:(CKRecordZoneID*)zoneID error:(NSError* __autoreleasing*)error; ++ (NSInteger)countByState:(CKKSItemState *)state zone:(CKRecordZoneID*)zoneID error: (NSError * __autoreleasing *) error; @end