4 #include <QRegularExpression> 6 #include <unordered_map> 15 #define TWITCH_EMOTE_TEMPLATE \ 16 "https://static-cdn.jtvnw.net/emoticons/v2/{id}/default/dark/{scale}" 20 using EmotePtr = std::shared_ptr<const Emote>;
41 virtual EmotePtr getOrCreateEmote(
const EmoteId &
id,
42 const EmoteName &
name) = 0;
48 static QString cleanUpEmoteCode(
const QString &dirtyEmoteCode);
51 EmotePtr getOrCreateEmote(
const EmoteId &
id,
52 const EmoteName &
name)
override;
55 Url getEmoteLink(
const EmoteId &
id,
const QString &emoteScale);
EmotePtr staticEmote
Definition: TwitchEmotes.hpp:28
Definition: TwitchEmotes.hpp:31
Definition: Application.cpp:48
int minBits
Definition: TwitchEmotes.hpp:24
QRegularExpression regex
Definition: TwitchEmotes.hpp:32
Definition: TwitchEmotes.hpp:22
std::shared_ptr< const Emote > EmotePtr
Definition: Emote.hpp:38
Definition: UniqueAccess.hpp:53
Definition: TwitchEmotes.hpp:45
Definition: TwitchEmotes.hpp:36
std::vector< CheerEmote > cheerEmotes
Definition: TwitchEmotes.hpp:33
QRegularExpression regex
Definition: TwitchEmotes.hpp:25
EmotePtr animatedEmote
Definition: TwitchEmotes.hpp:27
QColor color
Definition: TwitchEmotes.hpp:23
QString name
Definition: Credentials.cpp:94