mirror-chatterino2/channels.h
2017-01-18 21:30:23 +01:00

40 lines
646 B
C++

#ifndef CHANNELS_H
#define CHANNELS_H
#include "channel.h"
namespace chatterino {
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