1 /* 2 Project: Cartotheque 3 4 Copyright (C) 2005 Stefan Urbanek 5 6 Author : Stefan Urbanek 7 Created: 2005-01-27 8 License: GNU LGPL 2.1 9 */ 10 11 #import <Foundation/NSObject.h> 12 13 extern NSString *CardCreatedNotification; 14 extern NSString *CardEditedNotification; 15 16 @class CardRepository; 17 @class Card; 18 @class NSMutableSet; 19 @class NSMutableDictionary; 20 21 /** Card container and controller class. 22 | exposed retained objects nosuperarchive */ 23 @interface Cartotheque:NSObject 24 { 25 CardRepository *repository; /** | notretained readonly */ 26 NSMutableDictionary *fetchedCards; /** | readonly */ 27 NSMutableSet *changedCards; /** | hidden */ 28 } 29 - initWithRepository:(CardRepository *)aRepository; 30 31 - (Card *)homeCard; 32 - (void)touchCard:(Card *)card; 33 - (NSArray *)allCards; 34 35 - (Card *)createCard; 36 - (void)deleteCards:(NSArray *)cards; 37 - (void)deleteCard:(Card *)card; 38 39 - (void)commitChanges; 40 @end 41 42 /* BEGIN Generated by DevelKit */ 43 @interface Cartotheque (DKGeneratedMethods) 44 45 - (CardRepository *)repository; 46 47 @end 48 /* END Generated by DevelKit */ 49