mirror-chatterino2/src/singletons/TooltipPreviewImage.hpp

22 lines
424 B
C++
Raw Normal View History

#pragma once
#include "messages/Image.hpp"
namespace chatterino {
2019-06-12 00:31:02 +02:00
class TooltipPreviewImage
{
public:
static TooltipPreviewImage &getInstance();
void setImage(ImagePtr image);
2019-06-12 00:31:02 +02:00
TooltipPreviewImage(const TooltipPreviewImage &) = delete;
2019-06-12 00:31:02 +02:00
private:
TooltipPreviewImage();
2019-06-12 00:31:02 +02:00
private:
ImagePtr image_ = nullptr;
std::vector<pajlada::Signals::ScopedConnection> connections_;
};
} // namespace chatterino