/*
   SPDX-FileCopyrightText: 2020-2021 Laurent Montel <montel@kde.org>

   SPDX-License-Identifier: LGPL-2.0-or-later
*/

#pragma once

#include "libruqolacore_export.h"
#include "utils.h"
#include <QObject>

class LIBRUQOLACORE_EXPORT NotifierJob : public QObject
{
    Q_OBJECT
public:
    explicit NotifierJob(QObject *parent = nullptr);
    ~NotifierJob() override;

    void start();

    Q_REQUIRED_RESULT Utils::NotificationInfo info() const;
    void setInfo(const Utils::NotificationInfo &info);

    Q_REQUIRED_RESULT QString accountName() const;
    void setAccountName(const QString &accountName);

Q_SIGNALS:
    void switchToAccountAndRoomName(const QString &accountName, const QString &roomName, const QString &channelType);
    void sendReply(const QString &message, const QString &roomId, const QString &tmId);

private:
    void slotDefaultActionActivated();
    Utils::NotificationInfo mInfo;
    QString mAccountName;
};
