void Window::notifyUpdateAll() { if (cCustomNotifies()) { for (NotifyWindows::const_iterator i = notifyWindows.cbegin(), e = notifyWindows.cend(); i != e; ++i) { (*i)->updateNotifyDisplay(); } } psClearNotifies(); }
void Window::notifyClearFast() { notifyWaiters.clear(); notifySettingWaiters.clear(); for (NotifyWindows::const_iterator i = notifyWindows.cbegin(), e = notifyWindows.cend(); i != e; ++i) { (*i)->deleteLater(); } psClearNotifies(); notifyWindows.clear(); notifyWhenMaps.clear(); notifyWhenAlerts.clear(); }
void Window::notifyClear(History *history) { if (!history) { for (NotifyWindows::const_iterator i = notifyWindows.cbegin(), e = notifyWindows.cend(); i != e; ++i) { (*i)->unlinkHistory(); } psClearNotifies(); for (NotifyWhenMaps::const_iterator i = notifyWhenMaps.cbegin(), e = notifyWhenMaps.cend(); i != e; ++i) { i.key()->clearNotifications(); } notifyWaiters.clear(); notifySettingWaiters.clear(); notifyWhenMaps.clear(); return; } notifyWaiters.remove(history); notifySettingWaiters.remove(history); for (NotifyWindows::const_iterator i = notifyWindows.cbegin(), e = notifyWindows.cend(); i != e; ++i) { (*i)->unlinkHistory(history); } psClearNotifies(history->peer->id); notifyWhenMaps.remove(history); notifyWhenAlerts.remove(history); }