File indexing completed on 2024-02-18 15:43:52

0001 /*
0002    SPDX-FileCopyrightText: 2023-2024 Laurent Montel <montel.org>
0003 
0004    SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include "commonmessagesmodel.h"
0010 #include "libruqolacore_export.h"
0011 
0012 class LIBRUQOLACORE_EXPORT ModerationMessagesModel : public CommonMessagesModel
0013 {
0014     Q_OBJECT
0015 public:
0016     explicit ModerationMessagesModel(RocketChatAccount *account = nullptr, QObject *parent = nullptr);
0017     ~ModerationMessagesModel() override;
0018 
0019 protected:
0020     [[nodiscard]] QVector<Message> extractMessages(const QJsonObject &obj) override;
0021 };