RSSArticle.h

00001 /*  -*-objc-*-
00002  *
00003  *  GNUstep RSS Kit
00004  *  Copyright (C) 2006 Guenther Noack
00005  *
00006  *  This program is free software; you can redistribute it and/or modify
00007  *  it under the terms of the GNU General Public License version 2 as
00008  *  published by the Free Software Foundation.
00009  *
00010  *  This program is distributed in the hope that it will be useful,
00011  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  *  GNU General Public License for more details.
00014  *
00015  *  You should have received a copy of the GNU General Public License
00016  *  along with this program; if not, write to the Free Software
00017  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00018  */
00019 
00020 
00021 #import <objc/objc.h>
00022 #import <Foundation/Foundation.h>
00023 
00024 @class RSSArticle;
00025 
00026 #import "RSSFeed.h"
00027 
00031 @interface RSSArticle : NSObject <NSCoding>
00032 {
00033 @private
00034   NSString*  headline;
00035   NSString*  url;
00036   NSString*  description;
00037   NSDate*    date;
00038   
00040   NSMutableArray* links;
00041   
00042   RSSFeed*   feed;
00043 }
00044 
00051 -init;
00052 
00066 -initWithHeadline: (NSString*) myHeadline
00067               url: (NSString*) myUrl
00068       description: (NSString*) myDescription
00069              date: (NSDate*)   myDate;
00070 
00084 -initWithHeadline: (NSString*) myHeadline
00085               url: (NSString*) myUrl
00086       description: (NSString*) myDescription
00087              time: (unsigned int) myTime;
00088 
00089 
00090 -(void) dealloc;
00091 
00092 
00093 // NSCoding methods
00094 
00096 -(id)initWithCoder: (NSCoder*)coder;
00097 
00099 -(void)encodeWithCoder: (NSCoder*)coder;
00100 
00101 // end of NSCoding methods
00102 
00104 -(NSString*)headline;
00105 
00107 -(NSString*)url;
00108 
00110 -(NSString*)description;
00111 
00121 -(void)addLink:(NSURL*) anURL;
00122 
00128 -(void)setLinks:(NSMutableArray*) someLinks;
00129 
00138 -(NSArray*) links;
00139 
00147 -(NSDate*) date;
00148 
00149 -(void)feed:(RSSFeed*)aFeed;
00150 
00167 -(RSSFeed*)feed;
00168 
00169 
00170 // Equality and hash codes
00171 - (unsigned) hash;
00172 - (BOOL) isEqual: (id)anObject;
00173 
00174 @end

Generated on Thu Aug 3 00:51:27 2006 for RSSKit by  doxygen 1.4.6