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