• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • @topname@
  • Sitemap
  • Contact Us
 

superkaramba

sensor.h

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 <tqstring.h>
00013 #include <tqobject.h>
00014 #include <tqobjectlist.h>
00015 #include <tqstringlist.h>
00016 #include <tqmap.h>
00017 #include <tqtimer.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     SensorParams* hasMeter( Meter *meter );
00031     void deleteMeter( Meter *meter );
00032     int isEmpty() { return objList->isEmpty(); };
00033     virtual void setMaxValue( SensorParams *s );
00034 
00035 private:
00036     int msec;
00037     TQTimer timer;
00038 
00039 protected:
00040     TQObjectList *objList;
00041 
00042 public slots:
00043     virtual void update()=0;
00044 
00045 };
00046 
00047 #endif // SENSOR_H

superkaramba

Skip menu "superkaramba"
  • Main Page
  • Alphabetical List
  • Class List
  • File List
  • Class Members

@topname@

Skip menu "@topname@"
  • kcalc
  •   knumber
  • superkaramba
Generated for @topname@ by doxygen 1.5.6
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal