mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
1043f9f803
* refactor: remove unnecessary includes in headers * fix: formatting * chore: changelog * fix: scrollbar * fix: suggestions and old appbase remains * fix: suggestion * fix: missing Qt forward declarations * fix: another qt include * fix: includes for precompiled-headers=off * Add missing `<memory>` includes * Add missing `#pragma once` * Fix tests Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
28 lines
616 B
C++
28 lines
616 B
C++
#pragma once
|
|
|
|
#include <QMimeData>
|
|
#include <QString>
|
|
|
|
#include <memory>
|
|
|
|
namespace chatterino {
|
|
|
|
class ResizingTextEdit;
|
|
class Channel;
|
|
using ChannelPtr = std::shared_ptr<Channel>;
|
|
|
|
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
|