/***************************************************************************
                                   proc.h
                             -------------------
    begin                : Mon Aug 9 1999
    copyright            : (C) 1999 by Markus Gustavsson
                           (C) 2001 - 2003 by Roland Riegel
    email                : mighty@fragzone.se
                           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 PROC_H
#define PROC_H

class Proc
{
public:

	Proc();
	~Proc();

	void setProcDev(const char *);
	const char* procDev();
	
	bool procDevExists();
	
	const char* ip();
	
	void readLoad( unsigned long& in, unsigned long& out );

	unsigned long totalIn();
	unsigned long totalOut();
	
	int getElapsedTime();
	
private:

	int m_time_last_read;
	int m_elapsed_time;

	bool m_dev_exists;
	char m_dev[128];
	
	char m_ip[16];
	
	unsigned long m_total[2];

};

#endif


syntax highlighted by Code2HTML, v. 0.9.1