mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
a2f2cac3fd
A list of uploaded images are stored under the message logs directory as a csv file
21 lines
574 B
C++
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
|