mirror-chatterino2/src/providers/irc/IrcChannel2.hpp

30 lines
537 B
C++
Raw Normal View History

2018-02-05 15:11:50 +01:00
#pragma once
#include "common/Channel.hpp"
2019-09-17 12:10:38 +02:00
#include "common/ChannelChatters.hpp"
2018-02-05 15:11:50 +01:00
namespace chatterino {
2018-06-26 16:37:59 +02:00
class Irc;
class IrcServer;
2019-09-17 12:10:38 +02:00
class IrcChannel : public Channel, public ChannelChatters
{
public:
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
IrcServer *server();
private:
void setServer(IrcServer *server);
IrcServer *server_;
friend class Irc;
};
2018-02-05 15:11:50 +01:00
} // namespace chatterino