RSSKit  0.6.1
RSSArticleProtocol.h
1 /* -*-objc-*-
2  *
3  * GNUstep RSS Kit
4  * Copyright (C) 2006 Guenther Noack
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation, in version 2.1
9  * of the License
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19  */
20 
21 #import <Foundation/NSObject.h>
22 #import <Foundation/NSURL.h>
23 #import "RSSFeedProtocol.h"
24 
29 extern NSString* RSSArticleChangedNotification;
30 
31 
32 
36 @protocol RSSArticle <NSObject>
38 - (NSString*) headline;
39 
41 - (NSString*) url;
42 
44 - (NSString*) content;
45 
54 - (NSArray*) links;
55 
63 - (NSDate*) date;
64 
71 - (NSURL*) enclosure;
72 
77 -(void) setAutoClear: (BOOL) autoClear;
78 
85 -(BOOL) autoClear;
86 
87 
104 - (id<RSSFeed>) feed;
105 
110 - (NSDictionary*) plistDictionary;
111 
115 - (BOOL) store;
116 
123 - (void) willBeReplacedByArticle: (id) newArticle;
124 
125 @end
126 
133 @protocol RSSMutableArticle <RSSArticle>
134 
144 - (void) addLink:(NSURL*) anURL;
145 
151 - (void) setLinks: (NSArray*) someLinks;
152 
153 // only used internally
154 - (void) setFeed: (id) aFeed;
155 
159 - (void) setDate: (NSDate*) aDate;
160 
161 @end
162