refactor(modules): Move setup to constructor
This commit is contained in:
parent
81e6fb062f
commit
c01f111e34
52 changed files with 100 additions and 149 deletions
include/modules
|
@ -14,9 +14,8 @@ namespace chrono = std::chrono;
|
|||
namespace modules {
|
||||
class mpd_module : public event_module<mpd_module> {
|
||||
public:
|
||||
using event_module::event_module;
|
||||
explicit mpd_module(const bar_settings&, string);
|
||||
|
||||
void setup();
|
||||
void teardown();
|
||||
inline bool connected() const;
|
||||
void idle();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue