Chatterino
Classes | Public Member Functions | Static Public Member Functions | List of all members
chatterino::SeventvEmotes Class Referencefinal

#include <SeventvEmotes.hpp>

Classes

struct  ChannelInfo
 

Public Member Functions

 SeventvEmotes ()
 
std::shared_ptr< const EmoteMapglobalEmotes () const
 
boost::optional< EmotePtrglobalEmote (const EmoteName &name) const
 
void loadGlobalEmotes ()
 

Static Public Member Functions

static void loadChannelEmotes (const std::weak_ptr< Channel > &channel, const QString &channelId, std::function< void(EmoteMap &&, ChannelInfo)> callback, bool manualRefresh)
 
static boost::optional< EmotePtraddEmote (Atomic< std::shared_ptr< const EmoteMap >> &map, const SeventvEventAPIEmoteAddDispatch &dispatch)
 
static boost::optional< EmotePtrupdateEmote (Atomic< std::shared_ptr< const EmoteMap >> &map, const SeventvEventAPIEmoteUpdateDispatch &dispatch)
 
static boost::optional< EmotePtrremoveEmote (Atomic< std::shared_ptr< const EmoteMap >> &map, const SeventvEventAPIEmoteRemoveDispatch &dispatch)
 
static void getEmoteSet (const QString &emoteSetId, std::function< void(EmoteMap &&, QString)> successCallback, std::function< void(QString)> errorCallback)
 

Constructor & Destructor Documentation

◆ SeventvEmotes()

chatterino::SeventvEmotes::SeventvEmotes ( )

Member Function Documentation

◆ addEmote()

boost::optional< EmotePtr > chatterino::SeventvEmotes::addEmote ( Atomic< std::shared_ptr< const EmoteMap >> &  map,
const SeventvEventAPIEmoteAddDispatch dispatch 
)
static

Adds an emote to the map if it's valid. This will copy the emote map and update the Atomic.

Returns
The added emote if an emote was added.
Here is the caller graph for this function:

◆ getEmoteSet()

void chatterino::SeventvEmotes::getEmoteSet ( const QString &  emoteSetId,
std::function< void(EmoteMap &&, QString)>  successCallback,
std::function< void(QString)>  errorCallback 
)
static

Fetches an emote-set by its id

Here is the call graph for this function:
Here is the caller graph for this function:

◆ globalEmote()

boost::optional< EmotePtr > chatterino::SeventvEmotes::globalEmote ( const EmoteName &  name) const

◆ globalEmotes()

std::shared_ptr< const EmoteMap > chatterino::SeventvEmotes::globalEmotes ( ) const
Here is the caller graph for this function:

◆ loadChannelEmotes()

void chatterino::SeventvEmotes::loadChannelEmotes ( const std::weak_ptr< Channel > &  channel,
const QString &  channelId,
std::function< void(EmoteMap &&, ChannelInfo)>  callback,
bool  manualRefresh 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ loadGlobalEmotes()

void chatterino::SeventvEmotes::loadGlobalEmotes ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ removeEmote()

boost::optional< EmotePtr > chatterino::SeventvEmotes::removeEmote ( Atomic< std::shared_ptr< const EmoteMap >> &  map,
const SeventvEventAPIEmoteRemoveDispatch dispatch 
)
static

Removes an emote from this map. This will copy the emote map and update the Atomic.

Returns
The removed emote if any emote was removed.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateEmote()

boost::optional< EmotePtr > chatterino::SeventvEmotes::updateEmote ( Atomic< std::shared_ptr< const EmoteMap >> &  map,
const SeventvEventAPIEmoteUpdateDispatch dispatch 
)
static

Updates an emote in this map. This will copy the emote map and update the Atomic.

Returns
The updated emote if any emote was updated.
Here is the caller graph for this function:

The documentation for this class was generated from the following files: