KShare/uploaders/default/imguruploader.hpp
2017-06-30 15:05:37 +02:00

24 lines
514 B
C++

#ifndef IMGURUPLOADER_HPP
#define IMGURUPLOADER_HPP
#include "../uploader.hpp"
class ImgurUploader : public Uploader {
friend struct SegfaultWorkaround;
public:
QString name() override {
return "imgur";
}
QString description() override {
return "imgur.com uploader";
}
void doUpload(QByteArray byteArray, QString) override;
void showSettings() override;
private:
void handleSend(QString auth, QString mime, QByteArray byteArray);
};
#endif // IMGURUPLOADER_HPP