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

0001 /*
0002    SPDX-FileCopyrightText: 2021-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 EmojiCustomAllJob : public RestApiAbstractJob
0016 {
0017     Q_OBJECT
0018 public:
0019     explicit EmojiCustomAllJob(QObject *parent = nullptr);
0020     ~EmojiCustomAllJob() 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 
0027 Q_SIGNALS:
0028     void emojiCustomAllDone(const QJsonObject &obj);
0029 
0030 private:
0031     Q_DISABLE_COPY(EmojiCustomAllJob)
0032     LIBROCKETCHATRESTAPI_QT_NO_EXPORT void onGetRequestResponse(const QString &replyErrorString, const QJsonDocument &replyJson) override;
0033 };
0034 }