2019-09-08 22:27:57 +02:00
|
|
|
#pragma once
|
|
|
|
|
2019-09-18 13:03:16 +02:00
|
|
|
#include "common/Channel.hpp"
|
|
|
|
#include "common/ChannelChatters.hpp"
|
|
|
|
|
2019-09-08 22:27:57 +02:00
|
|
|
namespace chatterino {
|
|
|
|
|
2019-09-18 13:03:16 +02:00
|
|
|
class Irc;
|
|
|
|
class IrcServer;
|
|
|
|
|
|
|
|
class IrcChannel : public Channel, public ChannelChatters
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
explicit IrcChannel(const QString &name, IrcServer *server);
|
|
|
|
|
|
|
|
void sendMessage(const QString &message) override;
|
|
|
|
|
|
|
|
// server may be nullptr
|
|
|
|
IrcServer *server();
|
|
|
|
|
|
|
|
// Channel methods
|
|
|
|
virtual bool canReconnect() const override;
|
|
|
|
virtual void reconnect() override;
|
|
|
|
|
|
|
|
private:
|
|
|
|
void setServer(IrcServer *server);
|
|
|
|
|
|
|
|
IrcServer *server_;
|
|
|
|
|
|
|
|
friend class Irc;
|
|
|
|
};
|
|
|
|
|
2019-09-08 22:27:57 +02:00
|
|
|
} // namespace chatterino
|