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

columns.h

Go to the documentation of this file.
00001 /*
00002  * $Id: columns.h 13676 2007-05-16 18:44:58Z cbiere $
00003  *
00004  * Copyright (c) 2001-2004, Raphael Manfredi & Richard Eckart
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 
00037 #ifndef _gtk_columns_h_
00038 #define _gtk_columns_h_
00039 
00044 enum {
00045     c_gnet_host = 0,
00046     c_gnet_loc,
00047     c_gnet_flags,
00048     c_gnet_user_agent,
00049     c_gnet_version,
00050     c_gnet_connected,
00051     c_gnet_uptime,
00052     c_gnet_info,
00053 #define NODES_VISIBLE_COLUMNS ((guint) c_gnet_info + 1)
00054 #ifdef USE_GTK2
00055     c_gnet_handle,
00056     c_gnet_fg,
00057 #endif
00058     c_gnet_num
00059 };
00060 
00065 enum {
00066     c_ul_filename = 0,
00067     c_ul_host,
00068     c_ul_loc,
00069     c_ul_size,
00070     c_ul_range,
00071     c_ul_agent,
00072     c_ul_progress,
00073     c_ul_status,
00074 #define UPLOADS_GUI_VISIBLE_COLUMNS ((guint) c_ul_status + 1)
00075 #ifdef USE_GTK2
00076     c_ul_fg,
00077     c_ul_data,
00078 #endif /* USE_GTK2 */
00079 
00080     c_ul_num
00081 };
00082 
00087 enum {
00088     c_us_filename = 0,
00089     c_us_size,
00090     c_us_attempts,
00091     c_us_complete,
00092     c_us_norm,
00093 #define UPLOAD_STATS_GUI_VISIBLE_COLUMNS ((guint) c_us_norm + 1)
00094     c_us_stat,
00095 
00096     c_us_num
00097 };
00098 
00099 /*
00100  * Downloads table columns.
00101  */
00102 
00103 enum {
00104     c_dl_filename = 0,
00105     c_dl_host,
00106     c_dl_loc,
00107     c_dl_size,
00108     c_dl_range,
00109     c_dl_server,
00110     c_dl_progress,
00111     c_dl_status,
00112     c_dl_num
00113 #define DOWNLOADS_VISIBLE_COLUMNS ((guint) c_dl_num)
00114 };
00115 
00116 /*
00117  * Queue table columns.
00118  */
00119 
00120 enum {
00121     c_queue_filename = 0,
00122     c_queue_host,
00123     c_queue_loc,
00124     c_queue_size,
00125     c_queue_server,
00126     c_queue_status,
00127     c_queue_num
00128 #define DOWNLOAD_QUEUE_VISIBLE_COLUMNS ((guint) c_queue_num)
00129 };
00130 
00135 enum c_fi {
00136     c_fi_filename = 0,
00137     c_fi_size,
00138     c_fi_done,
00139     c_fi_uploaded,
00140     c_fi_sources,
00141     c_fi_status,
00142 #define FILEINFO_VISIBLE_COLUMNS ((guint) c_fi_status + 1)
00143     c_fi_num
00144 };
00145 
00150 enum c_sr_columns {
00151     c_sr_filename,
00152     c_sr_ext,
00153     c_sr_charset,
00154     c_sr_size,
00155     c_sr_count,
00156     c_sr_loc,
00157     c_sr_meta,  
00158     c_sr_vendor,
00159     c_sr_info,
00160     c_sr_route,
00161     c_sr_protocol,
00162     c_sr_hops,
00163     c_sr_ttl,
00164     c_sr_spam,
00165     c_sr_hostile,
00166     c_sr_owned,
00167     c_sr_sha1,
00168     c_sr_ctime,
00169 
00170 #define SEARCH_RESULTS_VISIBLE_COLUMNS ((guint) c_sr_num)
00171     c_sr_num
00172 };
00173 
00178 typedef enum {
00179     c_gs_type = 0,
00180     c_gs_received,
00181     c_gs_expired,
00182     c_gs_dropped,
00183     c_gs_queued,
00184     c_gs_relayed,
00185     c_gs_gen_queued,
00186     c_gs_generated,
00187 
00188     num_c_gs
00189 } c_gs_t;
00190 
00191 typedef enum {
00192     c_horizon_hops = 0,
00193     c_horizon_nodes,
00194     c_horizon_files,
00195     c_horizon_size,
00196 
00197     num_c_horizon
00198 } c_horizon_t;
00199 
00203 enum {
00204     c_hcs_name = 0,
00205     c_hcs_host_count,
00206     c_hcs_hits,
00207     c_hcs_misses
00208 #define HCACHE_STATS_VISIBLE_COLUMNS ((guint) c_hcs_misses + 1)
00209 };
00210 
00211 
00216 enum {
00217     c_sl_name = 0,
00218     c_sl_hit,
00219     c_sl_new,
00220 #define SEARCH_LIST_VISIBLE_COLUMNS ((guint) c_sl_new + 1)
00221 #ifdef USE_GTK2
00222     c_sl_fg,
00223     c_sl_bg,
00224     c_sl_sch, 
00225 #endif
00226     c_sl_num
00227 };
00228 
00233 enum {
00234     c_st_term = 0,
00235     c_st_period,
00236     c_st_total
00237 };
00238 
00239 #endif /* _gtk_columns_h_ */
00240 
00241 /* vi: set ts=4 sw=4 cindent: */

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