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).
16 lines
311 B
C++
16 lines
311 B
C++
#ifndef UPLOADER_HPP
|
|
#define UPLOADER_HPP
|
|
|
|
#include <QPixmap>
|
|
#include <QString>
|
|
|
|
class Uploader {
|
|
public:
|
|
virtual void doUpload(QByteArray imgData) = 0;
|
|
virtual QString name() = 0;
|
|
virtual QString description() = 0;
|
|
virtual std::tuple<QString, QString> format() = 0;
|
|
};
|
|
|
|
#endif // UPLOADER_HPP
|