Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

uploads.c File Reference

#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_tuploads_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


Define Documentation

#define UPDATE_MIN   300 /**< Update screen every 5 minutes at least */
 

Update screen every 5 minutes at least.


Function Documentation

gint find_row gnet_upload_t  u,
upload_row_data_t **  data
[static]
 

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.

void free_data gpointer  o  )  [static]
 

Called to free the row data -- needed when running under -DTRACK_MALLOC.

RCSID "$Id:uploads.  c,
v 1.18 2005/12/11 13:52:51 rmanfredi Exp $" 
 

void upload_added gnet_upload_t  n,
guint32  unused_running,
guint32  unused_registered
[static]
 

Callback: called when an upload is added from the backend.

Adds the upload to the gui.

void upload_info_changed gnet_upload_t  u,
guint32  unused_running,
guint32  unused_registered
[static]
 

Callback: called when upload information was changed by the backend.

This updates the upload information in the gui.

void upload_removed gnet_upload_t  uh,
const gchar *  reason,
guint32  unused_running,
guint32  unused_registered
[static]
 

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.

gboolean uploads_clear_helper gpointer  unused_udata  )  [static]
 

void uploads_gui_add_upload gnet_upload_info_t u  )  [static]
 

Adds the given upload to the gui.

void uploads_gui_clear_completed void   ) 
 

void uploads_gui_early_init void   ) 
 

upload_row_data_t* uploads_gui_get_row_data gnet_upload_t  uhandle  ) 
 

Fetch the GUI row data associated with upload handle.

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.

void uploads_gui_update_upload_info gnet_upload_info_t u  )  [static]
 


Variable Documentation

gboolean uploads_remove_lock = FALSE [static]
 

guint uploads_rows_done = 0 [static]
 


Generated on Sun Feb 12 10:50:09 2006 for Gtk-Gnutella by doxygen 1.3.6