mcandre / yellosoft

Assorted scripts and applications.

This URL has Read+Write access

yellosoft / FeedAnimal / FeedManager.h
100644 36 lines (29 sloc) 0.924 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
//
// FeedManager.h
// FeedAnimal
//
// Created by Andrew Pennebaker on 10 Mar 2008.
// Copyright 2008 YelloSoft. All rights reserved.
//
 
#import <Cocoa/Cocoa.h>
 
@interface FeedManager: NSObject {
NSMutableArray *stories;
int maxItems;
}
 
+(NSString*) decodeCharacterEntities: (NSString *) source;
+(NSString*) flattenHTML: (NSString*) text;
+(NSString*) clean: (NSString*) text;
+(BOOL) isRSS: (NSXMLDocument*) xmlDoc;
+(BOOL) isAtom: (NSXMLDocument*) xmlDoc;
 
-(void) setStories: (NSMutableArray*) a;
-(FeedManager*) init;
-(void) setMaxItems: (int) max;
-(int) getMaxItems;
-(NSMutableArray*) loadFeed: (NSString*) url;
 
-(int) getStoryIndexForLink: (NSString*) link;
-(NSMutableArray*) selectNewStories: (NSMutableArray*) feed;
-(void) addStories: (NSMutableArray*) newStories;
-(NSMutableArray*) getStories;
 
+(void) visitURL: (NSString*) url;
-(void) markAsRead: (NSString*) link open: (BOOL) shouldOpen;
 
@end