mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
34 lines
619 B
C++
34 lines
619 B
C++
#pragma once
|
|
|
|
#include "common/Channel.hpp"
|
|
#include "common/ChannelChatters.hpp"
|
|
|
|
namespace chatterino {
|
|
|
|
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;
|
|
};
|
|
|
|
} // namespace chatterino
|