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 "teams/teamroom.h"
0010 #include <QWidget>
0011 
0012 #include "libruqolawidgets_private_export.h"
0013 class QListView;
0014 class QLineEdit;
0015 class TeamRoomsModel;
0016 class TeamRoomsFilterProxyModel;
0017 class LIBRUQOLAWIDGETS_TESTS_EXPORT TeamSelectDeletedRoomWidget : public QWidget
0018 {
0019     Q_OBJECT
0020 public:
0021     explicit TeamSelectDeletedRoomWidget(QWidget *parent = nullptr);
0022     ~TeamSelectDeletedRoomWidget() override;
0023     [[nodiscard]] QStringList roomsId() const;
0024 
0025     void setTeamRooms(const QVector<TeamRoom> &rooms);
0026 
0027 private:
0028     LIBRUQOLAWIDGETS_NO_EXPORT void slotTextChanged(const QString &str);
0029     QListView *const mListView;
0030     QLineEdit *const mSearchLineEdit;
0031     TeamRoomsModel *const mTeamRoomsModel;
0032     TeamRoomsFilterProxyModel *const mTeamSelectProxyModel;
0033 };