RSSKit
0.6.1
|
00001 /* -*-objc-*- 00002 * 00003 * GNUstep RSS Kit 00004 * Copyright (C) 2006 Guenther Noack 00005 * 00006 * This library is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU Lesser General Public 00008 * License as published by the Free Software Foundation, in version 2.1 00009 * of the License 00010 * 00011 * This library is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 * Lesser General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU Lesser General Public 00017 * License along with this library; if not, write to the Free Software 00018 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00019 */ 00020 00021 #import <Foundation/NSURL.h> 00022 #import <Foundation/NSString.h> 00023 #import <Foundation/NSException.h> 00024 00025 00032 @interface RSSLink : NSURL 00033 { 00034 NSString* _type; 00035 } 00036 00063 +(id) linkWithString: (NSString*) aURLString 00064 andRel: (NSString*) aRelation 00065 andType: (NSString*) aType; 00066 00070 -(id) initWithString: (NSString*) aURLString 00071 andType: (NSString*) aType; 00072 00079 -(NSString*) relationType; 00080 00081 00087 -(NSString*) fileType; 00088 @end 00089 00090 @interface RSSAlternativeLink : RSSLink 00091 +(id) alternativeLinkWithString: (NSString*) aURLString; 00092 +(id) alternativeLinkWithString: (NSString*) aURLString 00093 andType: (NSString*) aType; 00094 @end 00095 00096 @interface RSSEnclosureLink : RSSLink 00097 +(id) enclosureLinkWithString: (NSString*) aURLString; 00098 +(id) enclosureLinkWithString: (NSString*) aURLString 00099 andType: (NSString*) aType; 00100 @end 00101 00102 @interface RSSRelatedLink : RSSLink 00103 +(id) relatedLinkWithString: (NSString*) aURLString; 00104 +(id) relatedLinkWithString: (NSString*) aURLString 00105 andType: (NSString*) aType; 00106 @end 00107 00108 @interface RSSViaLink : RSSLink 00109 +(id) viaLinkWithString: (NSString*) aURLString; 00110 +(id) viaLinkWithString: (NSString*) aURLString 00111 andType: (NSString*) aType; 00112 @end