mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Adds methods to set/get navigation apps etag response header.
Signed-off-by: Camila San <hello@camila.codes>
This commit is contained in:
parent
d7286872f6
commit
77ebccee72
@ -187,6 +187,16 @@ void AccountState::setNotificationsEtagResponseHeader(const QByteArray &value)
|
||||
_notificationsEtagResponseHeader = value;
|
||||
}
|
||||
|
||||
QByteArray AccountState::navigationAppsEtagResponseHeader() const
|
||||
{
|
||||
return _navigationAppsEtagResponseHeader;
|
||||
}
|
||||
|
||||
void AccountState::setNavigationAppsEtagResponseHeader(const QByteArray &value)
|
||||
{
|
||||
_navigationAppsEtagResponseHeader = value;
|
||||
}
|
||||
|
||||
void AccountState::checkConnectivity()
|
||||
{
|
||||
if (isSignedOut() || _waitingForNewCredentials) {
|
||||
|
||||
@ -141,6 +141,16 @@ public:
|
||||
*/
|
||||
void setNotificationsEtagResponseHeader(const QByteArray &value);
|
||||
|
||||
/** Saves the ETag Response header from the last Navigation Apps api
|
||||
* request with statusCode 200.
|
||||
*/
|
||||
QByteArray navigationAppsEtagResponseHeader() const;
|
||||
|
||||
/** Returns the ETag Response header from the last Navigation Apps api
|
||||
* request with statusCode 200.
|
||||
*/
|
||||
void setNavigationAppsEtagResponseHeader(const QByteArray &value);
|
||||
|
||||
public slots:
|
||||
/// Triggers a ping to the server to update state and
|
||||
/// connection status and errors.
|
||||
@ -168,6 +178,7 @@ private:
|
||||
QElapsedTimer _timeSinceLastETagCheck;
|
||||
QPointer<ConnectionValidator> _connectionValidator;
|
||||
QByteArray _notificationsEtagResponseHeader;
|
||||
QByteArray _navigationAppsEtagResponseHeader;
|
||||
|
||||
/**
|
||||
* Starts counting when the server starts being back up after 503 or
|
||||
|
||||
Loading…
Reference in New Issue
Block a user