| 150 | } |
| 151 | |
| 152 | LRESULT IECommandExecutor::OnSetCommand(UINT uMsg, |
| 153 | WPARAM wParam, |
| 154 | LPARAM lParam, |
| 155 | BOOL& bHandled) { |
| 156 | LOG(TRACE) << "Entering IECommandExecutor::OnSetCommand"; |
| 157 | LRESULT set_command_result = 0; |
| 158 | |
| 159 | LPCSTR json_command = reinterpret_cast<LPCSTR>(lParam); |
| 160 | Command requested_command; |
| 161 | requested_command.Deserialize(json_command); |
| 162 | |
| 163 | this->set_command_mutex_.lock(); |
| 164 | if (this->current_command_.command_type() == CommandType::NoCommand || |
| 165 | requested_command.command_type() == CommandType::Quit) { |
| 166 | this->current_command_.Deserialize(json_command); |
| 167 | set_command_result = 1; |
| 168 | } |
| 169 | this->set_command_mutex_.unlock(); |
| 170 | |
| 171 | return set_command_result; |
| 172 | } |
| 173 | |
| 174 | LRESULT IECommandExecutor::OnExecCommand(UINT uMsg, |
| 175 | WPARAM wParam, |
nothing calls this directly
no test coverage detected