feat(states): add generic 'states' to all labels

This commit is contained in:
Dan
2019-05-02 21:39:34 -04:00
parent 472363a623
commit e158a3e132
4 changed files with 27 additions and 24 deletions

View File

@ -31,6 +31,7 @@ class ALabel : public IModule {
virtual bool handleToggle(GdkEventButton *const &ev);
virtual bool handleScroll(GdkEventScroll *);
virtual std::string getState(uint8_t value);
private:
std::vector<int> pid_;

View File

@ -34,7 +34,7 @@ class Battery : public ALabel {
void worker();
const std::string getAdapterStatus(uint8_t capacity) const;
const std::tuple<uint8_t, std::string> getInfos() const;
const std::string getState(uint8_t) const;
// const std::string getState(uint8_t) const;
util::SleeperThread thread_;
util::SleeperThread thread_timer_;