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

uploads_common.c File Reference

#include "gui.h"
#include "uploads.h"
#include "uploads_common.h"
#include "search_common.h"
#include "if/gui_property.h"
#include "if/gnet_property.h"
#include "if/core/uploads.h"
#include "if/bridge/ui2c.h"
#include "lib/host_addr.h"
#include "lib/misc.h"
#include "lib/glib-missing.h"
#include "lib/tm.h"
#include "lib/override.h"

Defines

#define IO_STALLED   60 /**< If nothing exchanged after that many secs */
 If nothing exchanged after that many secs.


Functions

 RCSID ("$Id:uploads_common.c, v 1.25 2005/12/11 13:52:51 rmanfredi Exp $")
void uploads_gui_set_gnet_addr (gnet_upload_t u, host_addr_t addr, guint16 port)
 Invoked from the core when we discover the Gnutella address and port of the uploading party.

gfloat uploads_gui_progress (const gnet_upload_status_t *u, const upload_row_data_t *data)
const gchar * uploads_gui_status_str (const gnet_upload_status_t *u, const upload_row_data_t *data)
gboolean upload_should_remove (time_t now, const upload_row_data_t *ul)
const gchar * uploads_gui_host_string (const gnet_upload_info_t *u)
void uploads_gui_browse_host (host_addr_t addr, guint16 port)
 Initiate a browse host of the uploading host.


Define Documentation

#define IO_STALLED   60 /**< If nothing exchanged after that many secs */
 

If nothing exchanged after that many secs.


Function Documentation

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

gboolean upload_should_remove time_t  now,
const upload_row_data_t ul
 

Returns:
whether the entry for the upload `ul' should be removed from the UI with respect to the configured behaviour.

void uploads_gui_browse_host host_addr_t  addr,
guint16  port
 

Initiate a browse host of the uploading host.

const gchar* uploads_gui_host_string const gnet_upload_info_t u  ) 
 

Returns:
A pointer to a static buffer holding the host address as string.

gfloat uploads_gui_progress const gnet_upload_status_t u,
const upload_row_data_t data
 

Returns:
a floating point value from [0:1] which indicates the total progress of the upload.

void uploads_gui_set_gnet_addr gnet_upload_t  u,
host_addr_t  addr,
guint16  port
 

Invoked from the core when we discover the Gnutella address and port of the uploading party.

const gchar* uploads_gui_status_str const gnet_upload_status_t u,
const upload_row_data_t data
 

Returns:
a pointer to a static buffer containing a string which describes the current status of the upload.


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