1 /* 2 SPDX-FileCopyrightText: 2018-2021 Laurent Montel <montel@kde.org> 3 4 SPDX-License-Identifier: LGPL-2.0-or-later 5 */ 6 7 #pragma once 8 9 #include "librestapi_private_export.h" 10 #include "restapiabstractjob.h" 11 12 #include <QNetworkRequest> 13 namespace RocketChatRestApi 14 { 15 class LIBROCKETCHATRESTAPI_QT5_TESTS_EXPORT RoomsInfoJob : public RestApiAbstractJob 16 { 17 Q_OBJECT 18 public: 19 explicit RoomsInfoJob(QObject *parent = nullptr); 20 ~RoomsInfoJob() override; 21 22 Q_REQUIRED_RESULT bool requireHttpAuthentication() const override; 23 24 Q_REQUIRED_RESULT bool start() override; 25 26 Q_REQUIRED_RESULT QNetworkRequest request() const override; 27 28 Q_SIGNALS: 29 void roomsInfoDone(const QJsonObject &obj); 30 31 private: 32 Q_DISABLE_COPY(RoomsInfoJob) 33 void onGetRequestResponse(const QJsonDocument &replyJson) override; 34 }; 35 } 36