File indexing completed on 2024-05-19 05:04: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 #include <QDialog> 0009 #include <QVector> 0010 0011 #include "libruqolawidgets_private_export.h" 0012 class DirectChannelInfoWidget; 0013 class User; 0014 class RocketChatAccount; 0015 class RoleInfo; 0016 class LIBRUQOLAWIDGETS_TESTS_EXPORT DirectChannelInfoDialog : public QDialog 0017 { 0018 Q_OBJECT 0019 public: 0020 explicit DirectChannelInfoDialog(RocketChatAccount *account, QWidget *parent = nullptr); 0021 ~DirectChannelInfoDialog() override; 0022 void setUserName(const QString &userName); 0023 void setRoles(const QVector<RoleInfo> &newRoles); 0024 0025 private: 0026 LIBRUQOLAWIDGETS_NO_EXPORT void readConfig(); 0027 LIBRUQOLAWIDGETS_NO_EXPORT void writeConfig(); 0028 DirectChannelInfoWidget *const mDirectChannelInfoWidget; 0029 };