#include <HighlightBadge.hpp>
|
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 |
|
◆ 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 |
|
) |
| |
◆ badgeName()
const QString & chatterino::HighlightBadge::badgeName |
( |
| ) |
const |
◆ displayName()
const QString & chatterino::HighlightBadge::displayName |
( |
| ) |
const |
◆ getColor()
const std::shared_ptr< QColor > chatterino::HighlightBadge::getColor |
( |
| ) |
const |
◆ getSoundUrl()
const QUrl & chatterino::HighlightBadge::getSoundUrl |
( |
| ) |
const |
◆ hasAlert()
bool chatterino::HighlightBadge::hasAlert |
( |
| ) |
const |
◆ 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 |
◆ isMatch()
bool chatterino::HighlightBadge::isMatch |
( |
const Badge & |
badge | ) |
const |
◆ operator==()
bool chatterino::HighlightBadge::operator== |
( |
const HighlightBadge & |
other | ) |
const |
◆ showInMentions()
bool chatterino::HighlightBadge::showInMentions |
( |
| ) |
const |
◆ 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: