]> git.saurik.com Git - apple/security.git/blobdiff - OSX/sec/SOSCircle/SecureObjectSync/CKDSimulatedStore.h
Security-57740.51.3.tar.gz
[apple/security.git] / OSX / sec / SOSCircle / SecureObjectSync / CKDSimulatedStore.h
diff --git a/OSX/sec/SOSCircle/SecureObjectSync/CKDSimulatedStore.h b/OSX/sec/SOSCircle/SecureObjectSync/CKDSimulatedStore.h
new file mode 100644 (file)
index 0000000..a444488
--- /dev/null
@@ -0,0 +1,34 @@
+//
+//  CKDSimulatedStore.h
+//  Security
+//
+//  Created by Mitch Adler on 10/31/16.
+//
+//
+
+#import "CKDStore.h"
+
+@interface CKDSimulatedStore : NSObject <CKDStore>
+
++ (instancetype)simulatedInterface;
+- (instancetype)init;
+
+- (void)connectToProxy: (UbiqitousKVSProxy*) proxy;
+
+- (NSObject*)objectForKey:(NSString*)key;
+
+- (void)setObject:(id)obj forKey:(NSString*)key;
+- (void)addEntriesFromDictionary:(NSDictionary<NSString*, NSObject*> *)otherDictionary;
+
+- (void)removeObjectForKey:(NSString*)key;
+- (void)removeAllObjects;
+
+- (NSDictionary<NSString *, id>*) copyAsDictionary;
+
+- (void)pushWrites;
+- (BOOL)pullUpdates:(NSError**) failure;
+
+
+- (void)remoteSetObject:(id)obj forKey:(NSString*)key;
+
+@end