#include <ChatterSet.hpp>
|
static constexpr size_t | chatterLimit = 2000 |
| The limit of how many chatters can be saved for a channel. More...
|
|
ChatterSet is a limited container that contains a list of recent chatters that can be referenced by name.
◆ ChatterSet()
chatterino::ChatterSet::ChatterSet |
( |
| ) |
|
◆ addRecentChatter()
void chatterino::ChatterSet::addRecentChatter |
( |
const QString & |
userName | ) |
|
Inserts a user name if it isn't contained. Doesn't replace the original if the casing hasn't changed.
◆ contains()
bool chatterino::ChatterSet::contains |
( |
const QString & |
userName | ) |
const |
Checks if a username is in the list.
◆ filterByPrefix()
std::vector< QString > chatterino::ChatterSet::filterByPrefix |
( |
const QString & |
prefix | ) |
const |
Get filtered usernames by a prefix for autocompletion. Contained items are in mixed case if available.
◆ updateOnlineChatters()
void chatterino::ChatterSet::updateOnlineChatters |
( |
const std::unordered_set< QString > & |
lowerCaseUsernames | ) |
|
Removes chatters that aren't online anymore. Adds chatters that aren't in the list yet.
◆ chatterLimit
constexpr size_t chatterino::ChatterSet::chatterLimit = 2000 |
|
static |
The limit of how many chatters can be saved for a channel.
The documentation for this class was generated from the following files: