/***************************************************************************
                                  graph.h
                             -------------------
    begin                : Sat Sep 29 2001
    copyright            : (C) 2001 - 2003 by Roland Riegel
    email                : feedback@roland-riegel.de
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   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 GRAPH_H
#define GRAPH_H

#include <list>
using std::list;

class Window;
class OptionLong;

const long STANDARD_MAX_DEFLECTION = 10240; // [kBit/s]  10 MBit/s = 10240 kBit/s

class Graph
{

public:
	Graph();
	~Graph();
	
	void setNumOfBars( int );
	void setHeightOfBars( int );
	void setTrafficWithMaxDeflectionOfBars( OptionLong* );
	
	void update( int );
	void print( Window&, int, int );
	void resetTrafficData();

private:
	long trafficWithMaxDeflectionOfBars();
	
	int m_heightofbars;
	OptionLong* m_trafficwithmaxdeflectionofbars;
	
	list<int> m_values;
	
};

#endif


syntax highlighted by Code2HTML, v. 0.9.1