File indexing completed on 2024-05-12 16:25:54

0001 /*
0002    SPDX-FileCopyrightText: 2020-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include "libruqolacore_export.h"
0010 #include "notificationinfo.h"
0011 #include <QObject>
0012 
0013 class LIBRUQOLACORE_EXPORT NotifierJob : public QObject
0014 {
0015     Q_OBJECT
0016 public:
0017     explicit NotifierJob(QObject *parent = nullptr);
0018     ~NotifierJob() override;
0019 
0020     void start();
0021 
0022     [[nodiscard]] NotificationInfo info() const;
0023     void setInfo(const NotificationInfo &info);
0024 
0025 Q_SIGNALS:
0026     void switchToAccountAndRoomName(const QString &accountName, const QString &roomName, const QString &channelType);
0027     void sendReply(const QString &message, const QString &roomId, const QString &tmId);
0028 
0029 private:
0030     NotificationInfo mInfo;
0031 };