| 161 | } |
| 162 | |
| 163 | void ClientContext::NotifyAppMessage(const QString& title, const QString& msg, std::function<void()>&& cbk) { |
| 164 | QMetaObject::invokeMethod(this, [=, this]() { |
| 165 | if (notify_manager_) { |
| 166 | notify_manager_->notify(NotifyItem { |
| 167 | .type_ = NotifyItemType::kNormal, |
| 168 | .title_ = title, |
| 169 | .body_ = msg, |
| 170 | .cbk_ = cbk, |
| 171 | }); |
| 172 | } |
| 173 | }); |
| 174 | } |
| 175 | |
| 176 | void ClientContext::NotifyAppErrMessage(const QString& title, const QString& msg, std::function<void()>&& cbk) { |
| 177 | QMetaObject::invokeMethod(this, [=, this]() { |
no outgoing calls
no test coverage detected