File indexing completed on 2024-12-22 04:45:38
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 "administratorroomseditbasewidget.h" 0010 #include "libruqolawidgets_private_export.h" 0011 class QCheckBox; 0012 class QLineEdit; 0013 class RoomAvatarWidget; 0014 class MessageTextEditor; 0015 class QLabel; 0016 class LIBRUQOLAWIDGETS_TESTS_EXPORT AdministratorRoomsEditWidget : public AdministratorRoomsEditBaseWidget 0017 { 0018 Q_OBJECT 0019 public: 0020 explicit AdministratorRoomsEditWidget(QWidget *parent = nullptr); 0021 ~AdministratorRoomsEditWidget() override; 0022 0023 void setRoomEditInfo(const RoomEditInfo &newRoomEditInfo) override; 0024 [[nodiscard]] RoomEditInfo roomEditInfo() const override; 0025 0026 private: 0027 QLineEdit *const mLineEdit; 0028 QCheckBox *const mDefaultCheckBox; 0029 QCheckBox *const mFavoriteCheckBox; 0030 QCheckBox *const mFeaturedCheckBox; 0031 QCheckBox *const mPrivateCheckBox; 0032 QCheckBox *const mReadOnlyCheckBox; 0033 QCheckBox *const mArchivedCheckBox; 0034 QLabel *const mOwnerName; 0035 0036 RoomAvatarWidget *const mRoomAvatarWidget; 0037 MessageTextEditor *const mTopic; 0038 MessageTextEditor *const mAnnouncement; 0039 MessageTextEditor *const mDescription; 0040 };