File indexing completed on 2025-01-19 10:48:01
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 <QDialog> 0010 0011 #include "rooms/roomscleanhistoryjob.h" 0012 0013 #include "libruqolawidgets_private_export.h" 0014 class PruneMessagesWidget; 0015 class RocketChatAccount; 0016 class LIBRUQOLAWIDGETS_TESTS_EXPORT PruneMessagesDialog : public QDialog 0017 { 0018 Q_OBJECT 0019 public: 0020 explicit PruneMessagesDialog(RocketChatAccount *account, QWidget *parent = nullptr); 0021 ~PruneMessagesDialog() override; 0022 [[nodiscard]] RocketChatRestApi::RoomsCleanHistoryJob::CleanHistoryInfo cleanHistoryInfo() const; 0023 0024 void setRoomName(const QString &roomName); 0025 0026 private: 0027 LIBRUQOLAWIDGETS_NO_EXPORT void readConfig(); 0028 LIBRUQOLAWIDGETS_NO_EXPORT void writeConfig(); 0029 PruneMessagesWidget *const mPruneMessageWidget; 0030 };