X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Fcoreconnection.h;h=11c8d500afde784b9e40f753436b829ca4cd2b4e;hp=a06a810123f4044323237dbfa29ed4c67fcceb5c;hb=4ae8f86c1ce452582d6fe576956c7c1bc1460adf;hpb=d9f4d3f0eabd3767b4d25438319116f77c158c52 diff --git a/src/client/coreconnection.h b/src/client/coreconnection.h index a06a8101..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); @@ -181,6 +185,8 @@ private: QString _progressText; QString _coreInfoString(const QVariantMap &); + bool _wasReconnect; + bool _requestedDisconnect; inline CoreAccountModel *accountModel() const;