]> git.tdb.fi Git - r2c2.git/blobdiff - source/remote/remote.h
Fix remaining exception class names
[r2c2.git] / source / remote / remote.h
index 4599a139af32989b2c0c4212168c8d15694cac29..b4c5c129b904b5e5390c4cb8150d9296f0e53dc2 100644 (file)
@@ -1,10 +1,3 @@
-/* $Id$
-
-This file is part of the MSP Märklin suite
-Copyright © 2009  Mikkosoft Productions, Mikko Rasa
-Distributed under the GPL
-*/
-
 #ifndef REMOTE_H_
 #define REMOTE_H_
 
@@ -14,24 +7,31 @@ Distributed under the GPL
 #include <msp/core/application.h>
 #include "network/client.h"
 
+class MainPanel;
+class TrainPanel;
+
 class Remote: public Msp::Application
 {
 private:
        Msp::IO::EventDispatcher event_disp;
-       Marklin::Catalogue catalogue;
-       Marklin::Client client;
+       R2C2::Catalogue catalogue;
+       R2C2::Client client;
        Gtk::Main gtk;
        Gtk::Window window;
-       Gtk::Box *train_box;
+       Gtk::Box *panel_box;
+       MainPanel *main_panel;
+       std::vector<TrainPanel *> train_panels;
 
        static Msp::Application::RegApp<Remote> reg;
 
 public:
        Remote(int argc, char **argv);
+
+       const R2C2::Catalogue &get_catalogue() const { return catalogue; }
 private:
        void tick();
 
-       void train_added(Marklin::NetTrain &);
+       void train_added(R2C2::NetTrain &);
 };
 
 #endif