emit isConnectedChanged();
}
if (_state == Connected) {
- setRetryCount(0);
+ resetRetryCount();
}
}
_lastCheckConnectionTimer.start();
};
- const auto resetRetryCount = [this]() {
+ const auto resetRetryConnection = [this]() {
qCInfo(lcAccountState) << "reset retry count";
- setRetryCount(0);
+ resetRetryCount();
_lastCheckConnectionTimer.invalidate();
_lastCheckConnectionTimer.start();
};
case ConnectionValidator::Connected:
if (_state != Connected) {
setState(Connected);
- resetRetryCount();
+ resetRetryConnection();
// Get the Apps available on the server.
fetchNavigationApps();
job->getNavigationApps();
}
-void AccountState::setRetryCount(int count)
+void AccountState::resetRetryCount()
{
- _retryCount = count;
+ _retryCount = 0;
}
void AccountState::slotEtagResponseHeaderReceived(const QByteArray &value, int statusCode){
State state() const;
static QString stateString(State state);
- int retryCount() const;
- void increaseRetryCount();
-
bool isSignedOut() const;
AccountAppList appList() const;
void setState(State state);
void fetchNavigationApps();
- void setRetryCount(int count);
+ int retryCount() const;
+ void increaseRetryCount();
+ void resetRetryCount();
signals:
void stateChanged(State state);