-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinteractionunit.h
More file actions
executable file
·64 lines (55 loc) · 1.73 KB
/
interactionunit.h
File metadata and controls
executable file
·64 lines (55 loc) · 1.73 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#ifndef INTERACTIONUNIT_H
#define INTERACTIONUNIT_H
#include "userchoice.h"
#include "button.h"
class InteractionUnit
{
private:
UserChoice *choice;
Button *moreSugar;
Button *lessSugar;
Button *moreMilk;
Button *lessMilk;
Button *coffee;
Button *cappuccino;
Button *espresso;
Button *latteMacchiato;
Button *cacao;
Button *hotWater;
Button *bigPortion;
Button *cancel;
Button *start;
public:
InteractionUnit();
~InteractionUnit();
void buttonPollingRoutine();
UserChoice *initUserChoice(Card *card);
bool abortSession();
void setMoreSugar(Button *moreSugar);
void setLessSugar(Button *lessSugar);
void setMoreMilk(Button *addMilk);
void setLessMilk(Button *lessMilk);
void setCoffee(Button *coffee);
void setCappuccino(Button *cappuccino);
void setEspresso(Button *espresso);
void setLatteMacchiato(Button *latteMacchiato);
void setCacao(Button *cacao);
void setHotWater(Button *hotWater);
void setBigPortion(Button *bigPortio);
void setCancel(Button *cancel);
void setStart(Button *start);
Button *getMoreSugar() const;
Button *getLessSugar() const;
Button *getMoreMilk() const;
Button *getLessMilk() const;
Button *getCoffee() const;
Button *getCappuccino() const;
Button *getEspresso() const;
Button *getLatteMacchiato() const;
Button *getCacao() const;
Button *getHotWater() const;
Button *getBigPortion() const;
Button *getStart() const;
};
extern InteractionUnit iunit;
#endif // INTERACTIONUNIT_H