| 174 | } |
| 175 | |
| 176 | void ClientContext::NotifyAppErrMessage(const QString& title, const QString& msg, std::function<void()>&& cbk) { |
| 177 | QMetaObject::invokeMethod(this, [=, this]() { |
| 178 | if (notify_manager_) { |
| 179 | notify_manager_->notify(NotifyItem { |
| 180 | .type_ = NotifyItemType::kError, |
| 181 | .title_ = title, |
| 182 | .body_ = msg, |
| 183 | .cbk_ = cbk, |
| 184 | }); |
| 185 | } |
| 186 | }); |
| 187 | } |
| 188 | |
| 189 | void ClientContext::NotifyAppWarningMessage(const QString& title, const QString& msg, std::function<void()>&& cbk) { |
| 190 | QMetaObject::invokeMethod(this, [=, this]() { |
nothing calls this directly
no outgoing calls
no test coverage detected