File indexing completed on 2024-12-22 04:45:26

0001 /*
0002    SPDX-FileCopyrightText: 2023-2024 Laurent Montel <montel.org>
0003 
0004    SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include "restapiabstractjob.h"
0010 
0011 #include "librocketchatrestapi-qt_export.h"
0012 
0013 namespace RocketChatRestApi
0014 {
0015 class LIBROCKETCHATRESTAPI_QT_EXPORT PublicSettingsJob : public RestApiAbstractJob
0016 {
0017     Q_OBJECT
0018 public:
0019     explicit PublicSettingsJob(QObject *parent = nullptr);
0020     ~PublicSettingsJob() override;
0021 
0022     [[nodiscard]] bool start() override;
0023     [[nodiscard]] bool requireHttpAuthentication() const override;
0024     [[nodiscard]] QNetworkRequest request() const override;
0025 Q_SIGNALS:
0026     void publicSettingsDone(const QJsonObject &data);
0027 
0028 private:
0029     Q_DISABLE_COPY(PublicSettingsJob)
0030     LIBROCKETCHATRESTAPI_QT_NO_EXPORT void onGetRequestResponse(const QString &replyErrorString, const QJsonDocument &replyJson) override;
0031 };
0032 }