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

downloads_common.c File Reference

#include "gui.h"
#include "downloads_common.h"
#include "downloads.h"
#include "statusbar.h"
#include "if/bridge/ui2c.h"
#include "if/gui_property_priv.h"
#include "lib/glib-missing.h"
#include "lib/override.h"

Defines

#define IO_STALLED   60
 If nothing exchanged after that many secs.
#define IO_AVG_RATE   5
 Compute global recv rate every 5 secs.

Functions

void gui_update_download_clear (void)
 Remember that we need to check for cleared downloads at the next invocation of gui_update_download_clear_now(), which happens once every second only to avoid too frequent costly list traversals.
void gui_update_download_clear_now (void)
 Checks if there are any active downloads that are clearable If so, this activates the "Clear Stopped" button.
void gui_download_enable_start_now (guint32 running_downloads, guint32 max_downloads)
 Enable the "start now" menu entry for queued items.
void on_button_downloads_clear_stopped_clicked (GtkButton *unused_button, gpointer unused_udata)
 Clear all stopped, complete, and unavailable downloads.
void on_togglebutton_queue_freeze_toggled (GtkToggleButton *togglebutton, gpointer unused_udata)
 Freeze the downloads queue.
const gchar * download_progress_to_string (const struct download *d)
const gchar * source_progress_to_string (const struct download *d)

Variables

gboolean update_download_clear_needed = FALSE


Define Documentation

#define IO_AVG_RATE   5
 

Compute global recv rate every 5 secs.

#define IO_STALLED   60
 

If nothing exchanged after that many secs.


Function Documentation

const gchar* download_progress_to_string const struct download d  ) 
 

void gui_download_enable_start_now guint32  running_downloads,
guint32  max_downloads
 

Enable the "start now" menu entry for queued items.

void gui_update_download_clear void   ) 
 

Remember that we need to check for cleared downloads at the next invocation of gui_update_download_clear_now(), which happens once every second only to avoid too frequent costly list traversals.

void gui_update_download_clear_now void   ) 
 

Checks if there are any active downloads that are clearable If so, this activates the "Clear Stopped" button.

void on_button_downloads_clear_stopped_clicked GtkButton *  unused_button,
gpointer  unused_udata
 

Clear all stopped, complete, and unavailable downloads.

void on_togglebutton_queue_freeze_toggled GtkToggleButton *  togglebutton,
gpointer  unused_udata
 

Freeze the downloads queue.

const gchar* source_progress_to_string const struct download d  ) 
 


Variable Documentation

gboolean update_download_clear_needed = FALSE [static]
 


Generated on Sat Jun 30 17:53:26 2007 for gtk-gnutella by  doxygen 1.3.9.1