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

networksensor.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 NETWORKSENSOR_H
00011 #define NETWORKSENSOR_H
00012 
00013 #include "sensor.h"
00014 
00015 #include <qdatetime.h>
00016 #include <qfile.h>
00017 #include <qregexp.h>
00018 
00019 class NetworkSensor :  public Sensor
00020 {
00021     Q_OBJECT
00022 public:
00023     NetworkSensor( QString device, int interval );
00024     ~NetworkSensor();
00025     void update();
00026 
00027 
00028 private:
00029     unsigned long receivedBytes;
00030     unsigned long transmittedBytes;
00031     QTime netTimer;
00032     QString device;
00033 
00034     void getInOutBytes (unsigned long &in,unsigned long &out) const;
00035 
00036 };
00037 #endif // NETWORKSENSOR_H
00038 

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