Fawkes API  Fawkes Development Version
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
BatteryMonitor Class Reference

A battery monitor. More...

#include <tools/battery_monitor/battery_monitor.h>

Inheritance diagram for BatteryMonitor:

Public Member Functions

 BatteryMonitor (Glib::RefPtr< Gtk::Builder > builder)
 Constructor.
 ~BatteryMonitor ()
 Destructor.
Gtk::Window & get_window () const
 Obtain the main window.

Protected Member Functions

void all_for_now ()
void cache_exhausted ()
void browse_failed (const char *name, const char *type, const char *domain)
void service_added (const char *name, const char *type, const char *domain, const char *host_name, const struct sockaddr *addr, const socklen_t addr_size, uint16_t port, std::list< std::string > &txt, int flags)
void service_removed (const char *name, const char *type, const char *domain)

Additional Inherited Members

- Private Member Functions inherited from fawkes::ServiceBrowseHandler
virtual ~ServiceBrowseHandler ()
 Virtual destructor.
virtual void all_for_now ()=0
 All results have been retrieved.
virtual void cache_exhausted ()=0
 Cache exhausted.
virtual void browse_failed (const char *name, const char *type, const char *domain)=0
 Failed to browse for a given service.
virtual void service_added (const char *name, const char *type, const char *domain, const char *host_name, const struct sockaddr *addr, const socklen_t addr_size, uint16_t port, std::list< std::string > &txt, int flags)=0
 A service has been announced on the network.
virtual void service_removed (const char *name, const char *type, const char *domain)=0
 A service has been removed from the network.

Detailed Description

A battery monitor.

Author
Daniel Beck

Definition at line 39 of file battery_monitor.h.

Constructor & Destructor Documentation

BatteryMonitor::BatteryMonitor ( Glib::RefPtr< Gtk::Builder >  builder)

Constructor.

Parameters
builderbuilder to get widgets from

Definition at line 39 of file battery_monitor.cpp.

BatteryMonitor::~BatteryMonitor ( )

Destructor.

Definition at line 53 of file battery_monitor.cpp.

Member Function Documentation

Gtk::Window & BatteryMonitor::get_window ( ) const

Obtain the main window.

Returns
the main window

Definition at line 64 of file battery_monitor.cpp.


The documentation for this class was generated from the following files: