summaryrefslogtreecommitdiffstats
path: root/Classes/SourcesEditViewController.h
blob: e7f2de947b24bf2e496544b2dad2d1bb30c15557 (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
//
//  SourcesEditViewController.h
//  PicCast
//
//  Created by Matthew Handler on 4/20/11.
//  Copyright 2011 Earl Industries. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "SectionDictionary.h"
#import "FMDatabase.h"

@protocol SourcesEditViewControllerDelegate;

@interface SourcesEditViewController : UIViewController <UITableViewDataSource, NSURLProtocolClient> {
	id <SourcesEditViewControllerDelegate> delegate;
	NSMutableData *_receivedData;
	SectionDictionary *sectionDictionary;
	FMDatabase *db;
}

@property (nonatomic, assign) id <SourcesEditViewControllerDelegate> delegate;
@property (nonatomic, retain) IBOutlet UITableView *tableView;

- (IBAction)done:(id)sender;
- (void) loadSourcesFromDb;
- (void) addSourcesFromJson:(NSData *)data;
- (void) switchedOnOff:(id)sender;

@end


@protocol SourcesEditViewControllerDelegate
- (void)sourcesEditViewControllerDelegateDidFinish:(SourcesEditViewController *)controller;
@end