Fawkes API
Fawkes Development Version
|
This widget displays all available Fuse images in a tree view. More...
#include <>>
Public Member Functions | |
FuseImageListWidget () | |
Constructor. | |
virtual | ~FuseImageListWidget () |
Destructor. | |
void | add_fountain_service (const char *name, const char *host_name, uint32_t port) |
Call this method when new Fountain services are discovered. | |
void | remove_fountain_service (const char *name) |
Call this method when a Fountain service vanishes. | |
void | set_toggle_compression_chk (Gtk::CheckButton *chk) |
Assign the CheckButton to toggle the compression. | |
void | set_auto_update_chk (Gtk::CheckButton *chk) |
Assign the CheckButton that enables/disables the auto update function. | |
void | set_image_list_trv (Gtk::TreeView *trv) |
Assign the TreeView widget to hold the list of images. | |
Glib::Dispatcher & | image_selected () |
Access the Dispatcher that is signalled when a new image is selected in the list of images. | |
bool | auto_update () |
Get auto-update status. | |
void | set_auto_update (bool active, unsigned int interval_sec=5) |
Set the auto-update status. | |
bool | get_selected_image (std::string &host_name, unsigned short &port, std::string &image_id, bool &compression) |
Get the host name, port, and image id of the selected image. | |
void | fuse_invalid_server_version (uint32_t local_version, uint32_t remote_version) throw () |
void | fuse_connection_established () throw () |
void | fuse_connection_died () throw () |
void | fuse_inbound_received (FuseNetworkMessage *m) throw () |
Additional Inherited Members | |
![]() | |
virtual | ~FuseClientHandler () |
Destructor. | |
virtual void | fuse_invalid_server_version (uint32_t local_version, uint32_t remote_version)=0 throw () |
Invalid version string received. | |
virtual void | fuse_connection_established ()=0 throw () |
Connection has been established. | |
virtual void | fuse_connection_died ()=0 throw () |
Connection died. | |
virtual void | fuse_inbound_received (FuseNetworkMessage *m)=0 throw () |
Message received. |
This widget displays all available Fuse images in a tree view.
It also can check the registered host for new images, regularly.
Definition at line 40 of file fuse_image_list_widget.h.
firevision::FuseImageListWidget::FuseImageListWidget | ( | ) |
Constructor.
Definition at line 46 of file fuse_image_list_widget.cpp.
|
virtual |
Destructor.
Definition at line 74 of file fuse_image_list_widget.cpp.
References fawkes::Thread::cancel(), firevision::FuseClient::disconnect(), and fawkes::Thread::join().
void firevision::FuseImageListWidget::add_fountain_service | ( | const char * | name, |
const char * | host_name, | ||
uint32_t | port | ||
) |
Call this method when new Fountain services are discovered.
name | the name of the service |
host_name | the host the service is running on |
port | the port the service is running on |
Definition at line 103 of file fuse_image_list_widget.cpp.
bool firevision::FuseImageListWidget::auto_update | ( | ) |
Get auto-update status.
Definition at line 222 of file fuse_image_list_widget.cpp.
bool firevision::FuseImageListWidget::get_selected_image | ( | std::string & | host_name, |
unsigned short & | port, | ||
std::string & | image_id, | ||
bool & | compression | ||
) |
Get the host name, port, and image id of the selected image.
host_name | the host name of the selected image |
port | the port of the selected image |
image_id | the id of the selected image |
compression | true if compression shall be switched on |
Definition at line 257 of file fuse_image_list_widget.cpp.
Glib::Dispatcher & firevision::FuseImageListWidget::image_selected | ( | ) |
Access the Dispatcher that is signalled when a new image is selected in the list of images.
Definition at line 213 of file fuse_image_list_widget.cpp.
Referenced by FuseViewerGtkWindow::FuseViewerGtkWindow().
void firevision::FuseImageListWidget::remove_fountain_service | ( | const char * | name | ) |
Call this method when a Fountain service vanishes.
name | the name of the service |
Definition at line 150 of file fuse_image_list_widget.cpp.
void firevision::FuseImageListWidget::set_auto_update | ( | bool | active, |
unsigned int | interval_sec = 5 |
||
) |
Set the auto-update status.
active | (de-)activate auto-update |
interval_sec | the update interval in seconds |
Definition at line 232 of file fuse_image_list_widget.cpp.
void firevision::FuseImageListWidget::set_auto_update_chk | ( | Gtk::CheckButton * | chk | ) |
Assign the CheckButton that enables/disables the auto update function.
chk | a Gtk::CheckButton |
Definition at line 201 of file fuse_image_list_widget.cpp.
void firevision::FuseImageListWidget::set_image_list_trv | ( | Gtk::TreeView * | trv | ) |
Assign the TreeView widget to hold the list of images.
trv | a Gtk::TreeView |
Definition at line 175 of file fuse_image_list_widget.cpp.
void firevision::FuseImageListWidget::set_toggle_compression_chk | ( | Gtk::CheckButton * | chk | ) |
Assign the CheckButton to toggle the compression.
chk | a Gtk::CheckButton |
Definition at line 191 of file fuse_image_list_widget.cpp.