#ifndef NOTIFICATIONHANDLER_H #define NOTIFICATIONHANDLER_H #include #include "usermodel.h" class QJsonDocument; namespace OCC { class ServerNotificationHandler : public QObject { Q_OBJECT public: explicit ServerNotificationHandler(AccountState *accountState, QObject *parent = nullptr); signals: void newNotificationList(ActivityList); void newIncomingCallsList(ActivityList); public slots: void slotFetchNotifications(); private slots: void slotNotificationsReceived(const QJsonDocument &json, int statusCode); void slotEtagResponseHeaderReceived(const QByteArray &value, int statusCode); private: QPointer _notificationJob; AccountState *_accountState; }; } #endif // NOTIFICATIONHANDLER_H