chatwidgetview refreshes on new message

This commit is contained in:
fourtf
2017-01-16 03:15:07 +01:00
parent d924f5bd8d
commit 1194905646
21 changed files with 321 additions and 196 deletions
+36
View File
@@ -0,0 +1,36 @@
#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;
static QMap<QString, std::tuple<Channel *, int>> m_channels;
};
#endif // CHANNELS_H