blob: bdd9eda33ed8d58263e212eed146a374c1db755e (
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
47
48
|
//
// 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;
NSString *_today;
NSString *_yesterday;
NSString *_tomorrow;
}
- (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
|