mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
33 lines
666 B
C++
33 lines
666 B
C++
|
#pragma once
|
||
|
|
||
|
#include <boost/optional.hpp>
|
||
|
#include <common/Singleton.hpp>
|
||
|
|
||
|
#include "common/Aliases.hpp"
|
||
|
|
||
|
#include <map>
|
||
|
#include <vector>
|
||
|
|
||
|
namespace chatterino {
|
||
|
|
||
|
struct Emote;
|
||
|
using EmotePtr = std::shared_ptr<const Emote>;
|
||
|
|
||
|
class FfzBadges : public Singleton
|
||
|
{
|
||
|
public:
|
||
|
virtual void initialize(Settings &settings, Paths &paths) override;
|
||
|
FfzBadges() = default;
|
||
|
|
||
|
boost::optional<EmotePtr> getBadge(const UserId &id);
|
||
|
boost::optional<QColor> getBadgeColor(const UserId &id);
|
||
|
|
||
|
private:
|
||
|
void loadFfzBadges();
|
||
|
std::map<QString, int> badgeMap;
|
||
|
std::vector<EmotePtr> badges;
|
||
|
std::map<int, QColor> colorMap;
|
||
|
};
|
||
|
|
||
|
} // namespace chatterino
|