File indexing completed on 2024-12-01 04:37:05

0001 /*
0002    SPDX-FileCopyrightText: 2021-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 "libruqolawidgets_private_export.h"
0012 class TeamConvertToChannelWidget;
0013 class TeamRoom;
0014 class LIBRUQOLAWIDGETS_TESTS_EXPORT TeamConvertToChannelDialog : public QDialog
0015 {
0016     Q_OBJECT
0017 public:
0018     explicit TeamConvertToChannelDialog(QWidget *parent = nullptr);
0019     ~TeamConvertToChannelDialog() override;
0020 
0021     [[nodiscard]] QStringList roomIdsToDelete() const;
0022     void setTeamRooms(const QVector<TeamRoom> &rooms);
0023 
0024     void setTeamName(const QString &name);
0025 
0026 private:
0027     LIBRUQOLAWIDGETS_NO_EXPORT void readConfig();
0028     LIBRUQOLAWIDGETS_NO_EXPORT void writeConfig();
0029     TeamConvertToChannelWidget *const mTeamConvertToChannelWidget;
0030 };