Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

memsensor.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2003 by Hans Karlsson                                   *
00003  *   karlsson.h@home.se                                                      *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  ***************************************************************************/
00010 #ifndef MEMSENSOR_H
00011 #define MEMSENSOR_H
00012 #include "sensor.h"
00013 #include <qstring.h>
00014 #include <qregexp.h>
00015 
00016 class MemSensor :  public Sensor
00017 {
00018 Q_OBJECT
00019 public:
00020 
00021   MemSensor( int interval );
00022   ~MemSensor();
00023 
00024   int getMemTotal();
00025   int getMemFree();
00026   int getBuffers();
00027   int getCached();
00028 
00029   int getSwapTotal();
00030   int getSwapFree();
00031 
00032   void update();
00033   void setMaxValue( SensorParams *sp );
00034   QString getMemLine();
00035 
00036 private:
00037   QString meminfo;
00038   void readValues();
00039 };
00040 
00041 #endif // MEMSENSOR_H

Generated on Mon May 16 13:59:20 2005 for karamba by  doxygen 1.3.9.1