#pragma once #include #include "boost/optional.hpp" #include "common/Aliases.hpp" #include "common/Atomic.hpp" #include "providers/twitch/TwitchChannel.hpp" namespace chatterino { struct Emote; using EmotePtr = std::shared_ptr; class EmoteMap; class FfzEmotes final { static constexpr const char *globalEmoteApiUrl = "https://api.frankerfacez.com/v1/set/global"; public: FfzEmotes(); std::shared_ptr emotes() const; boost::optional emote(const EmoteName &name) const; void loadEmotes(); static void loadChannel( std::weak_ptr channel, const QString &channelId, std::function emoteCallback, std::function)> modBadgeCallback, bool manualRefresh); private: Atomic> global_; }; } // namespace chatterino