RSSKit  0.6.1
RSSArticleProtocol.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 #import <Foundation/NSObject.h>
23 #import <Foundation/NSURL.h>
24 #import "RSSFeedProtocol.h"
25 
30 extern NSString* RSSArticleChangedNotification;
31 
32 
33 
37 @protocol RSSArticle <NSObject>
39 - (NSString*) headline;
40 
42 - (NSString*) url;
43 
45 - (NSString*) content;
46 
55 - (NSArray*) links;
56 
64 - (NSDate*) date;
65 
72 - (NSURL*) enclosure;
73 
74 
91 - (id<RSSFeed>) feed;
92 
96 - (BOOL) store;
97 
104 - (void) willBeReplacedByArticle: (id) newArticle;
105 
106 @end
107 
115 
125 - (void) addLink:(NSURL*) anURL;
126 
132 - (void) setLinks: (NSArray*) someLinks;
133 
134 // only used internally
135 - (void) setFeed: (id) aFeed;
136 
140 - (void) setDate: (NSDate*) aDate;
141 
142 @end
143 
NSString * content()
Definition: RSSArticle.m:89
NSArray * links()
Definition: RSSArticle.m:184
Definition: RSSArticleProtocol.h:114
BOOL store()
Definition: RSSArticle+Storage.m:142
NSString * url()
Definition: RSSArticle.m:79
NSString * headline()
Definition: RSSArticle.m:74
Definition: RSSFeed.h:85
NSDate * date()
Definition: RSSArticle.m:94
id< RSSFeed > feed()
Definition: RSSArticle.h:36
NSURL * enclosure()
Definition: RSSArticle.m:141