diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-09-13 12:42:31 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-09-13 12:42:31 +0200 |
commit | c12a9a09da59b9e418316dba02e6215cb55e47ee (patch) | |
tree | 05498d9a42e399bcca787f40c1fc473fb09e680e /common/domain/applicationdomaintype.h | |
parent | 55fe06979ceebe67553135b43aa47e70d931304b (diff) | |
parent | ebdb89b8bb482bbb5ecd544c3d38bef35fc7d820 (diff) | |
download | sink-c12a9a09da59b9e418316dba02e6215cb55e47ee.tar.gz sink-c12a9a09da59b9e418316dba02e6215cb55e47ee.zip |
Merge commit 'ebdb89b8bb482bbb5ecd544c3d38bef35fc7d820'v0.4.0
Diffstat (limited to 'common/domain/applicationdomaintype.h')
-rw-r--r-- | common/domain/applicationdomaintype.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/common/domain/applicationdomaintype.h b/common/domain/applicationdomaintype.h index 602d54c..f7fd07e 100644 --- a/common/domain/applicationdomaintype.h +++ b/common/domain/applicationdomaintype.h | |||
@@ -101,6 +101,7 @@ enum SINK_EXPORT ErrorCode { | |||
101 | LoginError, | 101 | LoginError, |
102 | ConfigurationError, | 102 | ConfigurationError, |
103 | TransmissionError, | 103 | TransmissionError, |
104 | ConnectionLostError, | ||
104 | }; | 105 | }; |
105 | 106 | ||
106 | enum SINK_EXPORT SuccessCode { | 107 | enum SINK_EXPORT SuccessCode { |
@@ -118,12 +119,14 @@ enum SINK_EXPORT SyncStatus { | |||
118 | * The status of an account or resource. | 119 | * The status of an account or resource. |
119 | * | 120 | * |
120 | * It is set as follows: | 121 | * It is set as follows: |
121 | * * By default the status is offline. | 122 | * * By default the status is no status. |
123 | * * If a connection to the server failed the status is Offline. | ||
122 | * * If a connection to the server could be established the status is Connected. | 124 | * * If a connection to the server could be established the status is Connected. |
123 | * * If an error occurred that keeps the resource from operating (so non transient), the resource enters the error state. | 125 | * * If an error occurred that keeps the resource from operating (so non transient), the resource enters the error state. |
124 | * * If a long running operation is started the resource goes to the busy state (and return to the previous state after that). | 126 | * * If a long running operation is started the resource goes to the busy state (and return to the previous state after that). |
125 | */ | 127 | */ |
126 | enum SINK_EXPORT Status { | 128 | enum SINK_EXPORT Status { |
129 | NoStatus, | ||
127 | OfflineStatus, | 130 | OfflineStatus, |
128 | ConnectedStatus, | 131 | ConnectedStatus, |
129 | BusyStatus, | 132 | BusyStatus, |
@@ -270,7 +273,17 @@ public: | |||
270 | bool hasProperty(const QByteArray &key) const; | 273 | bool hasProperty(const QByteArray &key) const; |
271 | 274 | ||
272 | QVariant getProperty(const QByteArray &key) const; | 275 | QVariant getProperty(const QByteArray &key) const; |
276 | |||
277 | /** | ||
278 | * Set a property and record a changed property | ||
279 | * | ||
280 | * If the propery is available and did not change the call will be ignored. | ||
281 | */ | ||
273 | void setProperty(const QByteArray &key, const QVariant &value); | 282 | void setProperty(const QByteArray &key, const QVariant &value); |
283 | |||
284 | /** | ||
285 | * Convenience method to set a reference property. | ||
286 | */ | ||
274 | void setProperty(const QByteArray &key, const ApplicationDomainType &value); | 287 | void setProperty(const QByteArray &key, const ApplicationDomainType &value); |
275 | 288 | ||
276 | QByteArray getBlobProperty(const QByteArray &key) const; | 289 | QByteArray getBlobProperty(const QByteArray &key) const; |