aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPFavoritesController.h
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2010-11-11 13:15:46 +0000
committerstuconnolly <stuart02@gmail.com>2010-11-11 13:15:46 +0000
commit0a990aea16056b35fc95fb6845ac2570700bb613 (patch)
tree8fc6e9be062115d739e389dcf7eb36d262178666 /Source/SPFavoritesController.h
parentf5a548c05eb23afd80d3c7f105233542b0cfe8aa (diff)
downloadsequelpro-0a990aea16056b35fc95fb6845ac2570700bb613.tar.gz
sequelpro-0a990aea16056b35fc95fb6845ac2570700bb613.tar.bz2
sequelpro-0a990aea16056b35fc95fb6845ac2570700bb613.zip
More work on the new favorites controller, including loading and saving as well as the method to migrate existing favorites data. Currently not yet active.
Diffstat (limited to 'Source/SPFavoritesController.h')
-rw-r--r--Source/SPFavoritesController.h20
1 files changed, 18 insertions, 2 deletions
diff --git a/Source/SPFavoritesController.h b/Source/SPFavoritesController.h
index 5e9d714c..bb698d16 100644
--- a/Source/SPFavoritesController.h
+++ b/Source/SPFavoritesController.h
@@ -25,11 +25,27 @@
#import "SPSingleton.h"
+/**
+ * @class SPFavoritesController SPFavoritesController.h
+ *
+ * @author Stuart Connolly http://stuconnolly.com/
+ *
+ * Connection favorites controller that provides a single point of access for managing the user's connection
+ * favorites in memory and on disk.
+ */
@interface SPFavoritesController : SPSingleton
{
- NSDictionary *favorties;
+ NSDictionary *favorites;
}
-- (SPFavoritesController *)sharedFavoritesController;
+/**
+ * @property favorites Favorites data dictionary
+ */
+@property (readonly) NSDictionary *favorites;
+
++ (SPFavoritesController *)sharedFavoritesController;
+
+- (void)saveFavorites;
+- (void)reloadFavoritesWithSave:(BOOL)save;
@end