| 61 | } |
| 62 | |
| 63 | void Command::AddState(const QString& id, const State::Pointer& state) |
| 64 | { |
| 65 | NamedHandleObjectWithState::AddState(id, state); |
| 66 | state->SetId(id); |
| 67 | if (IObjectWithState::Pointer stateHandler = handler.Cast<IObjectWithState>()) |
| 68 | { |
| 69 | stateHandler->AddState(id, state); |
| 70 | } |
| 71 | } |
| 72 | |
| 73 | bool Command::operator<(const Object* object) const |
| 74 | { |
no test coverage detected