- /**
- * 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;
- }