File indexing completed on 2024-12-08 04:34:04
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 <QWidget> 0010 0011 #include "libruqolawidgets_private_export.h" 0012 class QTabWidget; 0013 class AdministratorRoomsWidget; 0014 class AdministratorCustomUserStatusWidget; 0015 class AdministratorCustomSoundsWidget; 0016 class AdministratorServerInfoWidget; 0017 class AdministratorUsersWidget; 0018 class AdministratorInvitesWidget; 0019 class ViewLogWidget; 0020 class AdministratorCustomEmojiWidget; 0021 class PermissionsWidget; 0022 class AdministratorRolesWidget; 0023 class RocketChatAccount; 0024 class AdministratorOauthWidget; 0025 class AdministratorModerationConsoleWidget; 0026 class LIBRUQOLAWIDGETS_TESTS_EXPORT AdministratorWidget : public QWidget 0027 { 0028 Q_OBJECT 0029 public: 0030 explicit AdministratorWidget(RocketChatAccount *account, QWidget *parent = nullptr); 0031 ~AdministratorWidget() override; 0032 0033 void updateUiFromPermission(); 0034 void initialize(); 0035 0036 private: 0037 QTabWidget *const mTabWidget; 0038 AdministratorRoomsWidget *const mAdministratorRoomsWidget; 0039 AdministratorCustomUserStatusWidget *const mAdministratorCustomUserStatusWidget; 0040 AdministratorCustomSoundsWidget *const mAdministratorCustomSoundsWidget; 0041 AdministratorServerInfoWidget *const mAdministratorServerInfoWidget; 0042 AdministratorUsersWidget *const mAdministratorUsersWidget; 0043 AdministratorInvitesWidget *const mAdministratorInvitesWidget; 0044 AdministratorCustomEmojiWidget *const mAdministratorCustomEmojiWidget; 0045 ViewLogWidget *const mViewLogWidget; 0046 PermissionsWidget *const mPermissionsWidget; 0047 AdministratorRolesWidget *const mRolesWidget; 0048 AdministratorOauthWidget *const mOauthWidget; 0049 AdministratorModerationConsoleWidget *const mAdministratorModerationConsoleWidget; 0050 RocketChatAccount *const mRocketChatAccount; 0051 };