File indexing completed on 2024-05-12 16:28:05

0001 // SPDX-FileCopyrightText: 2022 Carl Schwan <carl@carlschwan.eu>
0002 // SPDX-License-Identifier: GPL-3.0-or-later
0003 
0004 #pragma once
0005 
0006 #include <QObject>
0007 
0008 #include "timeline/post.h"
0009 
0010 class QNetworkAccessManager;
0011 
0012 class NotificationHandler : public QObject
0013 {
0014     Q_OBJECT
0015 
0016 public:
0017     explicit NotificationHandler(QNetworkAccessManager *nam, QObject *parent = nullptr);
0018     void handle(std::shared_ptr<Notification> notification, AbstractAccount *account);
0019 
0020 private:
0021     QNetworkAccessManager *m_nam;
0022 };