// SPDX-FileCopyrightText: 2020 Tobias Fella // SPDX-License-Identifier: GPL-2.0-or-later #pragma once #include #include #include #include #include #include "neochatroom.h" class NotificationsManager : public QObject { Q_OBJECT public: static NotificationsManager &instance(); Q_INVOKABLE void postNotification(NeoChatRoom *room, const QString &roomName, const QString &sender, const QString &text, const QImage &icon, const QString &replyEventId); private: NotificationsManager(QObject *parent = nullptr); QMultiMap m_notifications; };