| 2979 | } |
| 2980 | |
| 2981 | void IcingaDB::NotificationSentToAllUsersHandler( |
| 2982 | const Notification::Ptr& notification, const Checkable::Ptr& checkable, const std::set<User::Ptr>& users, |
| 2983 | NotificationType type, const CheckResult::Ptr& cr, const String& author, const String& text |
| 2984 | ) |
| 2985 | { |
| 2986 | auto rws (ConfigType::GetObjectsByType<IcingaDB>()); |
| 2987 | auto sendTime (notification->GetLastNotification()); |
| 2988 | |
| 2989 | if (!rws.empty()) { |
| 2990 | for (auto& rw : rws) { |
| 2991 | rw->SendSentNotification(notification, checkable, users, type, cr, author, text, sendTime); |
| 2992 | } |
| 2993 | } |
| 2994 | } |
| 2995 | |
| 2996 | void IcingaDB::CommentAddedHandler(const Comment::Ptr& comment) |
| 2997 | { |
nothing calls this directly
no test coverage detected