MCPcopy Create free account
hub / github.com/RGAA-Software/GoDesk / ReportFileTransferEnd

Method ReportFileTransferEnd

src/render/plugins/plugin_event_router.cpp:238–249  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

236 }
237
238 void PluginEventRouter::ReportFileTransferEnd(const std::shared_ptr<GrPluginFileTransferEnd>& event) {
239 app_->PostGlobalTask([=, this]() {
240 tcrp::RpMessage msg;
241 msg.set_type(tcrp::kRpFileTransferEnd);
242 auto sub = msg.mutable_ft_end();
243 sub->set_the_file_id(event->the_file_id_);
244 sub->set_end_timestamp(event->end_timestamp_);
245 sub->set_success(event->success_);
246 auto buffer = RpProtoAsData(&msg);
247 app_->PostPanelMessage(buffer);
248 });
249 }
250
251 void PluginEventRouter::ReportRemoteClipboardResp(const std::shared_ptr<GrPluginRemoteClipboardResp>& event) {
252 app_->PostGlobalTask([=, this]() {

Callers

nothing calls this directly

Calls 2

PostGlobalTaskMethod · 0.80
PostPanelMessageMethod · 0.45

Tested by

no test coverage detected