/usr/include/GNUstep/NGObjWeb/OWResourceManager.h is in libsope-dev 2.2.17-1build2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 | /*
Copyright (C) 2000-2005 SKYRIX Software AG
This file is part of SOPE.
SOPE is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the
Free Software Foundation; either version 2, or (at your option) any
later version.
SOPE 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 Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public
License along with SOPE; see the file COPYING. If not, write to the
Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA.
*/
#ifndef __NGObjWeb_OWResourceManager_H__
#define __NGObjWeb_OWResourceManager_H__
// ATTENTION: this class is for OGo legacy, so that WO compatibility changes
// to WOResourceManager do not break OGo.
// So: do not use that class, its DEPRECATED!
#import <Foundation/NSObject.h>
#import <Foundation/NSLock.h>
#import <Foundation/NSMapTable.h>
#import <Foundation/NSHashTable.h>
@class NSString, NSArray, NSData;
@class WORequest, WOComponent, WOElement, WOSession;
@interface OWResourceManager : NSObject < NSLocking >
{
@protected
NSString *base;
@private
NSString *w3resources;
NSString *resources;
NSMapTable *componentDefinitions; // name.language => definition
NSMapTable *stringTables; // path => tableinfo
NSMapTable *existingPathes;
NSMapTable *keyedResources;
}
- (BOOL)shouldLookupResourceInWebServerResources:(NSString *)_name;
- (NSString *)pathForResourceNamed:(NSString *)_name
inFramework:(NSString *)_frameworkName
languages:(NSArray *)_languages;
- (NSString *)urlForResourceNamed:(NSString *)_name
inFramework:(NSString *)_frameworkName
languages:(NSArray *)_languages
request:(WORequest *)_request;
/* string tables */
- (NSString *)stringForKey:(NSString *)_key
inTableNamed:(NSString *)_tableName
withDefaultValue:(NSString *)_default
languages:(NSArray *)_languages;
- (NSString *)stringForKey:(NSString *)_key
inTableNamed:(NSString *)_tableName
withDefaultValue:(NSString *)_defaultValue
inFramework:(NSString *)_framework
languages:(NSArray *)_languages;
@end
@interface OWResourceManager(KeyedData)
/* keyed storage */
- (void)setData:(NSData *)_data
forKey:(NSString *)_key
mimeType:(NSString *)_type
session:(WOSession *)_session;
- (void)removeDataForKey:(NSString *)_key session:(WOSession *)_session;
- (void)flushDataCache;
@end
@interface OWResourceManager(PrivateMethods)
- (id)initWithPath:(NSString *)_path;
+ (void)setResourcePrefix:(NSString *)_prefix;
- (WOElement *)templateWithName:(NSString *)_name languages:(NSArray *)_langs;
- (id)pageWithName:(NSString *)_name languages:(NSArray *)_langs;
- (NSString *)pathToComponentNamed:(NSString *)_name
inFramework:(NSString *)_framework
languages:(NSArray *)_langs;
- (NSString *)pathToComponentNamed:(NSString *)_name
inFramework:(NSString *)_framework;
- (void)setCachingEnabled:(BOOL)_flag;
- (BOOL)isCachingEnabled;
@end
@interface OWResourceManager(DeprecatedMethods)
- (NSString *)pathForResourceNamed:(NSString *)_name;
- (NSString *)pathForResourceNamed:(NSString *)_name ofType:(NSString *)_type;
- (NSString *)urlForResourceNamed:(NSString *)_name;
- (NSString *)urlForResourceNamed:(NSString *)_name ofType:(NSString *)_type;
@end
#endif /* __NGObjWeb_OWResourceManager_H__ */
|