RSSKit  0.6.1
RSSArticle.h
1 /* -*-objc-*-
2  *
3  * GNUstep RSS Kit
4  * Copyright (C) 2010-2011 The Free Software Foundation, Inc.
5  * 2006 Guenther Noack
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public
9  * License as published by the Free Software Foundation, in version 2.1
10  * of the License
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with this library; if not, write to the Free Software
19  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20  */
21 
22 
23 #import <objc/objc.h>
24 #import <Foundation/Foundation.h>
25 
26 @class RSSArticle;
27 
28 #import "RSSFeed.h"
29 #import "RSSArticleProtocol.h"
30 
31 
32 
36 @interface RSSArticle : NSObject <RSSMutableArticle>
37 {
38  @protected
39  NSString* headline;
40  NSString* url;
41  NSString* description;
42  NSDate* date;
43 
44  @private
45  NSURL* enclosure;
46 
48  NSMutableArray* links;
49 
50  id<RSSFeed> feed;
51 }
52 
59 -init;
60 
74 -initWithHeadline: (NSString*) myHeadline
75  url: (NSString*) myUrl
76  description: (NSString*) myDescription
77  date: (NSDate*) myDate;
78 
79 
80 
81 -(void) dealloc;
82 
83 
84 // Accessor methods (conformance to RSSArticle protocol)
85 -(NSString*)headline;
86 -(NSString*)url;
87 -(NSString*)content;
88 -(NSString*)description;
89 -(NSArray*) links;
90 -(NSDate*) date;
91 -(NSURL*)enclosure;
92 
93 // Mutability methods (conformance to RSSMutableArticle protocol)
94 -(void)addLink:(NSURL*) anURL;
95 -(void)setLinks: (NSArray*) someLinks;
96 -(void)setFeed: (id<RSSMutableFeed>) aFeed;
97 -(void)setDate: (NSDate*) aDate;
98 
103 -(void)notifyChange;
104 
105 
106 // Equality and hash codes
107 - (BOOL) isEqual: (id)anObject;
108 
115 -(void)willBeReplacedByArticle: (id<RSSMutableArticle>) newArticle;
116 
117 @end
void notifyChange()
Definition: RSSArticle.m:111
id init()
Definition: RSSArticle.m:37
Definition: RSSArticle.h:36