-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCyclometerController.h
More file actions
49 lines (38 loc) · 1007 Bytes
/
CyclometerController.h
File metadata and controls
49 lines (38 loc) · 1007 Bytes
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
49
/*
* CyclometerController.h
*
* Created on: Feb 3, 2013
* Author: dam7633
*/
#ifndef CYCLOMETERCONTROLLER_H_
#define CYCLOMETERCONTROLLER_H_
#include "StateContext.h"
#include "PulseScanner.h"
#include "DataProvider.h"
class CyclometerController: public StateContext, DataProvider {
public:
CyclometerController(PulseScanner* scanner);
/**
* @return whether initialization has completed.
*/
bool getIsFullResetDone();
/**
* @param whether initialization has completed.
*/
void setFullResetDone(bool isFullResetDone);
/**
* @return a reference to the pulse scanner.
*/
PulseScanner* getPulseScanner();
/**
* @return the active state's getData.
*/
DisplayInfo getData();
private:
void handle(Event event);
// Used to determine which state is next after SetCircumference.
bool isFullResetDone;
// This controller's pulse scanner.
PulseScanner* pulseScanner;
};
#endif /* CYCLOMETERCONTROLLER_H_ */