mirror-chatterino2/src/util/NuulsUploader.hpp
Paweł a2f2cac3fd
Added logging for uploaded images (#1712)
A list of uploaded images are stored under the message logs directory as a csv file
2020-06-13 14:53:09 +02:00

21 lines
574 B
C++

#include "common/Channel.hpp"
#include "widgets/helper/ResizingTextEdit.hpp"
#include <QMimeData>
#include <QString>
namespace chatterino {
struct RawImageData {
QByteArray data;
QString format;
QString filePath;
};
void upload(QByteArray imageData, ChannelPtr channel,
ResizingTextEdit &textEdit, std::string format);
void upload(RawImageData imageData, ChannelPtr channel,
ResizingTextEdit &textEdit);
void upload(const QMimeData *source, ChannelPtr channel,
ResizingTextEdit &outputTextEdit);
} // namespace chatterino