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

24 lines
453 B
C++
Raw Normal View History

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