mirror-chatterino2/channels.h

38 lines
621 B
C
Raw Normal View History

#ifndef CHANNELS_H
#define CHANNELS_H
#include "channel.h"
class Channels
{
public:
static Channel *
2017-01-18 04:33:30 +01:00
getWhispers()
{
2017-01-18 04:33:30 +01:00
return &whispers;
}
static Channel *
2017-01-18 04:33:30 +01:00
getMentions()
{
2017-01-18 04:33:30 +01:00
return &mentions;
}
static Channel *addChannel(const QString &channel);
static Channel *getChannel(const QString &channel);
static void removeChannel(const QString &channel);
private:
Channels()
{
}
2017-01-18 04:33:30 +01:00
static Channel whispers;
static Channel mentions;
static Channel empty;
2017-01-18 04:33:30 +01:00
static QMap<QString, std::tuple<Channel *, int>> channels;
};
#endif // CHANNELS_H