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

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 "restapiabstractjob.h"
0010 
0011 #include "librocketchatrestapi-qt_export.h"
0012 
0013 namespace RocketChatRestApi
0014 {
0015 class LIBROCKETCHATRESTAPI_QT_EXPORT LoadEmojiCustomJob : public RestApiAbstractJob
0016 {
0017     Q_OBJECT
0018 public:
0019     explicit LoadEmojiCustomJob(QObject *parent = nullptr);
0020     ~LoadEmojiCustomJob() override;
0021 
0022     [[nodiscard]] bool start() override;
0023     [[nodiscard]] bool requireHttpAuthentication() const override;
0024     [[nodiscard]] QNetworkRequest request() const override;
0025     [[nodiscard]] bool hasQueryParameterSupport() const override;
0026 Q_SIGNALS:
0027     void loadEmojiCustomDone(const QJsonObject &obj);
0028 
0029 private:
0030     Q_DISABLE_COPY(LoadEmojiCustomJob)
0031     LIBROCKETCHATRESTAPI_QT_NO_EXPORT void onGetRequestResponse(const QString &replyErrorString, const QJsonDocument &replyJson) override;
0032 };
0033 }