RSSFeedProtocol.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 <Foundation/Foundation.h>
// --- Notifications ---
extern NSString *const RSSFeedFetchedNotification;
extern NSString *const RSSFeedFetchFailedNotification;
extern NSString *const RSSFeedWillFetchNotification;
// ---------------------
enum RSSFeedError
{
RSSFeedErrorNoError = 0,
RSSFeedErrorNoFetcherError,
RSSFeedErrorMalformedURL,
RSSFeedErrorDomainNotKnown,
RSSFeedErrorServerNotReachable,
RSSFeedErrorDocumentNotPresent,
RSSFeedErrorMalformedRSS
};
@protocol RSSFeed
// Article access
- (NSEnumerator*) articleEnumerator;
- (NSSet*) articleSet;
- (int) articleCount;
- (BOOL)isFetching;
- (NSString*) feedName;
- (NSURL*) feedURL;
- (enum RSSFeedError) fetch;
- (void) fetchInBackground;
- (enum RSSFeedError) lastError;
- (BOOL) autoClear;
@end
@protocol RSSMutableFeed <RSSFeed>
- (void) removeArticle: (id) article;
- (void) setFeedName: (NSString*) aFeedName;
- (void) setAutoClear: (BOOL) autoClear;
@end
RSSFeed
Definition RSSFeed.h:87
-[RSSFeed-p articleEnumerator]
NSEnumerator * articleEnumerator()
-[RSSFeed-p articleCount]
int articleCount()
-[RSSFeed-p lastError]
enum RSSFeedError lastError()
-[RSSFeed-p feedName]
NSString * feedName()
-[RSSFeed-p fetchInBackground]
void fetchInBackground()
-[RSSFeed-p isFetching]
BOOL isFetching()
-[RSSFeed-p feedURL]
NSURL * feedURL()
-[RSSFeed-p articleSet]
NSSet * articleSet()
-[RSSFeed-p autoClear]
BOOL autoClear()
-[RSSFeed-p fetch]
enum RSSFeedError fetch()