Chatterino
Public Member Functions | Static Public Attributes | List of all members
chatterino::HighlightBadge Class Reference

#include <HighlightBadge.hpp>

Public Member Functions

bool operator== (const HighlightBadge &other) const
 
 HighlightBadge (const QString &badgeName, const QString &displayName, bool showInMentions, bool hasAlert, bool hasSound, const QString &soundUrl, QColor color)
 
 HighlightBadge (const QString &badgeName, const QString &displayName, bool showInMentions, bool hasAlert, bool hasSound, const QString &soundUrl, std::shared_ptr< QColor > color)
 
const QString & badgeName () const
 
const QString & displayName () const
 
bool showInMentions () const
 
bool hasAlert () const
 
bool hasSound () const
 
bool isMatch (const Badge &badge) const
 
bool hasCustomSound () const
 Check if this highlight phrase has a custom sound set. More...
 
const QUrl & getSoundUrl () const
 
const std::shared_ptr< QColor > getColor () const
 

Static Public Attributes

static QColor FALLBACK_HIGHLIGHT_COLOR = QColor(127, 63, 73, 127)
 

Constructor & Destructor Documentation

◆ HighlightBadge() [1/2]

chatterino::HighlightBadge::HighlightBadge ( const QString &  badgeName,
const QString &  displayName,
bool  showInMentions,
bool  hasAlert,
bool  hasSound,
const QString &  soundUrl,
QColor  color 
)

◆ HighlightBadge() [2/2]

chatterino::HighlightBadge::HighlightBadge ( const QString &  badgeName,
const QString &  displayName,
bool  showInMentions,
bool  hasAlert,
bool  hasSound,
const QString &  soundUrl,
std::shared_ptr< QColor >  color 
)

Member Function Documentation

◆ badgeName()

const QString & chatterino::HighlightBadge::badgeName ( ) const
Here is the caller graph for this function:

◆ displayName()

const QString & chatterino::HighlightBadge::displayName ( ) const
Here is the caller graph for this function:

◆ getColor()

const std::shared_ptr< QColor > chatterino::HighlightBadge::getColor ( ) const
Here is the caller graph for this function:

◆ getSoundUrl()

const QUrl & chatterino::HighlightBadge::getSoundUrl ( ) const
Here is the caller graph for this function:

◆ hasAlert()

bool chatterino::HighlightBadge::hasAlert ( ) const
Here is the caller graph for this function:

◆ hasCustomSound()

bool chatterino::HighlightBadge::hasCustomSound ( ) const

Check if this highlight phrase has a custom sound set.

Note that this method only checks whether the path to the custom sound is not empty. It does not check whether the file still exists, is a sound file, or anything else.

Returns
true, if the custom sound file path is not empty, false otherwise

◆ hasSound()

bool chatterino::HighlightBadge::hasSound ( ) const
Here is the caller graph for this function:

◆ isMatch()

bool chatterino::HighlightBadge::isMatch ( const Badge badge) const
Here is the call graph for this function:

◆ operator==()

bool chatterino::HighlightBadge::operator== ( const HighlightBadge other) const

◆ showInMentions()

bool chatterino::HighlightBadge::showInMentions ( ) const
Here is the caller graph for this function:

Member Data Documentation

◆ FALLBACK_HIGHLIGHT_COLOR

QColor chatterino::HighlightBadge::FALLBACK_HIGHLIGHT_COLOR = QColor(127, 63, 73, 127)
static

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