2017-04-23 15:05:48 +02:00
|
|
|
#ifndef CLIPBOARDUPLOADER_HPP
|
|
|
|
#define CLIPBOARDUPLOADER_HPP
|
|
|
|
|
|
|
|
#include <QPixmap>
|
|
|
|
#include <uploaders/uploader.hpp>
|
|
|
|
|
2017-05-06 13:21:12 +02:00
|
|
|
class ClipboardUploader : public Uploader {
|
2017-06-04 22:58:29 +02:00
|
|
|
public:
|
2017-05-09 17:26:00 +02:00
|
|
|
QString name() {
|
|
|
|
return "clipboard";
|
|
|
|
}
|
|
|
|
QString description() {
|
|
|
|
return "Copies the image to clipboard";
|
|
|
|
}
|
2017-06-04 22:58:29 +02:00
|
|
|
std::tuple<QString, QString> format() {
|
|
|
|
return std::tuple<QString, QString>("PNG", "MP4");
|
|
|
|
}
|
|
|
|
|
|
|
|
void doUpload(QByteArray imgData);
|
2017-04-23 15:05:48 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // CLIPBOARDUPLOADER_HPP
|