1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
//
// Copyright (c) 1996, 2007 by Massimiliano Ghilardi ( ghilardi@cibs.sns.it )
//
// This file may be distributed under terms of the GPL
//
#ifndef _PAGEMETER_H_
#define _PAGEMETER_H_
#include "fieldmetergraph.h"
#include "xosview.h"
class PageMeter : public FieldMeterGraph {
public:
PageMeter( XOSView *parent, float max );
~PageMeter( void );
const char *name( void ) const { return "PageMeter"; }
void checkevent( void );
void checkResources( void );
protected:
unsigned long pageinfo_[2][2];
int pageindex_;
float maxspeed_;
bool _vmstat;
const char *_statFileName;
void getpageinfo( void );
void getvmpageinfo( void );
void updateinfo(void);
private:
};
#endif
|