-
Notifications
You must be signed in to change notification settings - Fork 0
/
BPReadingSelectionViewController.h
42 lines (27 loc) · 1.06 KB
/
BPReadingSelectionViewController.h
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
//
// BPReadingSelectionDelegate.h
// BPTracker
//
// Created by Robert Saccone on 4/27/14.
// Copyright (c) 2017 Robert Saccone. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "BloodPressureReading.h"
@class BPReadingDetailViewController;
typedef void (^ReadingDismissedBlock)(BOOL saved);
@protocol BPReadingSelectionViewControllerDelegate
@required
- (void)modeChanged:(BOOL)editing;
@end
@protocol BPReadingSelectionViewController <NSObject>
@required
- (void)selectedReading:(BloodPressureReading *)bpReading
completion:(ReadingDismissedBlock)readingDismissed;
- (void)editNewReading:(BloodPressureReading *)bpReading
completion:(ReadingDismissedBlock)readingDismissed;
- (void)popTopLevelReading;
@property(nonatomic, assign) id<BPReadingSelectionViewControllerDelegate> delegate;
@property(nonatomic, assign, readonly) BOOL editingNewReading;
@property(nonatomic, strong) BPReadingDetailViewController *currBPReadingDetailViewController;
@property(nonatomic, readonly) BloodPressureReading *currBPReading;
@end