]> git.tdb.fi Git - r2c2.git/blobdiff - source/libmarklin/command.h
Forgot to add the new files
[r2c2.git] / source / libmarklin / command.h
index a270be0af0083ca80e68f3225029a0bf4fc22c04..e6123c31b625390842c09b7aa22fea64065a18dc 100644 (file)
@@ -1,7 +1,7 @@
 /* $Id$
 
 This file is part of the MSP Märklin suite
-Copyright © 2006-2008 Mikkosoft Productions, Mikko Rasa
+Copyright © 2007-2008  Mikkosoft Productions, Mikko Rasa
 Distributed under the GPL
 */
 
@@ -19,6 +19,9 @@ class Reply;
 
 class Command
 {
+public:
+       sigc::signal<void, const Reply &> signal_done;
+
 private:
        Cmd cmd;
        unsigned char data[128];
@@ -26,12 +29,10 @@ private:
        bool sent;
 
 public:
-       sigc::signal<void, const Reply &> signal_done;
-
        Command(Cmd, const unsigned char *, unsigned);
 
        void send(int);
-       bool get_sent() const   { return sent; }
+       bool is_sent() const { return sent; }
        Cmd get_command() const { return cmd; }
 
        friend std::ostream &operator<<(std::ostream &, const Command &);