aboutsummaryrefslogtreecommitdiffstats
path: root/inc/jo_lowbat.hpp
blob: 7428c86f6f54b41a00f8820a83b8e0442e723b97 (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
#ifndef JO_LOWBAT_HPP
#define JO_LOWBAT_HPP

#include <string>
#include <cstdint>

using namespace std;

class Lowbat {
public:
	uint8_t			jo_testAcpi(void);
	uint8_t			jo_testNotifySend(void);
	uint8_t			jo_testEspeak(void);
	int				jo_fetchBatlvl(void);
	int				jo_fetchAcstat(void);
	int				jo_notify(void);
	int				jo_speak(void);
	void			jo_setMsg(const char *msg);
	static string	jo_exec(const char*);

private:
	string	m_batlvl;
	string	m_msg;
};

#endif