File indexing completed on 2024-06-09 04:59:06

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 "libruqolawidgets_export.h"
0010 #include <QWidget>
0011 class QLabel;
0012 class RocketChatAccount;
0013 class ServerConfigInfo;
0014 class LIBRUQOLAWIDGETS_EXPORT ServerInfoWidget : public QWidget
0015 {
0016     Q_OBJECT
0017 public:
0018     explicit ServerInfoWidget(RocketChatAccount *account, QWidget *parent = nullptr);
0019     ~ServerInfoWidget() override;
0020 
0021 private:
0022     LIBRUQOLAWIDGETS_NO_EXPORT void setServerConfigInfo(ServerConfigInfo *info);
0023     QLabel *const mAccountName;
0024     QLabel *const mUserName;
0025     QLabel *const mServerVersion;
0026     QLabel *const mServerUrl;
0027     QLabel *mEnterpriseLicense = nullptr;
0028     QLabel *const mLogo;
0029     RocketChatAccount *const mRocketChatAccount;
0030 };