From 46642320901ebaaedae5618e423ebfe70f316351 Mon Sep 17 00:00:00 2001 From: matt handler Date: Tue, 26 Apr 2011 17:18:49 -0400 Subject: updated topics dynamic loading, added fetcher class, storing in database and not overwriting is good, need to add info to photo view controller and also sort results --- Classes/TopicsViewController.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Classes/TopicsViewController.h') diff --git a/Classes/TopicsViewController.h b/Classes/TopicsViewController.h index 78b154f..490046d 100644 --- a/Classes/TopicsViewController.h +++ b/Classes/TopicsViewController.h @@ -14,10 +14,12 @@ #import "PhotoViewController.h" #import "FMDatabase.h" #import "SectionDictionary.h" +#import "Fetcher.h" -@interface TopicsViewController : UIViewController { +@interface TopicsViewController : UIViewController { UINavigationController *topicsNavigationController; NSMutableArray *topics; // topics loaded from the web + SectionDictionary *tableDictionary; // structure to sync with table PhotoViewController *photoViewController; XMLParser *parser; @@ -38,5 +40,7 @@ - (void)startParsing; - (void)getTopicsFromDb; - (void)addTopicToSectionDictionary:(Topic *)topic; +- (void)loadSubscribedTopics; +- (void)addTopicsFromJson:(NSData *)topics; @end -- cgit v1.2.3