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