mirror-chatterino2/channels.h

40 lines
646 B
C
Raw Normal View History

#ifndef CHANNELS_H
#define CHANNELS_H
#include "channel.h"
2017-01-18 21:30:23 +01:00
namespace chatterino {
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;
};
2017-01-18 21:30:23 +01:00
}
#endif // CHANNELS_H