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

uploads_common.h File Reference

#include "common.h"
#include "uploads.h"
#include "lib/host_addr.h"
#include "if/ui/gtk/uploads.h"

Go to the source code of this file.

Functions

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.

upload_row_data_tuploads_gui_get_row_data (gnet_upload_t uhandle)
 Fetch the GUI row data associated with upload handle.


Function Documentation

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.

upload_row_data_t* uploads_gui_get_row_data gnet_upload_t  uhandle  ) 
 

Fetch the GUI row data associated with upload handle.

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.

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