Play-/Source/ui_qt/CoverUtils.h

21 lines
383 B
C
Raw Permalink Normal View History

2019-01-16 20:00:10 +00:00
#pragma once
#include <map>
#include <mutex>
2019-01-16 20:00:10 +00:00
#include <string>
#include <QPixmap>
2019-01-17 22:10:50 +00:00
#include "ui_shared/BootablesDbClient.h"
2019-01-16 20:00:10 +00:00
class CoverUtils
{
private:
static std::map<std::string, QPixmap> cache;
static std::mutex m_lock;
2019-01-16 20:00:10 +00:00
public:
static void PopulateCache(std::vector<BootablesDb::Bootable>);
2019-01-16 20:00:10 +00:00
static QPixmap find(std::string key);
static void PopulatePlaceholderCover();
2019-01-16 20:00:10 +00:00
};