File imguruploader.h#
File List > imgupload > storages > imgur > imguruploader.h
Go to the documentation of this file.
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-FileCopyrightText: 2017-2019 Alejandro Sirgo Rica & Contributors
#pragma once
#include "src/tools/imgupload/storages/imguploaderbase.h"
#include <QUrl>
#include <QWidget>
class QNetworkReply;
class QNetworkAccessManager;
class QUrl;
class ImgurUploader : public ImgUploaderBase
{
Q_OBJECT
public:
explicit ImgurUploader(const QPixmap& capture, QWidget* parent = nullptr);
void deleteImage(const QString& fileName, const QString& deleteToken);
private slots:
void handleReply(QNetworkReply* reply);
private:
void upload();
private:
QNetworkAccessManager* m_NetworkAM;
};