From 0a990aea16056b35fc95fb6845ac2570700bb613 Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Thu, 11 Nov 2010 13:15:46 +0000 Subject: 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. --- Source/SPFavoritesController.h | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to 'Source/SPFavoritesController.h') 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 -- cgit v1.2.3