X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fclient%2Fcoreconnection.h;h=11c8d500afde784b9e40f753436b829ca4cd2b4e;hb=615c5621f63360ef11c9cc3519c0462d8b5ec85b;hp=6a3f37bf9343d6a3eb0267aa1d56d4014d3f2595;hpb=f9f7524c41eb5668f3172cfddaa4d50badcd7fff;p=quassel.git diff --git a/src/client/coreconnection.h b/src/client/coreconnection.h index 6a3f37bf..11c8d500 100644 --- a/src/client/coreconnection.h +++ b/src/client/coreconnection.h @@ -71,6 +71,9 @@ public: inline int progressValue() const; inline QString progressText() const; + //! Check if we consider the last connect as reconnect + inline bool wasReconnect() const { return _wasReconnect; } + #ifdef HAVE_SSL inline const QSslSocket *sslSocket() const; #endif @@ -84,6 +87,7 @@ signals: void stateChanged(CoreConnection::ConnectionState); void encrypted(bool isEncrypted = true); void synchronized(); + void lagUpdated(int msecs); void connectionError(const QString &errorMsg); void connectionErrorPopup(const QString &errorMsg); @@ -175,12 +179,14 @@ private: QTimer _reconnectTimer; bool _wantReconnect; - QSet _netsToSync; + QSet _netsToSync; int _numNetsToSync; int _progressMinimum, _progressMaximum, _progressValue; QString _progressText; QString _coreInfoString(const QVariantMap &); + bool _wasReconnect; + bool _requestedDisconnect; inline CoreAccountModel *accountModel() const;