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

sensor.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 SENSOR_H
00011 #define SENSOR_H
00012 #include <qstring.h>
00013 #include <qobject.h>
00014 #include <qobjectlist.h>
00015 #include <qstringlist.h>
00016 #include <qmap.h>
00017 #include <qtimer.h>
00018 
00019 #include "sensorparams.h"
00020 
00021 class Sensor : public QObject
00022 {
00023     Q_OBJECT
00024 
00025 public:
00026     Sensor( int msec = 1000 );
00027     void start();
00028     virtual ~Sensor();
00029     void addMeter( SensorParams *s );
00030     virtual void setMaxValue( SensorParams *s );
00031 
00032 private:
00033     int msec;
00034     QTimer timer;
00035 
00036 protected:
00037     QObjectList *objList;
00038 
00039 public slots:
00040     virtual void update()=0;
00041 
00042 };
00043 
00044 #endif // SENSOR_H

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