Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCamila San <hello@camila.codes>2018-04-10 16:38:59 +0300
committerCamila San <hello@camila.codes>2018-05-07 19:03:51 +0300
commit77ebccee72b305f6fbca51a413cd7700a348926b (patch)
treefac373ac0c040a46c36a08286394e6c1c0d7fb5c /src/gui/accountstate.h
parentd7286872f6d170762d619d160897dd75b67199ed (diff)
Adds methods to set/get navigation apps etag response header.
Signed-off-by: Camila San <hello@camila.codes>
Diffstat (limited to 'src/gui/accountstate.h')
-rw-r--r--src/gui/accountstate.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gui/accountstate.h b/src/gui/accountstate.h
index 0aca22ce2..96b840c64 100644
--- a/src/gui/accountstate.h
+++ b/src/gui/accountstate.h
@@ -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