]> git.tdb.fi Git - r2c2.git/blob - source/libmarklin/command.h
Add Id tags and copyright notices to files
[r2c2.git] / source / libmarklin / command.h
1 /* $Id$
2
3 This file is part of the MSP Märklin suite
4 Copyright © 2006-2008 Mikkosoft Productions, Mikko Rasa
5 Distributed under the GPL
6 */
7
8 #ifndef COMMAND_H_
9 #define COMMAND_H_
10
11 #include <string>
12 #include <sigc++/sigc++.h>
13 #include "constants.h"
14
15 namespace Marklin {
16
17 class Command
18 {
19 private:
20         std::string cmd;
21         bool        sent;
22
23 public:
24         sigc::signal<void, Error, const std::string &> signal_done;
25
26         Command(const std::string &);
27
28         void              set_sent(bool);
29         const std::string &get_command() const { return cmd; }
30         bool              get_sent() const     { return sent; }
31 };
32
33 } // namespace Marklin
34
35 #endif