Waybar/include/IModule.hpp

16 lines
276 B
C++
Raw Permalink Normal View History

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