#include "gtk/gui.h"
#include "interface-glade.h"
#include "gtk/uploads.h"
#include "gtk/uploads_common.h"
#include "gtk/columns.h"
#include "gtk/notebooks.h"
#include "if/bridge/ui2c.h"
#include "lib/host_addr.h"
#include "lib/glib-missing.h"
#include "lib/iso3166.h"
#include "lib/tm.h"
#include "lib/utf8.h"
#include "lib/override.h"
Defines | |
#define | UPDATE_MIN 300 /**< Update screen every 5 minutes at least */ |
Update screen every 5 minutes at least. | |
Functions | |
RCSID ("$Id:uploads.c, v 1.18 2005/12/11 13:52:51 rmanfredi Exp $") | |
gint | find_row (gnet_upload_t u, upload_row_data_t **data) |
Tries to fetch the row number and upload_row_data associated with a given upload. | |
void | uploads_gui_update_upload_info (gnet_upload_info_t *u) |
void | uploads_gui_add_upload (gnet_upload_info_t *u) |
Adds the given upload to the gui. | |
void | upload_removed (gnet_upload_t uh, const gchar *reason, guint32 unused_running, guint32 unused_registered) |
Callback: called when an upload is removed from the backend. | |
void | upload_added (gnet_upload_t n, guint32 unused_running, guint32 unused_registered) |
Callback: called when an upload is added from the backend. | |
void | upload_info_changed (gnet_upload_t u, guint32 unused_running, guint32 unused_registered) |
Callback: called when upload information was changed by the backend. | |
upload_row_data_t * | uploads_gui_get_row_data (gnet_upload_t uhandle) |
Fetch the GUI row data associated with upload handle. | |
void | free_data (gpointer o) |
Called to free the row data -- needed when running under -DTRACK_MALLOC. | |
void | uploads_gui_early_init (void) |
void | uploads_gui_init (void) |
void | uploads_gui_shutdown (void) |
Unregister callbacks in the backend and clean up. | |
void | uploads_gui_update_display (time_t now) |
Update all the uploads at the same time. | |
gboolean | uploads_clear_helper (gpointer unused_udata) |
void | uploads_gui_clear_completed (void) |
Variables | |
gboolean | uploads_remove_lock = FALSE |
guint | uploads_rows_done = 0 |
|
Update screen every 5 minutes at least.
|
|
Tries to fetch the row number and upload_row_data associated with a given upload. The upload_row_data_t pointer data points to is only updated when data != NULL and when the function returns a row number != -1. |
|
Called to free the row data -- needed when running under -DTRACK_MALLOC.
|
|
|
|
Callback: called when an upload is added from the backend. Adds the upload to the gui. |
|
Callback: called when upload information was changed by the backend. This updates the upload information in the gui. |
|
Callback: called when an upload is removed from the backend. Either immediatly clears the upload from the frontend or just set the upload_row_info->valid to FALSE, so we don't acidentially try to use the handle to communicate with the backend. |
|
|
|
Adds the given upload to the gui.
|
|
|
|
|
|
Fetch the GUI row data associated with upload handle.
|
|
|
|
Unregister callbacks in the backend and clean up.
|
|
Update all the uploads at the same time.
|
|
|
|
|
|
|