• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • superkaramba
 

superkaramba

  • superkaramba
  • src
sensor.h
1 /***************************************************************************
2  * Copyright (C) 2003 by Hans Karlsson *
3  * karlsson.h@home.se *
4  * *
5  * This program is free software; you can redistribute it and/or modify *
6  * it under the terms of the GNU General Public License as published by *
7  * the Free Software Foundation; either version 2 of the License, or *
8  * (at your option) any later version. *
9  ***************************************************************************/
10 #ifndef SENSOR_H
11 #define SENSOR_H
12 #include <tqstring.h>
13 #include <tqobject.h>
14 #include <tqobjectlist.h>
15 #include <tqstringlist.h>
16 #include <tqmap.h>
17 #include <tqtimer.h>
18 
19 #include "sensorparams.h"
20 
21 class Sensor : public TQObject
22 {
23  TQ_OBJECT
24 
25 
26 public:
27  Sensor( int msec = 1000 );
28  void start();
29  virtual ~Sensor();
30  void addMeter( SensorParams *s );
31  SensorParams* hasMeter( Meter *meter );
32  void deleteMeter( Meter *meter );
33  int isEmpty() { return objList->isEmpty(); };
34  virtual void setMaxValue( SensorParams *s );
35 
36 private:
37  int msec;
38  TQTimer timer;
39 
40 protected:
41  TQObjectList *objList;
42 
43 public slots:
44  virtual void update()=0;
45 
46 };
47 
48 #endif // SENSOR_H
SensorParams
Hans Karlsson.
Definition: sensorparams.h:31

superkaramba

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

superkaramba

Skip menu "superkaramba"
  • kcalc
  •   knumber
  • superkaramba
Generated for superkaramba by doxygen 1.8.13
This website is maintained by Timothy Pearson.