1 /* 2 BundleController.h 3 4 Bundle manager class and protocol 5 6 Copyright (C) 2001 Dusk to Dawn Computing, Inc. 7 Additional copyrights here 8 9 Author: Jeff Teunissen <deek@d2dc.net> 10 Date: 20 Nov 2001 11 12 This program is free software; you can redistribute it and/or 13 modify it under the terms of the GNU General Public License as 14 published by the Free Software Foundation; either version 2 of 15 the License, or (at your option) any later version. 16 17 This program is distributed in the hope that it will be useful, 18 but WITHOUT ANY WARRANTY; without even the implied warranty of 19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 20 21 See the GNU General Public License for more details. 22 23 You should have received a copy of the GNU General Public 24 License along with this program; if not, write to: 25 26 Free Software Foundation, Inc. 27 59 Temple Place - Suite 330 28 Boston, MA 02111-1307, USA 29 */ 30 31 #ifdef HAVE_CONFIG_H 32 # include "Config.h" 33 #endif 34 35 #import <Foundation/NSArray.h> 36 #import <Foundation/NSBundle.h> 37 #import <Foundation/NSObject.h> 38 39 //#import "PrefsView.h" 40 #import <PrefsModule/PrefsModule.h> 41 42 /* 43 Bundle Delegate protocol 44 45 App controllers need to adopt this protocol to receive notifications 46 */ 47 @class BundleController; // forward reference so the compiler doesn't get confused 48 49 @interface BundleController: NSObject 50 { 51 id delegate; 52 NSMutableDictionary *loadedBundles; 53 } 54 55 + (BundleController *) sharedBundleController; 56 57 - (id) init; 58 - (void) dealloc; 59 60 - (id) delegate; 61 - (void) setDelegate: (id) aDelegate; 62 63 - (BOOL) loadBundleWithPath: (NSString *) path; 64 - (void) loadBundles; 65 66 - (NSDictionary *) loadedBundles; 67 68 @end 69