Main Page | Modules | Alphabetical List | Data Structures | 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/override.h"

Defines

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

#define IO_AVG_RATE   5 /**< Compute global recv rate every 5 secs */
 Compute global recv rate every 5 secs.


Functions

 RCSID ("$Id:downloads_common.c, v 1.7 2005/08/01 17:34:27 cbiere Exp $")
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_update_queue_frozen (void)
 Checks if the download queue is frozen, if so update the freeze queue widgets and display a message on the statusbar.

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.


Variables

gboolean update_download_clear_needed = FALSE


Define Documentation

#define IO_AVG_RATE   5 /**< Compute global recv rate every 5 secs */
 

Compute global recv rate every 5 secs.

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

If nothing exchanged after that many secs.


Function Documentation

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 gui_update_queue_frozen void   ) 
 

Checks if the download queue is frozen, if so update the freeze queue widgets and display a message on the statusbar.

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.

RCSID "$Id:downloads_common.  c,
v 1.7 2005/08/01 17:34:27 cbiere Exp $" 
 


Variable Documentation

gboolean update_download_clear_needed = FALSE [static]
 


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