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

Method InitNotifyManager

src/client/ct_client_context.cpp:148–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146 }
147
148 void ClientContext::InitNotifyManager(QWidget* parent) {
149 notify_manager_ = std::make_shared<NotifyManager>(parent);
150 connect(notify_manager_.get(), &NotifyManager::notifyDetail, this, [=, this](const NotifyItem& data) {
151 this->PostTask([=, this]() {
152 this->SendAppMessage(MsgClientNotificationClicked {
153 .data_ = data,
154 });
155 });
156 });
157 }
158
159 std::shared_ptr<NotifyManager> ClientContext::GetNotifyManager() const {
160 return notify_manager_;

Callers 1

BaseWorkspaceMethod · 0.80

Calls 2

PostTaskMethod · 0.95
SendAppMessageMethod · 0.95

Tested by

no test coverage detected