2017-01-16 03:15:07 +01:00
|
|
|
#ifndef CHANNELS_H
|
|
|
|
#define CHANNELS_H
|
|
|
|
|
|
|
|
#include "channel.h"
|
|
|
|
|
2017-01-18 21:30:23 +01:00
|
|
|
namespace chatterino {
|
|
|
|
|
2017-01-16 03:15:07 +01:00
|
|
|
class Channels
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
static Channel *
|
2017-01-18 04:33:30 +01:00
|
|
|
getWhispers()
|
2017-01-16 03:15:07 +01:00
|
|
|
{
|
2017-01-18 04:33:30 +01:00
|
|
|
return &whispers;
|
2017-01-16 03:15:07 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
static Channel *
|
2017-01-18 04:33:30 +01:00
|
|
|
getMentions()
|
2017-01-16 03:15:07 +01:00
|
|
|
{
|
2017-01-18 04:33:30 +01:00
|
|
|
return &mentions;
|
2017-01-16 03:15:07 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
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-16 03:15:07 +01:00
|
|
|
|
2017-01-18 04:33:30 +01:00
|
|
|
static QMap<QString, std::tuple<Channel *, int>> channels;
|
2017-01-16 03:15:07 +01:00
|
|
|
};
|
2017-01-18 21:30:23 +01:00
|
|
|
}
|
2017-01-16 03:15:07 +01:00
|
|
|
#endif // CHANNELS_H
|