2018-08-09 10:05:48 +00:00
|
|
|
#pragma once
|
|
|
|
|
2019-01-08 20:05:44 +00:00
|
|
|
#include <glibmm/dispatcher.h>
|
|
|
|
#include <gtkmm/box.h>
|
|
|
|
#include <gtkmm/widget.h>
|
2018-08-12 18:25:19 +00:00
|
|
|
|
2018-08-09 10:05:48 +00:00
|
|
|
namespace waybar {
|
2018-08-16 12:29:41 +00:00
|
|
|
|
|
|
|
class IModule {
|
2019-04-18 15:52:00 +00:00
|
|
|
public:
|
|
|
|
virtual ~IModule() = default;
|
|
|
|
virtual auto update() -> void = 0;
|
|
|
|
virtual operator Gtk::Widget &() = 0;
|
|
|
|
Glib::Dispatcher dp; // Hmmm Maybe I should create an abstract class ?
|
2018-08-16 12:29:41 +00:00
|
|
|
};
|
|
|
|
|
2019-04-18 15:52:00 +00:00
|
|
|
} // namespace waybar
|