X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibmarklin%2Fcontrolmodel.h;h=17bb72ba94253db0b82b73d6d85bbd22d00aa516;hb=4d33c389881ebdf0b3926343d53e7d1ece654e20;hp=d37ef634eee03aa5fa9619d1d7fbce4f58dfeaaf;hpb=9ddcd066e37e4c72685817c042c30897786ece05;p=r2c2.git diff --git a/source/libmarklin/controlmodel.h b/source/libmarklin/controlmodel.h index d37ef63..17bb72b 100644 --- a/source/libmarklin/controlmodel.h +++ b/source/libmarklin/controlmodel.h @@ -9,6 +9,7 @@ Distributed under the GPL #define LIBMARKLIN_CONTROLMODEL_H_ #include +#include #include namespace Marklin { @@ -17,6 +18,9 @@ class TrainControl; class ControlModel { +public: + sigc::signal signal_control_changed; + protected: ControlModel() { } public: @@ -26,6 +30,7 @@ public: virtual const TrainControl &get_control(const std::string &) const = 0; virtual float get_speed() const = 0; + virtual bool get_reverse() const = 0; virtual float get_braking_distance() const = 0; virtual void tick(const Msp::Time::TimeDelta &) = 0;