apps-projectcenter/Headers/ProjectCenter/PCBundleManager.h
Sergii Stoian 787bb6a506 Start merging changes from unstable branch
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@24241 72102866-910b-0410-8b05-ffd578937521
2006-12-26 10:58:39 +00:00

70 lines
2.2 KiB
Objective-C

/*
GNUstep ProjectCenter - http://www.gnustep.org/experience/ProjectCenter.html
Copyright (C) 2000-2004 Free Software Foundation
Author: Philippe C.D. Robert
Serg Stoyan
This file is part of GNUstep.
This application is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This application is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA.
*/
#ifndef _PCBundleManager_h_
#define _PCBundleManager_h_
#include <AppKit/AppKit.h>
@interface PCBundleManager : NSObject
{
NSMutableDictionary *loadedBundles;
NSMutableDictionary *bundlesInfo;
}
//----------------------------------------------------------------------------
// Init and free methods
//----------------------------------------------------------------------------
- (id)init;
- (void)dealloc;
- (NSString *)resourcePath;
- (NSDictionary *)infoForBundlesOfType:(NSString *)extension;
- (NSString *)bundlePathWithName:(NSString *)bundleName;
- (NSBundle *)bundleOfType:(NSString *)type forClassName:(NSString *)className;
- (id)objectForClassName:(NSString *)className
withProtocol:(Protocol *)proto
inBundleType:(NSString *)type;
- (BOOL)loadBundleIfNeededWithName:(NSString *)bundleName;
// Load all bundles found in the BundlePaths
- (void)loadBundlesWithExtension:(NSString *)extension;
- (void)loadBundlesAtPath:(NSString *)path withExtension:(NSString *)extension;
- (BOOL)loadBundleWithFullPath:(NSString *)path;
// Returns all loaded ProjectCenter bundles.
- (NSDictionary *)loadedBundles;
@end
@interface NSObject (BundleManagerDelegates)
- (void)bundleLoader:(id)sender didLoadBundle:(NSBundle *)aBundle;
@end
#endif