X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fcore%2Fnetworkconnection.h;h=111ffe76710047d1779d2af7911bc0861c57dec0;hb=07268765f40e145ca292a32de6aeb367dc5169a1;hp=c28da180a58383ad3ae88b594d1243bd82a80634;hpb=07171f8337e7236c3ac3432352b41ad3c53e077b;p=quassel.git diff --git a/src/core/networkconnection.h b/src/core/networkconnection.h index c28da180..111ffe76 100644 --- a/src/core/networkconnection.h +++ b/src/core/networkconnection.h @@ -39,8 +39,6 @@ #include "network.h" #include "signalproxy.h" -class Network; - class IrcServerHandler; class UserInputHandler; class CtcpHandler; @@ -140,6 +138,7 @@ private slots: void sendPerform(); void autoReconnectSettingsChanged(); void doAutoReconnect(); + void sendPing(); void sendAutoWho(); void startAutoWhoCycle(); void nickChanged(const QString &newNick, const QString &oldNick); // this signal is inteded to rename query buffers in the storage backend @@ -176,11 +175,16 @@ private: QTimer _socketCloseTimer; + /* this flag triggers quitRequested() once the socket is closed + * it is needed to determine whether or not the connection needs to be + *in the automatic session restore. */ bool _quitRequested; bool _previousConnectionAttemptFailed; int _lastUsedServerlistIndex; + QTimer _pingTimer; + bool _autoWhoEnabled; QStringList _autoWhoQueue; QHash _autoWhoInProgress; @@ -197,8 +201,6 @@ private: void writeToSocket(QByteArray s); - - class ParseError : public Exception { public: ParseError(QString cmd, QString prefix, QStringList params);