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

ui/gtk/gtk1/upload_stats.c File Reference


Detailed Description

Keep track of which files we send away, and how often.

Statistics are kept by _FILENAME_ and file size, not by actual path, so two files with the same name and size will be counted in the same bin. I dont see this as a limitation because the user wouldn't be able to differentiate the files anyway.

This could be extended to keep the entire path to each file and optionally show the entire path, but..

The 'upload_history' file has the following format:

Todo:
TODO: Add a check to make sure that all of the files still exist(?) grey them out if they dont, optionally remove them from the stats list (when 'Clear Non-existant Files' is clicked).
Author:
Raphael Manfredi
Date:
2001-2004
Author:
Michael Tesch
Date:
2002
Released with gtk-gnutella & its license

#include "common.h"
#include "gtk/gui.h"
#include "gtk/upload_stats.h"
#include "gtk/columns.h"
#include "gtk/settings.h"
#include "lib/misc.h"
#include "lib/glib-missing.h"
#include "lib/override.h"

Functions

GtkCList * clist_ul_stats (void)
gint ul_find_row_by_upload (const gchar *name, guint64 size, struct ul_stats **s)
 This is me, dreaming of gtk 2.0...
void upload_stats_gui_init (void)
void upload_stats_gui_shutdown (void)
void upload_stats_gui_add (const struct ul_stats *us)
void upload_stats_gui_update (const struct ul_stats *us)
 Called when a row of the upload stats should be updated.
void upload_stats_gui_clear_all (void)

Variables

gint ul_rows = 0


Function Documentation

GtkCList* clist_ul_stats void   )  [static]
 

gint ul_find_row_by_upload const gchar *  name,
guint64  size,
struct ul_stats **  s
[static]
 

This is me, dreaming of gtk 2.0...

void upload_stats_gui_add const struct ul_stats us  ) 
 

void upload_stats_gui_clear_all void   ) 
 

void upload_stats_gui_init void   ) 
 

void upload_stats_gui_shutdown void   ) 
 

void upload_stats_gui_update const struct ul_stats us  ) 
 

Called when a row of the upload stats should be updated.


Variable Documentation

gint ul_rows = 0 [static]
 


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