KShare/uploaders/default/imguruploader.hpp
ArsenArsen 9f57a10bb8
Make the project translatable
Jeeeesh that's alot
2017-07-29 17:22:17 +02:00

26 lines
580 B
C++

#ifndef IMGURUPLOADER_HPP
#define IMGURUPLOADER_HPP
#include "../uploader.hpp"
#include <QApplication>
class ImgurUploader : public Uploader {
Q_DECLARE_TR_FUNCTIONS(ImgurUploader)
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