/** * 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 *roomId, const QString &eventId, const QString &roomName, const QString &senderName, const QString &text, const QImage &icon); private: NotificationsManager(QObject *parent = nullptr); QMultiMap m_notifications; };