2020-06-14 21:14:28 +02:00
|
|
|
//
|
|
|
|
// Created by versustune on 14.06.20.
|
|
|
|
//
|
|
|
|
|
|
|
|
#include "VenoLogo.h"
|
|
|
|
|
|
|
|
VenoLogo* VenoLogo::instance = nullptr;
|
|
|
|
|
|
|
|
VenoLogo* VenoLogo::getInstance ()
|
|
|
|
{
|
|
|
|
if (instance == nullptr)
|
|
|
|
{
|
|
|
|
instance = new VenoLogo();
|
|
|
|
}
|
|
|
|
return instance;
|
|
|
|
}
|
|
|
|
|
|
|
|
VenoLogo::VenoLogo ()
|
|
|
|
{
|
|
|
|
MemoryOutputStream mo;
|
2020-06-29 22:47:45 +02:00
|
|
|
auto result = ImageCache::getFromMemory(BinaryData::LogoVeNo_png, BinaryData::LogoVeNo_pngSize);
|
|
|
|
realLogo = result;
|
2020-06-14 21:14:28 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
Image VenoLogo::getLogo ()
|
|
|
|
{
|
|
|
|
return getInstance()->realLogo;
|
|
|
|
}
|
|
|
|
|
|
|
|
void VenoLogo::deleteInstance ()
|
|
|
|
{
|
|
|
|
delete instance;
|
2020-06-29 22:47:45 +02:00
|
|
|
instance = nullptr;
|
2020-06-14 21:14:28 +02:00
|
|
|
}
|