RSSArticle.h
/* -*-objc-*-
*
* GNUstep RSS Kit
* Copyright (C) 2010-2011 The Free Software Foundation, Inc.
* 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 <objc/objc.h>
#import <Foundation/Foundation.h>
@class RSSArticle;
#import "RSSFeed.h"
#import "RSSArticleProtocol.h"
@interface RSSArticle : NSObject <RSSMutableArticle>
{
@protected
NSString* headline;
NSString* url;
NSString* description;
NSDate* date;
@private
NSURL* enclosure;
NSMutableArray* links;
id<RSSFeed> feed;
}
-init;
-initWithHeadline: (NSString*) myHeadline
url: (NSString*) myUrl
description: (NSString*) myDescription
date: (NSDate*) myDate;
-(void) dealloc;
// Accessor methods (conformance to RSSArticle protocol)
-(NSString*)headline;
-(NSString*)url;
-(NSString*)content;
-(NSString*)description;
-(NSArray*) links;
-(NSDate*) date;
-(NSURL*)enclosure;
// Mutability methods (conformance to RSSMutableArticle protocol)
-(void)addLink:(NSURL*) anURL;
-(void)setLinks: (NSArray*) someLinks;
-(void)setFeed: (id<RSSMutableFeed>) aFeed;
-(void)setDate: (NSDate*) aDate;
-(void)notifyChange;
// Equality and hash codes
- (BOOL) isEqual: (id)anObject;
-(void)willBeReplacedByArticle: (id<RSSMutableArticle>) newArticle;
@end
RSSArticle
Definition RSSArticle.h:38
-[RSSArticle content]
NSString * content()
Definition RSSArticle.m:89
-[RSSArticle notifyChange]
void notifyChange()
Definition RSSArticle.m:111
RSSMutableArticle-p
Definition RSSArticleProtocol.h:114