24 #ifndef __TOOLS_BATTERY_MONITOR_BATTERY_MONITOR_TREE_VIEW_H_ 25 #define __TOOLS_BATTERY_MONITOR_BATTERY_MONITOR_TREE_VIEW_H_ 35 class BatteryInterface;
36 class InterfaceDispatcher;
43 const Glib::RefPtr<Gtk::Builder> &builder);
46 void add_host(
const char* host );
47 void rem_host(
const char* host );
63 Gtk::TreeModelColumn< Glib::ustring >
fqdn;
85 Gtk::MessageDialog* m_dlg_warning;
87 Glib::Dispatcher m_trigger_update;
88 float m_relative_soc_threshold;
89 std::map< std::string, unsigned int > m_below_threshold_counter;
std::map< std::string, fawkes::InterfaceDispatcher *> m_interface_dispatcher
Interface dispatcher for the battery interfaces.
A treeview that retrieves battery data from the robots over remote blackboard connections and display...
Fawkes library namespace.
Base class for all Fawkes BlackBoard interfaces.
Gtk::TreeModelColumn< Glib::ustring > short_name
A shorter hostname (w/o domain)
Gtk::TreeModelColumn< Glib::ustring > fqdn
The FQDN.
Gtk::TreeModelColumn< float > relative_soc
The battery's relative state of charge.
BatteryRecord m_battery_record
Column record object to acces the columns of the storage object.
Gtk::TreeModelColumn< float > voltage
The battery's voltage.
Gtk::TreeModelColumn< float > current
The battery's current.
std::map< std::string, fawkes::BatteryInterface *> m_battery_interfaces
Map containing the battery interfaces: hostname -> battery interface.
Gtk::TreeModelColumn< float > absolute_soc
The battery's absolute state of charge.
Column record class for the battery monitor treeview.
Glib::RefPtr< Gtk::ListStore > m_battery_list
Storage object.
std::map< std::string, fawkes::BlackBoard *> m_remote_bbs
Map with remote blackboards: hostname -> remote blackboard.