2018-02-05 15:11:50 +01:00
|
|
|
#pragma once
|
|
|
|
|
2019-09-09 22:26:14 +02:00
|
|
|
#include "common/Channel.hpp"
|
|
|
|
|
2018-02-05 15:11:50 +01:00
|
|
|
namespace chatterino {
|
2018-06-26 16:37:59 +02:00
|
|
|
|
2019-09-10 14:46:43 +02:00
|
|
|
class Irc;
|
|
|
|
class IrcServer;
|
|
|
|
|
2019-09-09 22:26:14 +02:00
|
|
|
class IrcChannel : public Channel
|
|
|
|
{
|
|
|
|
public:
|
2019-09-10 14:46:43 +02:00
|
|
|
explicit IrcChannel(const QString &name, IrcServer *server);
|
|
|
|
|
|
|
|
void sendMessage(const QString &message) override;
|
|
|
|
|
2019-09-14 18:38:09 +02:00
|
|
|
// server may be nullptr
|
2019-09-10 14:46:43 +02:00
|
|
|
IrcServer *server();
|
|
|
|
|
|
|
|
private:
|
|
|
|
void setServer(IrcServer *server);
|
|
|
|
|
|
|
|
IrcServer *server_;
|
|
|
|
|
|
|
|
friend class Irc;
|
2019-09-09 22:26:14 +02:00
|
|
|
};
|
|
|
|
|
2018-02-05 15:11:50 +01:00
|
|
|
} // namespace chatterino
|