-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
BoxEvents.h
41 lines (33 loc) · 1.02 KB
/
BoxEvents.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
#ifndef BoxEvents_h
#define BoxEvents_h
#include "BaseHeader.h"
#include "Hackiebox.h"
#include "WrapperWiFi.h"
#include "BoxPower.h"
#include "BoxRFID.h"
#include "BoxTonies.h"
class BoxEvents {
public:
enum class EventSource {
BATTERY,
EAR,
WIFI,
POWER,
ACCELEROMETER,
TAG,
HEADPHONE
};
void
begin(),
loop();
void handleEarEvent(BoxButtonEars::EarButton earId, BoxButtonEars::PressedType pressType, BoxButtonEars::PressedTime pressLength);
void handleBatteryEvent(BoxBattery::BatteryEvent state);
void handleWiFiEvent(WrapperWiFi::ConnectionState state);
void handlePowerEvent(BoxPower::PowerEvent event);
void handleAccelerometerOrientationEvent(BoxAccelerometer::Orientation orient);
void handleTagEvent(BoxRFID::TAG_EVENT event);
void handleHeadphoneEvent(BoxDAC::HeadphoneEvent event);
private:
};
extern BoxEvents Events;
#endif