]> git.tdb.fi Git - r2c2.git/blob - source/remote/remote.h
Add networking library and a remote control program
[r2c2.git] / source / remote / remote.h
1 /* $Id$
2
3 This file is part of the MSP Märklin suite
4 Copyright © 2009  Mikkosoft Productions, Mikko Rasa
5 Distributed under the GPL
6 */
7
8 #ifndef REMOTE_H_
9 #define REMOTE_H_
10
11 #include <gtkmm/main.h>
12 #include <gtkmm/window.h>
13 #include <gtkmm/box.h>
14 #include <msp/core/application.h>
15 #include "network/client.h"
16
17 class Remote: public Msp::Application
18 {
19 private:
20         Msp::IO::EventDispatcher event_disp;
21         Marklin::Catalogue catalogue;
22         Marklin::Client client;
23         Gtk::Main gtk;
24         Gtk::Window window;
25         Gtk::Box *train_box;
26
27         static Msp::Application::RegApp<Remote> reg;
28
29 public:
30         Remote(int argc, char **argv);
31 private:
32         void tick();
33
34         void train_added(Marklin::NetTrain &);
35 };
36
37 #endif