23 #ifndef __FIREVISION_TOOLS_FIRESTATION_FUSE_TRANSFER_WIDGET_H_ 24 #define __FIREVISION_TOOLS_FIRESTATION_FUSE_TRANSFER_WIDGET_H_ 26 #include <fvutils/net/fuse_client_handler.h> 27 #include <core/utils/lock_queue.h> 43 void add_fountain_service(
const char* name,
44 const char* host_name,
46 void remove_fountain_service(
const char* name);
50 void set_upload_btn(Gtk::Button* btn_upload);
51 void set_download_btn(Gtk::Button* btn_download);
52 void set_local_img(Gtk::Image* img_local);
53 void set_local_layer_selector(Gtk::Scale* scl);
54 void set_remote_img(Gtk::Image* img_remote);
55 void set_remote_layer_selector(Gtk::Scale* scl);
56 void set_local_lut_list_trv(Gtk::TreeView* lut_list);
57 void set_remote_lut_list_trv(Gtk::TreeView* lut_list);
60 void fuse_invalid_server_version(uint32_t local_version,
61 uint32_t remote_version)
throw();
62 void fuse_connection_established()
throw();
63 void fuse_connection_died()
throw();
67 class LutRecord :
public Gtk::TreeModelColumnRecord
91 Gtk::TreeModelColumn<Glib::ustring> filename;
92 Gtk::TreeModelColumn<Glib::ustring> service_name;
93 Gtk::TreeModelColumn<Glib::ustring> host_name;
94 Gtk::TreeModelColumn<unsigned int> port;
95 Gtk::TreeModelColumn<Glib::ustring> lut_id;
96 Gtk::TreeModelColumn<unsigned int> width;
97 Gtk::TreeModelColumn<unsigned int> height;
98 Gtk::TreeModelColumn<unsigned int> depth;
99 Gtk::TreeModelColumn<unsigned int> bytes_per_cell;
100 Gtk::TreeModelColumn<LutRecord::LutType> type;
105 void update_local_lut_list();
106 void update_remote_lut_list();
108 void delete_clients();
109 void update_local_lut();
110 void update_remote_lut();
113 void local_lut_selected();
114 void remote_lut_selected();
120 std::string service_name;
121 std::string host_name;
130 ClientData m_cur_client;
132 Glib::Dispatcher m_signal_update_local_lut_list;
133 Glib::Dispatcher m_signal_update_remote_lut_list;
134 Glib::Dispatcher m_signal_get_lut_list;
135 Glib::Dispatcher m_signal_delete_client;
136 Glib::Dispatcher m_signal_update_remote_lut;
141 Gtk::Button* m_btn_upload;
142 Gtk::Button* m_btn_download;
143 Gtk::Image* m_img_local;
144 Gtk::Image* m_img_remote;
145 Gtk::TreeView* m_trv_local_lut_list;
146 Gtk::TreeView* m_trv_remote_lut_list;
148 Glib::RefPtr<Gtk::ListStore> m_remote_lut_list;
149 Glib::RefPtr<Gtk::ListStore> m_local_lut_list;
150 LutRecord m_lut_record;