2018-06-04 21:05:18 +02:00
|
|
|
#pragma once
|
|
|
|
|
2018-06-04 21:37:19 +02:00
|
|
|
#include <pajlada/signals/signal.hpp>
|
|
|
|
|
2018-06-04 21:05:18 +02:00
|
|
|
#include <IrcConnection>
|
2018-06-04 21:37:19 +02:00
|
|
|
#include <QTimer>
|
2018-06-04 21:05:18 +02:00
|
|
|
|
|
|
|
namespace chatterino {
|
|
|
|
|
|
|
|
class IrcConnection : public Communi::IrcConnection
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
IrcConnection(QObject *parent = nullptr);
|
2018-06-04 21:37:19 +02:00
|
|
|
|
|
|
|
pajlada::Signals::NoArgSignal reconnectRequested;
|
|
|
|
|
|
|
|
private:
|
|
|
|
QTimer pingTimer_;
|
|
|
|
QTimer reconnectTimer_;
|
|
|
|
std::atomic<bool> recentlyReceivedMessage_{true};
|
2018-06-04 21:05:18 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace chatterino
|