X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibmarklin%2Flocomotive.h;h=4a6770ec6c9feb701165828286d49bd52b9a1801;hb=dcfa1e9503b7e97b61396d7458f0b2e5896779cd;hp=9ebccdae5e3bff30814ecba38324e7f607e58914;hpb=449fb5de95ddb2ac9da4bd72a1c12150505d5549;p=r2c2.git diff --git a/source/libmarklin/locomotive.h b/source/libmarklin/locomotive.h index 9ebccda..4a6770e 100644 --- a/source/libmarklin/locomotive.h +++ b/source/libmarklin/locomotive.h @@ -24,6 +24,7 @@ class Locomotive public: sigc::signal signal_speed_changing; sigc::signal signal_speed_changed; + sigc::signal signal_reverse_changed; sigc::signal signal_function_changed; private: @@ -45,6 +46,7 @@ public: unsigned get_speed() const { return speed; } bool get_reverse() const { return reverse; } bool get_function(unsigned f) const { return (funcs>>f)&1; } + unsigned get_functions() const { return funcs; } void refresh_status(); private: void send_command(bool);