File indexing completed on 2024-04-28 16:11:12

0001 /*
0002    SPDX-FileCopyrightText: 2018-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include "libruqolacore_export.h"
0010 #include <QObject>
0011 class RocketChatAccount;
0012 class LIBRUQOLACORE_EXPORT ServerConfigInfo : public QObject
0013 {
0014     Q_OBJECT
0015 public:
0016     explicit ServerConfigInfo(RocketChatAccount *account = nullptr, QObject *parent = nullptr);
0017     ~ServerConfigInfo() override;
0018     [[nodiscard]] QString serverVersionStr() const;
0019     [[nodiscard]] QString accountName() const;
0020     [[nodiscard]] QString userName() const;
0021     [[nodiscard]] QString serverUrl() const;
0022     [[nodiscard]] QString logoUrl() const;
0023     [[nodiscard]] QString faviconUrl() const;
0024 
0025 private:
0026     RocketChatAccount *const mAccount;
0027 };