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

33 lines
882 B
C++
Raw Normal View History

2018-02-05 15:11:50 +01:00
#pragma once
2018-06-26 14:09:39 +02:00
#include "providers/irc/AbstractIrcServer.hpp"
2018-06-26 17:20:03 +02:00
#include "providers/irc/IrcAccount.hpp"
2018-02-05 15:11:50 +01:00
namespace chatterino {
2018-06-26 16:37:59 +02:00
struct IrcConnection_;
class IrcServer : public AbstractIrcServer
{
public:
explicit IrcServer(const IrcConnection_ &data);
IrcServer(const IrcConnection_ &data,
const std::vector<std::weak_ptr<Channel>> &restoreChannels);
~IrcServer() override;
int getId();
// AbstractIrcServer interface
protected:
void initializeConnection(IrcConnection *connection, bool isRead,
bool isWrite) override;
std::shared_ptr<Channel> createChannel(const QString &channelName) override;
bool hasSeparateWriteConnection() const override;
private:
// pointer so we don't have to circle include Irc2.hpp
IrcConnection_ *data_;
};
2018-02-05 15:11:50 +01:00
} // namespace chatterino