mirror-chatterino2/channels.h

38 lines
627 B
C
Raw Normal View History

#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;
2017-01-17 00:15:44 +01:00
static Channel m_empty;
static QMap<QString, std::tuple<Channel *, int>> m_channels;
};
#endif // CHANNELS_H