refactored irc

This commit is contained in:
fourtf
2018-02-05 15:11:50 +01:00
parent 12b30eb2ed
commit b351c40d29
56 changed files with 1397 additions and 1154 deletions
+15 -1
View File
@@ -23,9 +23,14 @@ Channel::Channel(const QString &_name)
{
}
Channel::~Channel()
{
this->destroyed.invoke();
}
bool Channel::isEmpty() const
{
return false;
return this->name.isEmpty();
}
messages::LimitedQueueSnapshot<messages::MessagePtr> Channel::getMessageSnapshot()
@@ -103,4 +108,13 @@ void Channel::sendMessage(const QString &message)
{
}
std::shared_ptr<Channel> Channel::getEmpty()
{
static std::shared_ptr<Channel> channel(new Channel(""));
return channel;
}
void Channel::onConnected()
{
}
} // namespace chatterino