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

downloads_cb.c File Reference

#include "gtk/gui.h"
#include "downloads_cb.h"
#include "gtk/downloads.h"
#include "gtk/downloads_common.h"
#include "gtk/statusbar.h"
#include "gtk/gtkcolumnchooser.h"
#include "gtk/columns.h"
#include "gtk/search_common.h"
#include "if/gnet_property.h"
#include "if/gui_property_priv.h"
#include "if/bridge/ui2c.h"
#include "if/core/sockets.h"
#include "lib/override.h"

Data Structures

struct  dl_action_t
struct  queue_select_help_t

Enumerations

enum  dl_action_type_t {
  DL_ACTION_ABORT, DL_ACTION_ABORT_HOST, DL_ACTION_ABORT_NAMED, DL_ACTION_ABORT_SHA1,
  DL_ACTION_BROWSE, DL_ACTION_CONNECT, DL_ACTION_COPY_URL, DL_ACTION_PUSH,
  DL_ACTION_QUEUE, DL_ACTION_REMOVE_FILE, DL_ACTION_RESUME, DL_ACTION_SELECT,
  DL_ACTION_QUEUED_ABORT, DL_ACTION_QUEUED_ABORT_NAMED, DL_ACTION_QUEUED_ABORT_HOST, DL_ACTION_QUEUED_ABORT_SHA1,
  DL_ACTION_QUEUED_BROWSE, DL_ACTION_QUEUED_CONNECT, DL_ACTION_QUEUED_COPY_URL, DL_ACTION_QUEUED_START,
  DL_ACTION_QUEUED_PUSH, NUM_DL_ACTION
}

Functions

 RCSID ("$Id:downloads_cb.c, v 1.15 2005/11/22 19:37:22 cbiere Exp $")
void dl_action (GtkTreeModel *model, GtkTreePath *unused_path, GtkTreeIter *iter, gpointer data)
GSList * dl_action_select (const gchar *treeview_name, dl_action_type_t action)
void show_removed (guint removed)
 Informs the user about the number of removed downloads.

void push_activate (gboolean active)
void on_popup_downloads_push_activate (GtkMenuItem *unused_menuitem, gpointer unused_udata)
 All selected downloads fallback to push.

void on_popup_downloads_browse_host_activate (GtkMenuItem *unused_menuitem, gpointer unused_udata)
 Initiates a browse host request to the currently selected host.

void on_popup_queue_browse_host_activate (GtkMenuItem *unused_menuitem, gpointer unused_udata)
 Initiates a browse host request to the currently selected host.

void on_popup_queue_push_activate (GtkMenuItem *unused_menuitem, gpointer unused_udata)
 Causes all selected queued downloads to fall back to push.

void on_popup_downloads_abort_named_activate (GtkMenuItem *unused_menuitem, gpointer unused_udata)
 Abort all downloads with names identical to any of the selected downloads.

void on_popup_downloads_abort_host_activate (GtkMenuItem *unused_menuitem, gpointer unused_udata)
 Abort all downloads with hosts identical to any of the selected downloads.

void on_popup_downloads_abort_sha1_activate (GtkMenuItem *unused_menuitem, gpointer unused_udata)
 Abort all downloads with sha1s identical to any of the selected downloads.

void on_popup_downloads_remove_file_activate (GtkMenuItem *unused_menuitem, gpointer unused_udata)
 Remove all downloads selected.

void on_popup_downloads_queue_activate (GtkMenuItem *unused_menuitem, gpointer unused_udata)
 Move all selected downloads back to queue.

void copy_selection_to_clipboard (const gchar *treeview_name, dl_action_type_t action)
void on_popup_downloads_copy_url_activate (GtkMenuItem *unused_menuitem, gpointer unused_udata)
 For selected download, copy URL to clipboard.

void on_popup_downloads_connect_activate (GtkMenuItem *unused_menuitem, gpointer unused_udata)
 For all selected active downloads connect to host.

void on_popup_queue_start_now_activate (GtkMenuItem *unused_menuitem, gpointer unused_udata)
 For all selected queued downloads, activate them.

void on_popup_queue_abort_activate (GtkMenuItem *unused_menuitem, gpointer unused_udata)
 For all selected queued downloads, forget them.

void on_popup_queue_abort_named_activate (GtkMenuItem *unused_menuitem, gpointer unused_udata)
 For all selected queued downloads, remove all downloads with same name.

void on_popup_queue_abort_host_activate (GtkMenuItem *unused_menuitem, gpointer unused_udata)
 For all selected queued downloads, remove all downloads with same host.

void on_popup_queue_abort_sha1_activate (GtkMenuItem *unused_menuitem, gpointer unused_udata)
 For all selected queued downloads, remove all downloads with same sha1.

void on_popup_queue_copy_url_activate (GtkMenuItem *unused_menuitem, gpointer unused_udata)
 For all selected queued download, copy url to clipboard.

void on_popup_queue_connect_activate (GtkMenuItem *unused_menuitem, gpointer unused_udata)
 For all selected queued download, connect to host.

void on_button_downloads_abort_clicked (GtkButton *unused_button, gpointer unused_udata)
 For all selected active downloads, forget them.

void on_button_downloads_resume_clicked (GtkButton *unused_button, gpointer unused_udata)
 For all selected active downloads, resume.

void on_popup_downloads_config_cols_activate (GtkMenuItem *unused_menuitem, gpointer unused_udata)
void on_entry_queue_regex_activate (GtkEditable *editable, gpointer unused_udata)
 Select all queued downloads that match given regex in editable.

gboolean on_treeview_downloads_button_press_event (GtkWidget *widget, GdkEventButton *event, gpointer unused_udata)
 When the right mouse button is clicked on the active downloads treeview, show the popup with the context menu.

gboolean on_treeview_downloads_queue_button_press_event (GtkWidget *widget, GdkEventButton *event, gpointer unused_udata)
 When the right mouse button is clicked on the queued downloads treeview, show the popup with the context menu.

void on_treeview_downloads_select_row (GtkTreeView *tree_view, gpointer unused_udata)
void queue_select_row_helper (GtkTreeModel *model, GtkTreePath *unused_path, GtkTreeIter *iter, gpointer data)
void on_treeview_downloads_queue_select_row (GtkTreeView *unused_tv, gpointer unused_udata)
void on_popup_downloads_expand_all_activate (GtkMenuItem *unused_menuitem, gpointer unused_udata)
 Expands all parent nodes.

void on_popup_downloads_collapse_all_activate (GtkMenuItem *unused_menuitem, gpointer unused_udata)
 Collapses all parent nodes.

void on_popup_queue_expand_all_activate (GtkMenuItem *unused_menuitem, gpointer unused_udata)
 Expands all parent nodes.

void on_popup_queue_collapse_all_activate (GtkMenuItem *unused_menuitem, gpointer unused_udata)
 Collapses all parent nodes.

void on_popup_queue_config_cols_activate (GtkMenuItem *unused_menuitem, gpointer unused_udata)


Enumeration Type Documentation

enum dl_action_type_t
 

Enumeration values:
DL_ACTION_ABORT 
DL_ACTION_ABORT_HOST 
DL_ACTION_ABORT_NAMED 
DL_ACTION_ABORT_SHA1 
DL_ACTION_BROWSE 
DL_ACTION_CONNECT 
DL_ACTION_COPY_URL 
DL_ACTION_PUSH 
DL_ACTION_QUEUE 
DL_ACTION_REMOVE_FILE 
DL_ACTION_RESUME 
DL_ACTION_SELECT 
DL_ACTION_QUEUED_ABORT 
DL_ACTION_QUEUED_ABORT_NAMED 
DL_ACTION_QUEUED_ABORT_HOST 
DL_ACTION_QUEUED_ABORT_SHA1 
DL_ACTION_QUEUED_BROWSE 
DL_ACTION_QUEUED_CONNECT 
DL_ACTION_QUEUED_COPY_URL 
DL_ACTION_QUEUED_START 
DL_ACTION_QUEUED_PUSH 
NUM_DL_ACTION 


Function Documentation

void copy_selection_to_clipboard const gchar *  treeview_name,
dl_action_type_t  action
[static]
 

void dl_action GtkTreeModel *  model,
GtkTreePath *  unused_path,
GtkTreeIter *  iter,
gpointer  data
[static]
 

GSList* dl_action_select const gchar *  treeview_name,
dl_action_type_t  action
[static]
 

void on_button_downloads_abort_clicked GtkButton *  unused_button,
gpointer  unused_udata
 

For all selected active downloads, forget them.

This doubles as the callback for the abort option on the popup menu.

void on_button_downloads_resume_clicked GtkButton *  unused_button,
gpointer  unused_udata
 

For all selected active downloads, resume.

void on_entry_queue_regex_activate GtkEditable *  editable,
gpointer  unused_udata
 

Select all queued downloads that match given regex in editable.

void on_popup_downloads_abort_host_activate GtkMenuItem *  unused_menuitem,
gpointer  unused_udata
 

Abort all downloads with hosts identical to any of the selected downloads.

void on_popup_downloads_abort_named_activate GtkMenuItem *  unused_menuitem,
gpointer  unused_udata
 

Abort all downloads with names identical to any of the selected downloads.

void on_popup_downloads_abort_sha1_activate GtkMenuItem *  unused_menuitem,
gpointer  unused_udata
 

Abort all downloads with sha1s identical to any of the selected downloads.

void on_popup_downloads_browse_host_activate GtkMenuItem *  unused_menuitem,
gpointer  unused_udata
 

Initiates a browse host request to the currently selected host.

void on_popup_downloads_collapse_all_activate GtkMenuItem *  unused_menuitem,
gpointer  unused_udata
 

Collapses all parent nodes.

void on_popup_downloads_config_cols_activate GtkMenuItem *  unused_menuitem,
gpointer  unused_udata
 

void on_popup_downloads_connect_activate GtkMenuItem *  unused_menuitem,
gpointer  unused_udata
 

For all selected active downloads connect to host.

void on_popup_downloads_copy_url_activate GtkMenuItem *  unused_menuitem,
gpointer  unused_udata
 

For selected download, copy URL to clipboard.

void on_popup_downloads_expand_all_activate GtkMenuItem *  unused_menuitem,
gpointer  unused_udata
 

Expands all parent nodes.

void on_popup_downloads_push_activate GtkMenuItem *  unused_menuitem,
gpointer  unused_udata
 

All selected downloads fallback to push.

void on_popup_downloads_queue_activate GtkMenuItem *  unused_menuitem,
gpointer  unused_udata
 

Move all selected downloads back to queue.

void on_popup_downloads_remove_file_activate GtkMenuItem *  unused_menuitem,
gpointer  unused_udata
 

Remove all downloads selected.

void on_popup_queue_abort_activate GtkMenuItem *  unused_menuitem,
gpointer  unused_udata
 

For all selected queued downloads, forget them.

void on_popup_queue_abort_host_activate GtkMenuItem *  unused_menuitem,
gpointer  unused_udata
 

For all selected queued downloads, remove all downloads with same host.

void on_popup_queue_abort_named_activate GtkMenuItem *  unused_menuitem,
gpointer  unused_udata
 

For all selected queued downloads, remove all downloads with same name.

void on_popup_queue_abort_sha1_activate GtkMenuItem *  unused_menuitem,
gpointer  unused_udata
 

For all selected queued downloads, remove all downloads with same sha1.

void on_popup_queue_browse_host_activate GtkMenuItem *  unused_menuitem,
gpointer  unused_udata
 

Initiates a browse host request to the currently selected host.

void on_popup_queue_collapse_all_activate GtkMenuItem *  unused_menuitem,
gpointer  unused_udata
 

Collapses all parent nodes.

void on_popup_queue_config_cols_activate GtkMenuItem *  unused_menuitem,
gpointer  unused_udata
 

void on_popup_queue_connect_activate GtkMenuItem *  unused_menuitem,
gpointer  unused_udata
 

For all selected queued download, connect to host.

void on_popup_queue_copy_url_activate GtkMenuItem *  unused_menuitem,
gpointer  unused_udata
 

For all selected queued download, copy url to clipboard.

void on_popup_queue_expand_all_activate GtkMenuItem *  unused_menuitem,
gpointer  unused_udata
 

Expands all parent nodes.

void on_popup_queue_push_activate GtkMenuItem *  unused_menuitem,
gpointer  unused_udata
 

Causes all selected queued downloads to fall back to push.

void on_popup_queue_start_now_activate GtkMenuItem *  unused_menuitem,
gpointer  unused_udata
 

For all selected queued downloads, activate them.

gboolean on_treeview_downloads_button_press_event GtkWidget *  widget,
GdkEventButton *  event,
gpointer  unused_udata
 

When the right mouse button is clicked on the active downloads treeview, show the popup with the context menu.

gboolean on_treeview_downloads_queue_button_press_event GtkWidget *  widget,
GdkEventButton *  event,
gpointer  unused_udata
 

When the right mouse button is clicked on the queued downloads treeview, show the popup with the context menu.

void on_treeview_downloads_queue_select_row GtkTreeView *  unused_tv,
gpointer  unused_udata
 

void on_treeview_downloads_select_row GtkTreeView *  tree_view,
gpointer  unused_udata
 

void push_activate gboolean  active  )  [static]
 

void queue_select_row_helper GtkTreeModel *  model,
GtkTreePath *  unused_path,
GtkTreeIter *  iter,
gpointer  data
[static]
 

RCSID "$Id:downloads_cb.  c,
v 1.15 2005/11/22 19:37:22 cbiere Exp $" 
 

void show_removed guint  removed  )  [static]
 

Informs the user about the number of removed downloads.

Parameters:
removed amount of removed downloads.


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