netloggui.h

00001 
00002 /***************************************************************************
00003  *  netloggui.h - NetLog GUI
00004  *
00005  *  Created: Tue Nov 03 23:38:11 2008
00006  *  Copyright  2008  Tim Niemueller [www.niemueller.de]
00007  *
00008  ****************************************************************************/
00009 
00010 /*  This program is free software; you can redistribute it and/or modify
00011  *  it under the terms of the GNU General Public License as published by
00012  *  the Free Software Foundation; either version 2 of the License, or
00013  *  (at your option) any later version.
00014  *
00015  *  This program is distributed in the hope that it will be useful,
00016  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00017  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00018  *  GNU Library General Public License for more details.
00019  *
00020  *  Read the full text in the LICENSE.GPL file in the doc directory.
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

Generated on Tue Feb 22 13:32:32 2011 for Fawkes API by  doxygen 1.4.7