X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Fcoreconnection.h;h=11c8d500afde784b9e40f753436b829ca4cd2b4e;hp=6a3f37bf9343d6a3eb0267aa1d56d4014d3f2595;hb=4ae8f86c1ce452582d6fe576956c7c1bc1460adf;hpb=f9f7524c41eb5668f3172cfddaa4d50badcd7fff 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;