KShare/src/uploaders/uploader.hpp

21 lines
421 B
C++
Raw Permalink Normal View History

2017-04-23 15:05:48 +02:00
#ifndef UPLOADER_HPP
#define UPLOADER_HPP
#include <QPixmap>
#include <QString>
2019-05-16 00:29:05 +02:00
#include <logs/screenshotfile.h>
2017-04-23 15:05:48 +02:00
2017-05-06 13:21:12 +02:00
class Uploader {
public:
2019-05-16 00:29:05 +02:00
virtual void doUpload(QByteArray imgData, QString format, ScreenshotFile sf) = 0;
virtual QString name() = 0;
virtual QString description() = 0;
virtual void showSettings() {
}
virtual bool validate() {
return true;
}
2017-04-23 15:05:48 +02:00
};
#endif // UPLOADER_HPP