| 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_; |
no test coverage detected