X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibmarklin%2Ftrain.h;h=23bd3cc1b09405fedfae44d62af17e10a40a8f6b;hb=06c100aacb559fbbe7380e15981c4772092c269b;hp=96f487066fb7e6ef5affa1228d8502c2fe35e5fb;hpb=78bc40c2d1a5fcc5715143bd2326716fbb143730;p=r2c2.git diff --git a/source/libmarklin/train.h b/source/libmarklin/train.h index 96f4870..23bd3cc 100644 --- a/source/libmarklin/train.h +++ b/source/libmarklin/train.h @@ -1,6 +1,7 @@ #ifndef LIBMARKLIN_TRAIN_H_ #define LIBMARKLIN_TRAIN_H_ +#include #include #include "block.h" @@ -12,9 +13,13 @@ class TrafficManager; class Train: public sigc::trackable { public: + sigc::signal signal_name_changed; + Train(TrafficManager &, Locomotive &); - const std::string &get_name() const { return name; } + void set_name(const std::string &); void set_speed(unsigned); + const std::string &get_name() const { return name; } + Locomotive &get_locomotive() const { return loco; } void place(Block *, const Block::Endpoint *); bool free_block(Block *); void tick();