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