X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibmarklin%2Fcommand.h;fp=source%2Flibmarklin%2Fcommand.h;h=e6123c31b625390842c09b7aa22fea64065a18dc;hb=449fb5de95ddb2ac9da4bd72a1c12150505d5549;hp=a270be0af0083ca80e68f3225029a0bf4fc22c04;hpb=65cbaf88a03497df08243ac27354b0c0ea1f640b;p=r2c2.git diff --git a/source/libmarklin/command.h b/source/libmarklin/command.h index a270be0..e6123c3 100644 --- a/source/libmarklin/command.h +++ b/source/libmarklin/command.h @@ -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 signal_done; + private: Cmd cmd; unsigned char data[128]; @@ -26,12 +29,10 @@ private: bool sent; public: - sigc::signal 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 &);