From 5f1fdd425ad147efd33b54b39deb1d50459185c2 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Mon, 6 Apr 2020 22:41:33 +0200 Subject: ACPI is not required anymore --- inc/jo_lowbat.hpp | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'inc') diff --git a/inc/jo_lowbat.hpp b/inc/jo_lowbat.hpp index 7428c86..db7658d 100644 --- a/inc/jo_lowbat.hpp +++ b/inc/jo_lowbat.hpp @@ -6,21 +6,27 @@ 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_testAcpi(void); uint8_t jo_testNotifySend(void); uint8_t jo_testEspeak(void); int jo_fetchBatlvl(void); - int jo_fetchAcstat(void); + uint8_t jo_fetchAcstat(void); int jo_notify(void); int jo_speak(void); - void jo_setMsg(const char *msg); - static string jo_exec(const char*); + void jo_setMsg(const char *); + void jo_delMsg(void); private: string m_batlvl; - string m_msg; + string *m_msg; }; #endif -- cgit v1.2.3