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