/***************************************************************************
                          stats.h  -  description
                             -------------------
    begin                : Wed Jul 31 2002
    copyright            : (C) 2002 by Tim-Philipp Müller
    email                : t.i.m@orange.net
 ***************************************************************************/


/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/

#ifndef _ed2k_gui_stats_h_included_
#define _ed2k_gui_stats_h_included_

#include <gtk/gtkwidget.h>
#include <time.h>

enum
{
 STATS_TIMELINE_LAST_3MINS = 0,
 STATS_TIMELINE_LAST_HOUR,
 STATS_TIMELINE_LAST_6HOURS,
 STATS_TIMELINE_LAST_12HOURS,
 STATS_TIMELINE_LAST_24HOURS,
 STATS_TIMELINE_LAST_48HOURS,
 STATS_TIMELINE_LAST_72HOURS,
 STATS_TIMELINE_LAST_WEEK,
 STATS_TIMELINE_LAST_MONTH,
 STATS_TIMELINE_LAST_YEAR,
 STATS_TIMELINE_LAST,
} ;

enum
{
 STATS_MENUITEM_3MIN = 0,
 STATS_MENUITEM_HOUR,
 STATS_MENUITEM_6HOURS,
 STATS_MENUITEM_12HOURS,
 STATS_MENUITEM_24HOURS,
 STATS_MENUITEM_2DAYS,
 STATS_MENUITEM_3DAYS,
 STATS_MENUITEM_WEEK,
 STATS_MENUITEM_MONTH,
 STATS_MENUITEM_YEAR,
 STATS_MENUITEM_NEXT,
 STATS_MENUITEM_IGNORE_DIALOG,
} ;

enum
{
 STATS_TIMELINE_DISPLAYMODE_LINES = 0,
 STATS_TIMELINE_DISPLAYMODE_BARS,
 STATS_TIMELINE_DISPLAYMODE_LAST,
} ;


GtkWidget   *stats_create_page (void);

void         stats_clear_totals (void);

void         stats_print_upload_stats_line (void);

void         stats_print_download_stats_line (void);

#endif


