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

c2ui.h

Go to the documentation of this file.
00001 /*
00002  * $Id: c2ui.h,v 1.10 2005/12/11 13:52:51 rmanfredi Exp $
00003  *
00004  * Copyright (c) 2004, Emile Roberts
00005  *
00006  *----------------------------------------------------------------------
00007  * This file is part of gtk-gnutella.
00008  *
00009  *  gtk-gnutella is free software; you can redistribute it and/or modify
00010  *  it under the terms of the GNU General Public License as published by
00011  *  the Free Software Foundation; either version 2 of the License, or
00012  *  (at your option) any later version.
00013  *
00014  *  gtk-gnutella is distributed in the hope that it will be useful,
00015  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017  *  GNU General Public License for more details.
00018  *
00019  *  You should have received a copy of the GNU General Public License
00020  *  along with gtk-gnutella; if not, write to the Free Software
00021  *  Foundation, Inc.:
00022  *      59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00023  *----------------------------------------------------------------------
00024  */
00025 
00036 #ifndef _if_bridge_c2ui_h_
00037 #define _if_bridge_c2ui_h_
00038 
00039 /*
00040  *  SECTION 1 - Interface includes
00041  */
00042 
00043 #include "if/core/downloads.h"
00044 #include "if/core/uploads.h"
00045 #include "if/core/bitzi.h"
00046 
00047 #include "lib/host_addr.h"
00048 #include "lib/misc.h"
00049 
00050 /* Property table includes */
00051 #include "if/gui_property.h"
00052 
00053 /* Other includes */
00054 #include <glib.h>
00055 
00056 /* upload interface functions */
00057 void gcu_uploads_gui_set_gnet_addr(
00058     gnet_upload_t u, host_addr_t addr, guint16 port);
00059 
00060 /* download interface functions */
00061 void gcu_download_enable_start_now(guint32 running_downloads,
00062     guint32 max_downloads);
00063 void gcu_gui_update_download(struct download *d, gboolean force);
00064 void gcu_gui_update_download_server(struct download *d);
00065 void gcu_gui_update_download_range(struct download *d);
00066 void gcu_gui_update_download_size(struct download *d);
00067 void gcu_gui_update_download_host(struct download *d);
00068 void gcu_gui_update_download_abort_resume(void);
00069 void gcu_gui_update_download_clear(void);
00070 void gcu_gui_update_download_clear_now(void);
00071 void gcu_gui_update_queue_frozen(void);
00072 void gcu_download_gui_add(struct download *d);
00073 void gcu_download_gui_remove(struct download *d);
00074 
00075 /* misc interface functions */
00076 void guc_allow_rescan_dir(gboolean flag);
00077 void gcu_gui_update_files_scanned(void);
00078 gint gcu_gtk_main_flush(void);
00079 
00081 gboolean gcu_search_gui_new_search(const gchar *query, flag_t flags);
00082 
00083 /* statusbar interface functions */
00084 void gcu_statusbar_warning(const gchar *message);
00085 void gcu_statusbar_message(const gchar *message);
00086 
00087 /* upload interface functions */
00088 void gcu_upload_stats_gui_add(struct ul_stats *);
00089 void gcu_upload_stats_gui_update(const gchar *name, guint64 size);
00090 void gcu_upload_stats_gui_clear_all(void);
00091 
00093 void gcu_bitzi_result(bitzi_data_t *bitzi_data);
00094 
00095 #endif /* _if_bridge_c2ui_h_ */
00096 

Generated on Sun Feb 12 10:49:55 2006 for Gtk-Gnutella by doxygen 1.3.6