| 166 | } |
| 167 | |
| 168 | void ClientPluginInterface::PostUIDelayTask(int ms, std::function<void()>&& task) { |
| 169 | this->PostUITask([ms, t = std::move(task)]() { |
| 170 | QTimer::singleShot(ms, [=]() { |
| 171 | t(); |
| 172 | }); |
| 173 | }); |
| 174 | } |
| 175 | |
| 176 | void ClientPluginInterface::RegisterEventCallback(const ClientPluginEventCallback& cbk) { |
| 177 | event_cbk_ = cbk; |
nothing calls this directly
no test coverage detected