aboutsummaryrefslogtreecommitdiffstats
path: root/inc
diff options
context:
space:
mode:
Diffstat (limited to 'inc')
-rw-r--r--inc/jo_lowbat.hpp16
1 files changed, 11 insertions, 5 deletions
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