X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibmarklin%2Fturnout.h;fp=source%2Flibmarklin%2Fturnout.h;h=ae6865406523007285bf34ba561ae55105b1375a;hb=80e10207bee4d774f3015a5e946d463d2c828029;hp=82b50d5c05e482019da642278ba43a79bce19f9d;hpb=ae0600f7c3df5b6ef46992b1423888dd0e9a5026;p=r2c2.git diff --git a/source/libmarklin/turnout.h b/source/libmarklin/turnout.h index 82b50d5..ae68654 100644 --- a/source/libmarklin/turnout.h +++ b/source/libmarklin/turnout.h @@ -1,7 +1,7 @@ /* $Id$ This file is part of the MSP Märklin suite -Copyright © 2006-2008 Mikkosoft Productions, Mikko Rasa +Copyright © 2006-2009 Mikkosoft Productions, Mikko Rasa Distributed under the GPL */ @@ -25,18 +25,19 @@ private: Control &control; unsigned addr; unsigned route; + bool dual; public: sigc::signal signal_route_changed; - Turnout(Control &, unsigned); + Turnout(Control &, unsigned, bool =false); void set_route(unsigned); unsigned get_address() const { return addr; } unsigned get_route() const { return route; } private: void command(bool); - void status_reply(const Reply &); + void status_reply(const Reply &, bool); bool switch_timeout(); void turnout_event(unsigned, bool); };