projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
taming and reenabling the irc timeout detection
[quassel.git]
/
src
/
core
/
corenetwork.h
diff --git
a/src/core/corenetwork.h
b/src/core/corenetwork.h
index
f50717b
..
42ad12d
100644
(file)
--- a/
src/core/corenetwork.h
+++ b/
src/core/corenetwork.h
@@
-106,8
+106,7
@@
public slots:
Server usedServer() const;
Server usedServer() const;
- inline void resetPong() { _gotPong = true; }
- inline bool gotPong() { return _gotPong; }
+ inline void resetPingTimeout() { _lastPingTime = 0; }
signals:
void recvRawServerMsg(QString);
signals:
void recvRawServerMsg(QString);
@@
-135,6
+134,8
@@
private slots:
void restoreUserModes();
void doAutoReconnect();
void sendPing();
void restoreUserModes();
void doAutoReconnect();
void sendPing();
+ void enablePingTimeout();
+ void disablePingTimeout();
void sendAutoWho();
void startAutoWhoCycle();
void sendAutoWho();
void startAutoWhoCycle();
@@
-176,7
+177,7
@@
private:
int _lastUsedServerIndex;
QTimer _pingTimer;
int _lastUsedServerIndex;
QTimer _pingTimer;
-
bool _gotPong
;
+
uint _lastPingTime
;
bool _autoWhoEnabled;
QStringList _autoWhoQueue;
bool _autoWhoEnabled;
QStringList _autoWhoQueue;