mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
Header reorganizsateion - Please refer to ChangeLog
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@17407 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
9cc6c39319
commit
ac30183cd6
238 changed files with 694 additions and 544 deletions
97
Headers/Foundation/NSURL.h
Normal file
97
Headers/Foundation/NSURL.h
Normal file
|
@ -0,0 +1,97 @@
|
|||
/* NSURL.h - Class NSURL
|
||||
Copyright (C) 1999 Free Software Foundation, Inc.
|
||||
|
||||
Written by: Manuel Guesdon <mguesdon@sbuilders.com>
|
||||
Date: Jan 1999
|
||||
|
||||
This file is part of the GNUstep Library.
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2 of the License, or (at your option) any later version.
|
||||
|
||||
This library 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 Library 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 _NSURL_h__
|
||||
#define _NSURL_h__
|
||||
|
||||
#include <Foundation/NSURLHandle.h>
|
||||
|
||||
#ifndef STRICT_OPENSTEP
|
||||
|
||||
@class NSNumber;
|
||||
|
||||
GS_EXPORT NSString* NSURLFileScheme;
|
||||
|
||||
@interface NSURL: NSObject <NSCoding, NSCopying, NSURLHandleClient>
|
||||
{
|
||||
NSString *_urlString;
|
||||
NSURL *_baseURL;
|
||||
void *_clients;
|
||||
void *_data;
|
||||
}
|
||||
|
||||
+ (id) fileURLWithPath: (NSString*)aPath;
|
||||
+ (id) URLWithString: (NSString*)aUrlString;
|
||||
+ (id) URLWithString: (NSString*)aUrlString
|
||||
relativeToURL: (NSURL*)aBaseUrl;
|
||||
|
||||
- (id) initFileURLWithPath: (NSString*)aPath;
|
||||
- (id) initWithScheme: (NSString*)aScheme
|
||||
host: (NSString*)aHost
|
||||
path: (NSString*)aPath;
|
||||
- (id) initWithString: (NSString*)aUrlString;
|
||||
- (id) initWithString: (NSString*)aUrlString
|
||||
relativeToURL: (NSURL*)aBaseUrl;
|
||||
|
||||
- (NSString*) absoluteString;
|
||||
- (NSURL*) absoluteURL;
|
||||
- (NSURL*) baseURL;
|
||||
- (NSString*) fragment;
|
||||
- (NSString*) host;
|
||||
- (BOOL) isFileURL;
|
||||
- (void) loadResourceDataNotifyingClient: (id)client
|
||||
usingCache: (BOOL)shouldUseCache;
|
||||
- (NSString*) parameterString;
|
||||
- (NSString*) password;
|
||||
- (NSString*) path;
|
||||
- (NSNumber*) port;
|
||||
- (id) propertyForKey: (NSString*)propertyKey;
|
||||
- (NSString*) query;
|
||||
- (NSString*) relativePath;
|
||||
- (NSString*) relativeString;
|
||||
- (NSData*) resourceDataUsingCache: (BOOL)shouldUseCache;
|
||||
- (NSString*) resourceSpecifier;
|
||||
- (NSString*) scheme;
|
||||
- (BOOL) setProperty: (id)property
|
||||
forKey: (NSString*)propertyKey;
|
||||
- (BOOL) setResourceData: (NSData*)data;
|
||||
- (NSURL*) standardizedURL;
|
||||
- (NSURLHandle*)URLHandleUsingCache: (BOOL)shouldUseCache;
|
||||
- (NSString*) user;
|
||||
|
||||
@end
|
||||
|
||||
@interface NSObject (NSURLClient)
|
||||
- (void) URL: (NSURL*)sender
|
||||
resourceDataDidBecomeAvailable: (NSData*)newBytes;
|
||||
|
||||
- (void) URLResourceDidFinishLoading: (NSURL*)sender;
|
||||
- (void) URLResourceDidCancelLoading: (NSURL*)sender;
|
||||
|
||||
- (void) URL: (NSURL*)sender
|
||||
resourceDidFailLoadingWithReason: (NSString*)reason;
|
||||
@end
|
||||
|
||||
#endif
|
||||
|
||||
#endif //_NSUrl_h__
|
Loading…
Add table
Add a link
Reference in a new issue