X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fbase%2Frs_commandevent.h;h=d766588ade3b861f29428f8684fef4cf49bd96e1;hb=3f46c180da0806c9c263e6d87d0f1404632402da;hp=5a0dd5b8fb8fc3c5ac24ac8b1874d60e1da3aa49;hpb=16ce54abf01ca3032e42a5bb11a4afcf9014dcca;p=architektonas diff --git a/src/base/rs_commandevent.h b/src/base/rs_commandevent.h index 5a0dd5b..d766588 100644 --- a/src/base/rs_commandevent.h +++ b/src/base/rs_commandevent.h @@ -1,47 +1,19 @@ #ifndef RS_COMMANDEVENT_H #define RS_COMMANDEVENT_H +#include + /** * Command Events. */ class RS_CommandEvent { public: - /** - * Creates a new command event that is not yet accepted. - * - * @param cmd the command that was triggered. - */ - RS_CommandEvent(const QString & cmd) - { - this->cmd = cmd; - accepted = false; - } - - /** - * @return the command that was triggered, usually by - * the user. - */ - QString getCommand() - { - return cmd; - } - - /** - * Sets the event state to accepted. - */ - void accept() - { - accepted = true; - } + RS_CommandEvent(const QString & cmd); - /** - * @return Whether the event was already accepted or not. - */ - bool isAccepted() - { - return accepted; - } + QString getCommand(); + void accept(); + bool isAccepted(); protected: QString cmd;