mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
38 lines
621 B
C++
38 lines
621 B
C++
#ifndef CHANNELS_H
|
|
#define CHANNELS_H
|
|
|
|
#include "channel.h"
|
|
|
|
class Channels
|
|
{
|
|
public:
|
|
static Channel *
|
|
getWhispers()
|
|
{
|
|
return &whispers;
|
|
}
|
|
|
|
static Channel *
|
|
getMentions()
|
|
{
|
|
return &mentions;
|
|
}
|
|
|
|
static Channel *addChannel(const QString &channel);
|
|
static Channel *getChannel(const QString &channel);
|
|
static void removeChannel(const QString &channel);
|
|
|
|
private:
|
|
Channels()
|
|
{
|
|
}
|
|
|
|
static Channel whispers;
|
|
static Channel mentions;
|
|
static Channel empty;
|
|
|
|
static QMap<QString, std::tuple<Channel *, int>> channels;
|
|
};
|
|
|
|
#endif // CHANNELS_H
|