]> git.saurik.com Git - apple/security.git/blob - keychain/ckks/CKKSCloudKitClassDependencies.m
Security-59306.140.5.tar.gz
[apple/security.git] / keychain / ckks / CKKSCloudKitClassDependencies.m
1
2 #import "keychain/ckks/CKKSCloudKitClassDependencies.h"
3
4 @implementation CKKSCloudKitClassDependencies
5
6 + (CKKSCloudKitClassDependencies*) forLiveCloudKit
7 {
8 return [[CKKSCloudKitClassDependencies alloc] initWithFetchRecordZoneChangesOperationClass:[CKFetchRecordZoneChangesOperation class]
9 fetchRecordsOperationClass:[CKFetchRecordsOperation class]
10 queryOperationClass:[CKQueryOperation class]
11 modifySubscriptionsOperationClass:[CKModifySubscriptionsOperation class]
12 modifyRecordZonesOperationClass:[CKModifyRecordZonesOperation class]
13 apsConnectionClass:[APSConnection class]
14 nsnotificationCenterClass:[NSNotificationCenter class]
15 nsdistributednotificationCenterClass:[NSDistributedNotificationCenter class]
16 notifierClass:[CKKSNotifyPostNotifier class]];
17 }
18
19 - (instancetype)initWithFetchRecordZoneChangesOperationClass:(Class<CKKSFetchRecordZoneChangesOperation>)fetchRecordZoneChangesOperationClass
20 fetchRecordsOperationClass:(Class<CKKSFetchRecordsOperation>)fetchRecordsOperationClass
21 queryOperationClass:(Class<CKKSQueryOperation>)queryOperationClass
22 modifySubscriptionsOperationClass:(Class<CKKSModifySubscriptionsOperation>)modifySubscriptionsOperationClass
23 modifyRecordZonesOperationClass:(Class<CKKSModifyRecordZonesOperation>)modifyRecordZonesOperationClass
24 apsConnectionClass:(Class<OctagonAPSConnection>)apsConnectionClass
25 nsnotificationCenterClass:(Class<CKKSNSNotificationCenter>)nsnotificationCenterClass
26 nsdistributednotificationCenterClass:(Class<CKKSNSDistributedNotificationCenter>)nsdistributednotificationCenterClass
27 notifierClass:(Class<CKKSNotifier>)notifierClass
28 {
29 if(self = [super init]) {
30 _fetchRecordZoneChangesOperationClass = fetchRecordZoneChangesOperationClass;
31 _fetchRecordsOperationClass = fetchRecordsOperationClass;
32 _queryOperationClass = queryOperationClass;
33 _modifySubscriptionsOperationClass = modifySubscriptionsOperationClass;
34 _modifyRecordZonesOperationClass = modifyRecordZonesOperationClass;
35 _apsConnectionClass = apsConnectionClass;
36 _nsnotificationCenterClass = nsnotificationCenterClass;
37 _nsdistributednotificationCenterClass = nsdistributednotificationCenterClass;
38 _notifierClass = notifierClass;
39 }
40 return self;
41 }
42
43 @end
44