mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
24 lines
453 B
C++
24 lines
453 B
C++
#pragma once
|
|
|
|
#include <pajlada/signals/signal.hpp>
|
|
|
|
#include <IrcConnection>
|
|
#include <QTimer>
|
|
|
|
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};
|
|
};
|
|
|
|
} // namespace chatterino
|