25 #ifndef __GUI_UTILS_PLUGIN_TREE_VIEW_H_ 26 #define __GUI_UTILS_PLUGIN_TREE_VIEW_H_ 28 #include <netcomm/fawkes/client_handler.h> 29 #include <core/utils/lock_queue.h> 30 #include <gui_utils/connection_dispatcher.h> 42 class FawkesNetworkClient;
43 class FawkesNetworkMessage;
46 :
public Gtk::TreeView
51 const Glib::RefPtr<Gtk::Builder> builder);
58 class PluginRecord :
public Gtk::TreeModelColumnRecord
69 Gtk::TreeModelColumn<int> index;
70 Gtk::TreeModelColumn<Glib::ustring> name;
71 Gtk::TreeModelColumn<Glib::ustring> description;
72 Gtk::TreeModelColumn<bool> loaded;
76 void on_status_toggled(
const Glib::ustring& path);
78 void on_disconnected();
81 void on_status_clicked();
82 void on_name_clicked();
83 void on_config_changed();
85 void append_plugin_column();
88 Glib::RefPtr<Gtk::ListStore> m_plugin_list;
90 Glib::RefPtr<Gnome::Conf::Client> __gconf;
92 PluginRecord m_plugin_record;
94 sigc::connection __gconf_connection;
95 Glib::ustring __gconf_prefix;
A TreeView class to list available plugins und trigger their loading/unloading.
Simple Fawkes network client.
Fawkes library namespace.
Representation of a message that is sent over the network.
PluginTreeView()
Constructor.
void set_gconf_prefix(Glib::ustring gconf_prefix)
Set Gconf prefix.
void set_network_client(fawkes::FawkesNetworkClient *client)
Set the network client.
virtual ~PluginTreeView()
Destructor.
Watches network client events and dispatches them as signals.