RSSKit
0.6.1
RSSFactory.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 "RSSArticleProtocol.h"
23
24
@protocol
RSSFactory
<NSObject>
25
29
- (id<
RSSFeed
>) feedWithURL: (NSURL*) aURL;
30
40
- (id<
RSSArticle
>) articleWithHeadline: (NSString*) aHeadline
41
URL: (NSString*) aURL
42
content: (NSString*) aContent
43
date: (NSDate*) aDate;
44
49
- (id<
RSSMutableArticle
>) articleFromStorageWithURL: (NSString*) aURL;
50
54
- (id<
RSSMutableArticle
>) articleFromDictionary: (NSDictionary*) aDictionary;
55
59
- (NSString*) storagePathForURL: (NSString*) anURL;
60
61
@end
62
67
@interface
RSSFactory
: NSObject <RSSFactory>
68
72
+ (id<
RSSFactory
>)
sharedFactory
;
73
77
+ (void) setFactory: (
id
<
RSSFactory
>) aFactory;
78
79
83
-(NSString*) storagePathForURL: (NSString*) anURL;
84
85
86
- (id<
RSSArticle
>) articleWithHeadline: (NSString*) aHeadline
87
URL: (NSString*) aURL
88
content: (NSString*) aContent
89
date: (NSDate*) aDate;
90
91
- (id<
RSSMutableArticle
>) articleFromStorageWithURL: (NSString*) aURL;
92
93
- (id<
RSSMutableArticle
>) articleFromDictionary: (NSDictionary*) aDictionary;
94
95
@end
RSSArticle
Definition:
RSSArticle.h:38
RSSFactory
Definition:
RSSFactory.h:67
+[RSSFactory sharedFactory]
id< RSSFactory > sharedFactory()
Definition:
RSSFactory.m:67
RSSFeed
Definition:
RSSFeed.h:87
RSSMutableArticle-p
Definition:
RSSArticleProtocol.h:114
Generated by
1.9.4