Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(363)

Unified Diff: remoting/ios/data_store.h

Issue 186733007: iOS Chromoting Client (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/ios/bridge/host_proxy_unittest.mm ('k') | remoting/ios/data_store.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/ios/data_store.h
diff --git a/remoting/ios/data_store.h b/remoting/ios/data_store.h
new file mode 100644
index 0000000000000000000000000000000000000000..0e4a34a0c8a8dbfe896c1e8d906db8b80ba503ca
--- /dev/null
+++ b/remoting/ios/data_store.h
@@ -0,0 +1,31 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef REMOTING_IOS_DATA_STORE_H_
+#define REMOTING_IOS_DATA_STORE_H_
+
+#import <CoreData/CoreData.h>
+
+#import "remoting/ios/host_preferences.h"
+
+// A local data store backed by SQLLite to hold instances of HostPreferences.
+// HostPreference is defined by the Core Data Model templates see
+// ChromotingModel.xcdatamodel
+@interface DataStore : NSObject
+
+// Static pointer to the managed data store
++ (DataStore*)sharedStore;
+
+// General methods
+- (BOOL)saveChanges;
+
+// Access methods for Hosts
+- (NSArray*)allHosts;
+- (const HostPreferences*)createHost:(NSString*)hostId;
+- (void)removeHost:(const HostPreferences*)p;
+- (const HostPreferences*)getHostForId:(NSString*)hostId;
+
+@end
+
+#endif // REMOTING_IOS_DATA_STORE_H_
« no previous file with comments | « remoting/ios/bridge/host_proxy_unittest.mm ('k') | remoting/ios/data_store.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698