summaryrefslogtreecommitdiffstats
path: root/Classes/TopicsViewController.h
blob: 490046d5aa777db7358131d68f5d185d59edd6d2 (plain)
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
37
38
39
40
41
42
43
44
45
46
//
//  TopicsViewController.h
//  acidcow
//
//  Created by Matthew Handler on 4/15/11.
//  Copyright 2011 Earl Industries. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "XMLParser.h"
#import "HJObjManager.h"
//#import "PicDumpViewController.h"
#import "SourcesEditViewController.h"
#import "PhotoViewController.h"
#import "FMDatabase.h"
#import "SectionDictionary.h"
#import "Fetcher.h"

@interface TopicsViewController : UIViewController <FetcherDelegate, XMLParserDelegate, SourcesEditViewControllerDelegate, UITableViewDataSource>{
    UINavigationController *topicsNavigationController;
    NSMutableArray *topics; // topics loaded from the web

	SectionDictionary *tableDictionary; // structure to sync with table
	PhotoViewController *photoViewController;
    XMLParser *parser;
	HJObjManager* objMan;
	FMDatabase* db;
}

- (IBAction)showSources:(id)sender;

@property (nonatomic, retain) IBOutlet UITableView *tableView;
@property (nonatomic, retain, readonly) UINavigationController *topicsNavigationController;
@property (nonatomic, retain) PhotoViewController *photoViewController;
@property (nonatomic, retain) NSMutableArray *topics;
//@property (nonatomic, retain, readonly) PicDumpViewController *picDumpViewController;
@property (nonatomic, retain) XMLParser *parser;

// Called by the ParserChoiceViewController based on the selected parser type.
- (void)startParsing;
- (void)getTopicsFromDb;
- (void)addTopicToSectionDictionary:(Topic *)topic;
- (void)loadSubscribedTopics;
- (void)addTopicsFromJson:(NSData *)topics;

@end