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-03-02 00:19:04 +0300
committerCamila San <hello@camila.codes>2018-03-02 00:19:04 +0300
commit621596f45a4a3faad1fd4f41f64d14ce06328f06 (patch)
tree6b8063a5bb51860dfbbc7da74ce018ef8e8f408b /src/gui/accountstate.h
parentd42401e36af0549fed93e67190021e1a2255f057 (diff)
Saves notifications ETag response header to use to request only new notifications.
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 0ee6ec96a..0aca22ce2 100644
--- a/src/gui/accountstate.h
+++ b/src/gui/accountstate.h
@@ -131,6 +131,16 @@ public:
*/
void tagLastSuccessfullETagRequest();
+ /** Saves the ETag Response header from the last Notifications api
+ * request with statusCode 200.
+ */
+ QByteArray notificationsEtagResponseHeader() const;
+
+ /** Returns the ETag Response header from the last Notifications api
+ * request with statusCode 200.
+ */
+ void setNotificationsEtagResponseHeader(const QByteArray &value);
+
public slots:
/// Triggers a ping to the server to update state and
/// connection status and errors.
@@ -157,6 +167,7 @@ private:
bool _waitingForNewCredentials;
QElapsedTimer _timeSinceLastETagCheck;
QPointer<ConnectionValidator> _connectionValidator;
+ QByteArray _notificationsEtagResponseHeader;
/**
* Starts counting when the server starts being back up after 503 or