X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fnetwork%2Fclient.h;h=02931e553d69a9efc1a8afed0d4714da924654f2;hb=7b4155fa0581d7c5fe198e4fb1dea61fa0846eec;hp=a9ced6fc4f02e7cbb6cd17fcd283f754c32ed0ee;hpb=754ac497179474d0266b55e881a084fef7d5d6a1;p=r2c2.git diff --git a/source/network/client.h b/source/network/client.h index a9ced6f..02931e5 100644 --- a/source/network/client.h +++ b/source/network/client.h @@ -1,10 +1,3 @@ -/* $Id$ - -This file is part of R²C² -Copyright © 2009-2011 Mikkosoft Productions, Mikko Rasa -Distributed under the GPL -*/ - #ifndef R2C2_NET_CLIENT_H_ #define R2C2_NET_CLIENT_H_ @@ -35,7 +28,7 @@ public: sigc::signal signal_error; private: - const Catalogue &catalogue; + Catalogue &catalogue; Protocol proto; Msp::Net::StreamSocket *socket; Msp::Net::Communicator *comm; @@ -46,7 +39,7 @@ private: std::map trains; public: - Client(const Catalogue &); + Client(Catalogue &); ~Client(); void use_event_dispatcher(Msp::IO::EventDispatcher &); @@ -56,7 +49,7 @@ public: void send(const P &pkt) { if(comm) comm->send(pkt); } - const Catalogue &get_catalogue() const { return catalogue; } + Catalogue &get_catalogue() const { return catalogue; } const std::list &get_routes() const { return routes; } void set_power(bool); void set_halt(bool);