2017-04-23 15:05:48 +02:00
|
|
|
#ifndef IMGURUPLOADER_HPP
|
|
|
|
#define IMGURUPLOADER_HPP
|
|
|
|
|
|
|
|
#include "../uploader.hpp"
|
|
|
|
|
2017-05-06 13:21:12 +02:00
|
|
|
class ImgurUploader : public Uploader {
|
2017-06-30 15:05:37 +02:00
|
|
|
friend struct SegfaultWorkaround;
|
|
|
|
|
2017-06-04 22:58:29 +02:00
|
|
|
public:
|
2017-06-30 15:05:37 +02:00
|
|
|
QString name() override {
|
2017-05-09 17:26:00 +02:00
|
|
|
return "imgur";
|
|
|
|
}
|
2017-06-30 15:05:37 +02:00
|
|
|
QString description() override {
|
2017-05-09 17:26:00 +02:00
|
|
|
return "imgur.com uploader";
|
|
|
|
}
|
2017-06-30 15:05:37 +02:00
|
|
|
void doUpload(QByteArray byteArray, QString) override;
|
|
|
|
void showSettings() override;
|
|
|
|
|
|
|
|
private:
|
|
|
|
void handleSend(QString auth, QString mime, QByteArray byteArray);
|
2017-04-23 15:05:48 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // IMGURUPLOADER_HPP
|