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

Method PluginNetEventRouter

src/render/plugins/plugin_net_event_router.cpp:37–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35namespace tc {
36
37 PluginNetEventRouter::PluginNetEventRouter(const std::shared_ptr<RdApplication>& app) {
38 this->app_ = app;
39 this->context_ = app->GetContext();
40 this->plugin_manager_ = app->GetPluginManager();
41 this->settings_ = RdSettings::Instance();
42 this->statistics_ = RdStatistics::Instance();
43
44 msg_notifier_ = this->app_->GetContext()->GetMessageNotifier();
45 msg_listener_ = this->app_->GetContext()->GetMessageNotifier()->CreateListener();
46 msg_listener_->Listen<CaptureMonitorInfoMessage>([=, this](const CaptureMonitorInfoMessage& msg) {
47 if (auto plugin = plugin_manager_->GetEventsReplayerPlugin(); plugin) {
48 plugin->UpdateCaptureMonitorInfo(msg);
49 }
50 });
51 }
52
53 void PluginNetEventRouter::ProcessClientConnectedEvent(const std::shared_ptr<GrPluginClientConnectedEvent>& event) {
54 // has no effects in plugin mode

Callers

nothing calls this directly

Calls 5

GetContextMethod · 0.45
GetPluginManagerMethod · 0.45
GetMessageNotifierMethod · 0.45

Tested by

no test coverage detected