diff options
author | stuconnolly <stuart02@gmail.com> | 2010-12-05 15:03:28 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2010-12-05 15:03:28 +0000 |
commit | 4e87089af2ce50364a3e6fcfdf8a3c31e172d8aa (patch) | |
tree | 88ff9ede1a8fb612cd4fbf7a4f90b7cbc8f10f34 /Source/SPFavoritesController.h | |
parent | 93b889667f1b938931b84e8fed07ee58bcba3c8f (diff) | |
download | sequelpro-4e87089af2ce50364a3e6fcfdf8a3c31e172d8aa.tar.gz sequelpro-4e87089af2ce50364a3e6fcfdf8a3c31e172d8aa.tar.bz2 sequelpro-4e87089af2ce50364a3e6fcfdf8a3c31e172d8aa.zip |
Apply new favorites outline view patch.
Diffstat (limited to 'Source/SPFavoritesController.h')
-rw-r--r-- | Source/SPFavoritesController.h | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/Source/SPFavoritesController.h b/Source/SPFavoritesController.h index 1b9f0aca..095e1cd0 100644 --- a/Source/SPFavoritesController.h +++ b/Source/SPFavoritesController.h @@ -25,6 +25,8 @@ #import "SPSingleton.h" +@class SPTreeNode; + /** * @class SPFavoritesController SPFavoritesController.h * @@ -35,17 +37,31 @@ */ @interface SPFavoritesController : SPSingleton { - NSMutableDictionary *favorites; + SPTreeNode *favoritesTree; + NSMutableDictionary *favoritesData; + + pthread_mutex_t writeLock; + pthread_mutex_t favoritesLock; } /** - * @property favorites Favorites data dictionary + * @property favoritesTree + */ +@property (readonly) SPTreeNode *favoritesTree; + +/** + * @property favoritesData Favorites data dictionary */ -@property (readonly) NSMutableDictionary *favorites; +@property (readonly) NSMutableDictionary *favoritesData; + (SPFavoritesController *)sharedFavoritesController; - (void)saveFavorites; - (void)reloadFavoritesWithSave:(BOOL)save; +- (SPTreeNode *)addGroupNodeWithName:(NSString *)name asChildOfNode:(SPTreeNode *)parent; +- (SPTreeNode *)addFavoriteNodeWithData:(NSDictionary *)data asChildOfNode:(SPTreeNode *)parent; + +- (void)removeFavoriteNode:(SPTreeNode *)node; + @end |