Chatterino
Classes | Public Member Functions | Public Attributes | List of all members
chatterino::TwitchAccount Class Reference

#include <TwitchAccount.hpp>

Inheritance diagram for chatterino::TwitchAccount:
[legend]
Collaboration diagram for chatterino::TwitchAccount:
[legend]

Classes

struct  EmoteSet
 
struct  TwitchAccountEmoteData
 
struct  TwitchEmote
 

Public Member Functions

 TwitchAccount (const QString &username, const QString &oauthToken_, const QString &oauthClient_, const QString &_userID)
 
virtual QString toString () const override
 
const QString & getUserName () const
 
const QString & getOAuthToken () const
 
const QString & getOAuthClient () const
 
const QString & getUserId () const
 
QColor color ()
 
void setColor (QColor color)
 
bool setOAuthClient (const QString &newClientID)
 
bool setOAuthToken (const QString &newOAuthToken)
 
bool isAnon () const
 
void loadBlocks ()
 
void blockUser (QString userId, std::function< void()> onSuccess, std::function< void()> onFailure)
 
void unblockUser (QString userId, std::function< void()> onSuccess, std::function< void()> onFailure)
 
SharedAccessGuard< const std::set< QString > > accessBlockedUserIds () const
 
SharedAccessGuard< const std::set< TwitchUser > > accessBlocks () const
 
void loadEmotes (std::weak_ptr< Channel > weakChannel={})
 
void loadUserstateEmotes (std::weak_ptr< Channel > weakChannel={})
 
bool setUserstateEmoteSets (QStringList newEmoteSets)
 
SharedAccessGuard< const TwitchAccountEmoteDataaccessEmotes () const
 
SharedAccessGuard< const std::unordered_map< QString, EmoteMap > > accessLocalEmotes () const
 
void autoModAllow (const QString msgID, ChannelPtr channel)
 
void autoModDeny (const QString msgID, ChannelPtr channel)
 

Public Attributes

std::map< QString, EmoteSetstaticEmoteSets
 

Constructor & Destructor Documentation

◆ TwitchAccount()

chatterino::TwitchAccount::TwitchAccount ( const QString &  username,
const QString &  oauthToken_,
const QString &  oauthClient_,
const QString &  _userID 
)

Member Function Documentation

◆ accessBlockedUserIds()

SharedAccessGuard< const std::set< QString > > chatterino::TwitchAccount::accessBlockedUserIds ( ) const
Here is the call graph for this function:

◆ accessBlocks()

SharedAccessGuard< const std::set< TwitchUser > > chatterino::TwitchAccount::accessBlocks ( ) const

◆ accessEmotes()

SharedAccessGuard< const TwitchAccount::TwitchAccountEmoteData > chatterino::TwitchAccount::accessEmotes ( ) const

◆ accessLocalEmotes()

SharedAccessGuard< const std::unordered_map< QString, EmoteMap > > chatterino::TwitchAccount::accessLocalEmotes ( ) const

◆ autoModAllow()

void chatterino::TwitchAccount::autoModAllow ( const QString  msgID,
ChannelPtr  channel 
)
Here is the call graph for this function:

◆ autoModDeny()

void chatterino::TwitchAccount::autoModDeny ( const QString  msgID,
ChannelPtr  channel 
)
Here is the call graph for this function:

◆ blockUser()

void chatterino::TwitchAccount::blockUser ( QString  userId,
std::function< void()>  onSuccess,
std::function< void()>  onFailure 
)
Here is the call graph for this function:

◆ color()

QColor chatterino::TwitchAccount::color ( )
Here is the call graph for this function:

◆ getOAuthClient()

const QString & chatterino::TwitchAccount::getOAuthClient ( ) const
Here is the caller graph for this function:

◆ getOAuthToken()

const QString & chatterino::TwitchAccount::getOAuthToken ( ) const
Here is the caller graph for this function:

◆ getUserId()

const QString & chatterino::TwitchAccount::getUserId ( ) const
Here is the caller graph for this function:

◆ getUserName()

const QString & chatterino::TwitchAccount::getUserName ( ) const
Here is the caller graph for this function:

◆ isAnon()

bool chatterino::TwitchAccount::isAnon ( ) const

◆ loadBlocks()

void chatterino::TwitchAccount::loadBlocks ( )
Here is the call graph for this function:

◆ loadEmotes()

void chatterino::TwitchAccount::loadEmotes ( std::weak_ptr< Channel weakChannel = {})
Here is the call graph for this function:

◆ loadUserstateEmotes()

void chatterino::TwitchAccount::loadUserstateEmotes ( std::weak_ptr< Channel weakChannel = {})
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setColor()

void chatterino::TwitchAccount::setColor ( QColor  color)
Here is the call graph for this function:

◆ setOAuthClient()

bool chatterino::TwitchAccount::setOAuthClient ( const QString &  newClientID)

◆ setOAuthToken()

bool chatterino::TwitchAccount::setOAuthToken ( const QString &  newOAuthToken)

◆ setUserstateEmoteSets()

bool chatterino::TwitchAccount::setUserstateEmoteSets ( QStringList  newEmoteSets)

◆ toString()

QString chatterino::TwitchAccount::toString ( ) const
overridevirtual

Implements chatterino::Account.

Here is the call graph for this function:

◆ unblockUser()

void chatterino::TwitchAccount::unblockUser ( QString  userId,
std::function< void()>  onSuccess,
std::function< void()>  onFailure 
)
Here is the call graph for this function:

Member Data Documentation

◆ staticEmoteSets

std::map<QString, EmoteSet> chatterino::TwitchAccount::staticEmoteSets

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