mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
33 lines
646 B
C++
33 lines
646 B
C++
#pragma once
|
|
|
|
#include <QString>
|
|
#include <boost/optional.hpp>
|
|
#include <unordered_map>
|
|
|
|
#include "common/UniqueAccess.hpp"
|
|
#include "util/QStringHash.hpp"
|
|
|
|
namespace chatterino {
|
|
|
|
struct Emote;
|
|
using EmotePtr = std::shared_ptr<const Emote>;
|
|
|
|
class Settings;
|
|
class Paths;
|
|
|
|
class TwitchBadges
|
|
{
|
|
public:
|
|
void loadTwitchBadges();
|
|
|
|
boost::optional<EmotePtr> badge(const QString &set,
|
|
const QString &version) const;
|
|
|
|
private:
|
|
UniqueAccess<
|
|
std::unordered_map<QString, std::unordered_map<QString, EmotePtr>>>
|
|
badgeSets_; // "bits": { "100": ... "500": ...
|
|
};
|
|
|
|
} // namespace chatterino
|