34624e5762
Added a functionality of uploading byte arrays and even files. Created RecordingFormat, which allows me to create states, I guess??, for RecordingContex's. Needed for, eg. gifs, which are horrible and I strongly suggest against, which will actually be stored as files per frame which are QImages encoded with QImage::Format_RGB888 (confirmation needed).
21 lines
433 B
C++
21 lines
433 B
C++
#ifndef IMGURUPLOADER_HPP
|
|
#define IMGURUPLOADER_HPP
|
|
|
|
#include "../uploader.hpp"
|
|
|
|
class ImgurUploader : public Uploader {
|
|
public:
|
|
QString name() {
|
|
return "imgur";
|
|
}
|
|
QString description() {
|
|
return "imgur.com uploader";
|
|
}
|
|
std::tuple<QString, QString> format() {
|
|
return std::tuple<QString, QString>("PNG", "MP4");
|
|
}
|
|
void doUpload(QByteArray byteArray);
|
|
};
|
|
|
|
#endif // IMGURUPLOADER_HPP
|