summaryrefslogtreecommitdiffstats
path: root/Classes/TopicsViewController.h
blob: 98a678cf1d10fc6a74d21a07f266b8573848345f (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
//
//  TopicsViewController.h
//  acidcow
//
//  Created by Matthew Handler on 4/15/11.
//  Copyright 2011 Earl Industries. All rights reserved.
//

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

@interface TopicsViewController : UIViewController <FetcherDelegate, SourcesEditViewControllerDelegate, UITableViewDataSource>{
    UINavigationController *topicsNavigationController;
	NSMutableDictionary *sourcesDictionary;

	SectionDictionary *tableDictionary; // structure to sync with table
	PhotoViewController *photoViewController;

	HJObjManager* objMan;
	
	FMDatabase* db;
}

- (IBAction)showSources:(id)sender;

@property (nonatomic, retain) NSMutableDictionary *sourcesDictionary;
@property (nonatomic, retain) IBOutlet UITableView *tableView;
@property (nonatomic, retain, readonly) UINavigationController *topicsNavigationController;
@property (nonatomic, retain) PhotoViewController *photoViewController;

- (void)getTopicsFromDb;
- (void)addTopicToSectionDictionary:(Topic *)topic;
- (void)loadSubscribedTopics;
- (void)addTopicsFromJson:(NSData *)topics;
- (void)addTopicsFromJson:(NSData *)data forSource:(Source *)source;

@end