]> git.tdb.fi Git - r2c2.git/blobdiff - source/libmarklin/sensor.h
Major architecture rework
[r2c2.git] / source / libmarklin / sensor.h
diff --git a/source/libmarklin/sensor.h b/source/libmarklin/sensor.h
deleted file mode 100644 (file)
index 45749ea..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-/* $Id$
-
-This file is part of the MSP Märklin suite
-Copyright © 2007-2008  Mikkosoft Productions, Mikko Rasa
-Distributed under the GPL
-*/
-
-#ifndef LIBMARKLIN_SENSOR_H_
-#define LIBMARKLIN_SENSOR_H_
-
-#include <list>
-#include <map>
-#include <sigc++/signal.h>
-#include <msp/time/timestamp.h>
-
-namespace Marklin {
-
-class Control;
-
-class Sensor
-{
-public:
-       sigc::signal<void, bool> signal_state_changed;
-
-private:
-       Control &control;
-       unsigned addr;
-       bool state;
-       Msp::Time::TimeStamp off_timeout;
-
-public:
-       Sensor(Control &, unsigned);
-
-       unsigned get_address() const { return addr; }
-       bool get_state() const { return state; }
-       void tick();
-private:
-       void sensor_event(unsigned, bool);
-};
-
-} // namespace Marklin
-
-#endif