#ifndef WINDOWSNOTIFICATIONBACKEND_HPP #define WINDOWSNOTIFICATIONBACKEND_HPP #include "AbstractNotificationBackend.hpp" #include #include #include #include class NotificationBackend : public AbstractNotificationBackend { Q_OBJECT public: struct PendingNotification { NotificationType type; QVariantMap data; }; NotificationBackend(QObject *parent = nullptr); ~NotificationBackend() = default; void sendNotification(const QString &title = QString(), const QString &message = QString(), const QList &actions = {}) override; void sendCallNotification(QVariantMap data); void sendMessageNotification(QVariantMap data); // void sendMessageNotification(QVariantMap data); void sendNotification(NotificationType type, QVariantMap data) override; void flushPendingNotifications(); signals: void toastButtonTriggered(const QString &arg); void sessionLockedChanged(bool locked); private: QList mPendingNotifications; }; #endif // WINDOWSNOTIFICATIONBACKEND_HPP