forked from toniebox-reverse-engineering/hackiebox_cfw
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BoxEvents.h
39 lines (31 loc) · 953 Bytes
/
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
#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
};
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);
private:
};
extern BoxEvents Events;
#endif