X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibmarklin%2Fsensor.h;h=45749ea28c142fe338436c378681b94a41fd0735;hb=02c9a9779954d993cb73fe5f7a72b0847e87f633;hp=930b15fff890be651f82cbe1a0453cfb19f7be1a;hpb=3e9c210ddc036cd015228504cc0803c909e27f84;p=r2c2.git diff --git a/source/libmarklin/sensor.h b/source/libmarklin/sensor.h index 930b15f..45749ea 100644 --- a/source/libmarklin/sensor.h +++ b/source/libmarklin/sensor.h @@ -1,7 +1,7 @@ /* $Id$ This file is part of the MSP Märklin suite -Copyright © 2006-2008 Mikkosoft Productions, Mikko Rasa +Copyright © 2007-2008 Mikkosoft Productions, Mikko Rasa Distributed under the GPL */ @@ -19,20 +19,21 @@ class Control; class Sensor { +public: + sigc::signal signal_state_changed; + private: - Control &control; + Control &control; unsigned addr; - bool state; + bool state; Msp::Time::TimeStamp off_timeout; public: - sigc::signal signal_state_changed; - Sensor(Control &, unsigned); unsigned get_address() const { return addr; } - bool get_state() const { return state; } - void tick(); + bool get_state() const { return state; } + void tick(); private: void sensor_event(unsigned, bool); };