RSSFactory.h
/* -*-objc-*-
*
* GNUstep RSS Kit
* Copyright (C) 2006 Guenther Noack
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation, in version 2.1
* of the License
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#import <Foundation/NSObject.h>
#import "RSSArticleProtocol.h"
@protocol RSSFactory <NSObject>
- (id<RSSFeed>) feedWithURL: (NSURL*) aURL;
- (id<RSSArticle>) articleWithHeadline: (NSString*) aHeadline
URL: (NSString*) aURL
content: (NSString*) aContent
date: (NSDate*) aDate;
- (id<RSSMutableArticle>) articleFromStorageWithURL: (NSString*) aURL;
- (id<RSSMutableArticle>) articleFromDictionary: (NSDictionary*) aDictionary;
- (NSString*) storagePathForURL: (NSString*) anURL;
@end
@interface RSSFactory : NSObject <RSSFactory>
+ (id<RSSFactory>) sharedFactory;
+ (void) setFactory: (id<RSSFactory>) aFactory;
-(NSString*) storagePathForURL: (NSString*) anURL;
- (id<RSSArticle>) articleWithHeadline: (NSString*) aHeadline
URL: (NSString*) aURL
content: (NSString*) aContent
date: (NSDate*) aDate;
- (id<RSSMutableArticle>) articleFromStorageWithURL: (NSString*) aURL;
- (id<RSSMutableArticle>) articleFromDictionary: (NSDictionary*) aDictionary;
@end
RSSFactory
Definition: RSSFactory.h:67
RSSMutableArticle-p
Definition: RSSArticleProtocol.h:114
+[RSSFactory sharedFactory]
id< RSSFactory > sharedFactory()
Definition: RSSFactory.m:67
RSSArticle
Definition: RSSArticle.h:36
RSSFeed
Definition: RSSFeed.h:85