VaKeR CYBER ARMY
Logo of a company Server : Apache/2.4.41 (Ubuntu)
System : Linux absol.cf 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64
User : www-data ( 33)
PHP Version : 7.4.33
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Directory :  /usr/include/GNUstep/Frameworks/ProjectCenter.framework/Headers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/include/GNUstep/Frameworks/ProjectCenter.framework/Headers/PCBundleManager.h
/*
   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;

// --- Handling of bundles' Info.table dictionaries without actual
// --- bundles loading

- (NSDictionary *)infoForBundlesType:(NSString *)extension;

// Key value can be checked against NSString and NSArray values only.
- (NSDictionary *)infoForBundleType:(NSString *)extension
			    keyName:(NSString *)key
			keyContains:(NSString *)value;

- (NSDictionary *)infoForBundleName:(NSString *)name
			       type:(NSString *)type;

- (NSString *)classNameForBundleType:(NSString*)type 
			    fileName:(NSString *)fileName;

- (NSString *)bundlePathWithName:(NSString *)bundleName;

// --- Invokes loading of bundle

- (id)objectForClassName:(NSString *)className
	      bundleType:(NSString *)bundleExtension
		protocol:(Protocol *)proto;

- (id)objectForBundleWithName:(NSString *)name
			 type:(NSString *)extension
		     protocol:(Protocol *)proto;

- (id)objectForBundleType:(NSString *)extension
		 protocol:(Protocol *)proto
		 fileName:(NSString *)fileName;

- (NSBundle *)bundleOfType:(NSString *)type
	     withClassName:(NSString *)className;

// --- Bundle loading

- (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

VaKeR 2022