3 This file is part of the MSP Märklin suite
4 Copyright © 2010 Mikkosoft Productions, Mikko Rasa
5 Distributed under the GPL
11 #include <msp/core/application.h>
12 #include <msp/io/serial.h>
13 #include "network/client.h"
15 class Serial: public Msp::Application
18 Msp::IO::EventDispatcher event_disp;
19 Marklin::Catalogue catalogue;
20 Marklin::Client client;
21 Msp::IO::Serial serial_port;
22 Marklin::NetTrain *train;
27 static Msp::Application::RegApp<Serial> reg;
34 void train_added(Marklin::NetTrain &);
35 void error(const std::string &);
36 void set_train(Marklin::NetTrain *);
39 void data_available();