KShare/uploaders/default/imguruploader.hpp

24 lines
514 B
C++
Raw Normal View History

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 {
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);
2017-04-23 15:05:48 +02:00
};
#endif // IMGURUPLOADER_HPP