aboutsummaryrefslogtreecommitdiffstats
path: root/iBean/iBean/SettingsViewController.h
blob: 410e1c2cd5adbe35210c1997b4d3183c9336540a (plain) (blame)
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
//
//  SettingsViewController.h
//  iBean
//
//  Created by Eddie Ehlin on 2013-01-27.
//  Copyright (c) 2013 Eddie Ehlin. All rights reserved.
//

#import <UIKit/UIKit.h>
@class Configuration;

@interface SettingsViewController : UITableViewController <UIAlertViewDelegate>

@property (nonatomic, strong) Configuration *configuration;

/* Utility methods */
- (void) initViewController;

/* UI Outlets */
@property (weak, nonatomic) IBOutlet UISwitch *countExtractionsSwitch;
@property (weak, nonatomic) IBOutlet UISwitch *useThresholdsSwitch;
@property (weak, nonatomic) IBOutlet UIStepper *extractionCountStepper;
@property (weak, nonatomic) IBOutlet UILabel *extractionCountLabel;
@property (weak, nonatomic) IBOutlet UIButton *resetExtractionCountButton;

/* UI Actions */
- (IBAction)countExtractionsSwitchChanged:(id)sender;
- (IBAction)useThresholdsSwitchChanged:(id)sender;
- (IBAction)extractionCountStepperChanged:(id)sender;
- (IBAction)resetExtractionCount:(id)sender;

@end