blob: db7658d0cf631ccbb6fb0a9835269705c1b278d5 (
plain)
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
|
#ifndef JO_LOWBAT_HPP
#define JO_LOWBAT_HPP
#include <string>
#include <cstdint>
using namespace std;
enum retvals {
JO_RET_FINE,
JO_RET_MISS_DEP,
JO_RET_OPEN_FAILED,
JO_RET_NOTIFY_FAILED
};
class Lowbat {
public:
uint8_t jo_testNotifySend(void);
uint8_t jo_testEspeak(void);
int jo_fetchBatlvl(void);
uint8_t jo_fetchAcstat(void);
int jo_notify(void);
int jo_speak(void);
void jo_setMsg(const char *);
void jo_delMsg(void);
private:
string m_batlvl;
string *m_msg;
};
#endif
|