X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcorenetwork.h;h=42ad12d583dd859ad3160242f95e6e711e93dd34;hp=f50717b0f06804a75d0a34813a28bc601b46236d;hb=f4693532403c2bcba592d322d0b5dbceaf76e758;hpb=bb799766223a6388e476f320ad74720c802b2d83 diff --git a/src/core/corenetwork.h b/src/core/corenetwork.h index f50717b0..42ad12d5 100644 --- a/src/core/corenetwork.h +++ b/src/core/corenetwork.h @@ -106,8 +106,7 @@ public slots: Server usedServer() const; - inline void resetPong() { _gotPong = true; } - inline bool gotPong() { return _gotPong; } + inline void resetPingTimeout() { _lastPingTime = 0; } signals: void recvRawServerMsg(QString); @@ -135,6 +134,8 @@ private slots: void restoreUserModes(); void doAutoReconnect(); void sendPing(); + void enablePingTimeout(); + void disablePingTimeout(); void sendAutoWho(); void startAutoWhoCycle(); @@ -176,7 +177,7 @@ private: int _lastUsedServerIndex; QTimer _pingTimer; - bool _gotPong; + uint _lastPingTime; bool _autoWhoEnabled; QStringList _autoWhoQueue;