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

Method ReportFileTransferBegin

src/render/plugins/plugin_event_router.cpp:223–236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

221 }
222
223 void PluginEventRouter::ReportFileTransferBegin(const std::shared_ptr<GrPluginFileTransferBegin>& event) {
224 app_->PostGlobalTask([=, this]() {
225 tcrp::RpMessage msg;
226 msg.set_type(tcrp::kRpFileTransferBegin);
227 auto sub = msg.mutable_ft_begin();
228 sub->set_the_file_id(event->the_file_id_);
229 sub->set_begin_timestamp(event->begin_timestamp_);
230 sub->set_direction(event->direction_);
231 sub->set_file_detail(event->file_detail_);
232 sub->set_visitor_device_id(event->visitor_device_id_);
233 auto buffer = RpProtoAsData(&msg);
234 app_->PostPanelMessage(buffer);
235 });
236 }
237
238 void PluginEventRouter::ReportFileTransferEnd(const std::shared_ptr<GrPluginFileTransferEnd>& event) {
239 app_->PostGlobalTask([=, this]() {

Callers

nothing calls this directly

Calls 2

PostGlobalTaskMethod · 0.80
PostPanelMessageMethod · 0.45

Tested by

no test coverage detected