netloggui.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef __TOOLS_NETLOGGUI_NETLOGGUI_H_
00024 #define __TOOLS_NETLOGGUI_NETLOGGUI_H_
00025
00026 #include <gtkmm.h>
00027 #include <libglademm/xml.h>
00028
00029 namespace fawkes {
00030 class AvahiThread;
00031 class LogView;
00032 class NetworkService;
00033 class AvahiDispatcher;
00034 }
00035
00036 class NetLogGuiGtkWindow : public Gtk::Window
00037 {
00038 public:
00039 NetLogGuiGtkWindow(BaseObjectType* cobject,
00040 const Glib::RefPtr<Gnome::Glade::Xml> &refxml);
00041 ~NetLogGuiGtkWindow();
00042
00043 private:
00044 int on_service_added(fawkes::NetworkService *service);
00045 void on_service_removed(fawkes::NetworkService *service);
00046
00047 void on_connection_clicked();
00048 void on_exit_clicked();
00049 void on_clear_clicked();
00050
00051 void on_connbut_clicked(Gtk::Image *image, fawkes::LogView *logview);
00052 void on_connected(Gtk::Image *image);
00053 void on_disconnected(Gtk::Image *image);
00054
00055 private:
00056 fawkes::AvahiThread *avahi_thread;
00057 fawkes::AvahiDispatcher *avahi_dispatcher;
00058
00059 Gtk::VBox *vbox_main;
00060 Gtk::Label *lab_no_connection;
00061 Gtk::ToolButton *tb_connection;
00062 Gtk::ToolButton *tb_exit;
00063 Gtk::ToolButton *tb_clear;
00064
00065 Gtk::Notebook ntb_logviewers;
00066 };
00067
00068 #endif