diff options
Diffstat (limited to 'common/synchronizer.h')
-rw-r--r-- | common/synchronizer.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/common/synchronizer.h b/common/synchronizer.h index 32e93c4..b1ee122 100644 --- a/common/synchronizer.h +++ b/common/synchronizer.h | |||
@@ -21,6 +21,7 @@ | |||
21 | 21 | ||
22 | #include "sink_export.h" | 22 | #include "sink_export.h" |
23 | #include <QObject> | 23 | #include <QObject> |
24 | #include <QStack> | ||
24 | #include <KAsync/Async> | 25 | #include <KAsync/Async> |
25 | #include <domainadaptor.h> | 26 | #include <domainadaptor.h> |
26 | #include <query.h> | 27 | #include <query.h> |
@@ -193,6 +194,12 @@ protected: | |||
193 | Sink::Log::Context mLogCtx; | 194 | Sink::Log::Context mLogCtx; |
194 | 195 | ||
195 | private: | 196 | private: |
197 | QStack<ApplicationDomain::Status> mCurrentState; | ||
198 | void setStatusFromResult(const KAsync::Error &error, const QString &s, const QByteArray &requestId); | ||
199 | void setStatus(ApplicationDomain::Status busy, const QString &reason, const QByteArray requestId); | ||
200 | void resetStatus(const QByteArray requestId); | ||
201 | void setBusy(bool busy, const QString &reason, const QByteArray requestId); | ||
202 | |||
196 | void modifyIfChanged(Storage::EntityStore &store, const QByteArray &bufferType, const QByteArray &sinkId, const Sink::ApplicationDomain::ApplicationDomainType &entity); | 203 | void modifyIfChanged(Storage::EntityStore &store, const QByteArray &bufferType, const QByteArray &sinkId, const Sink::ApplicationDomain::ApplicationDomainType &entity); |
197 | KAsync::Job<void> processRequest(const SyncRequest &request); | 204 | KAsync::Job<void> processRequest(const SyncRequest &request); |
198 | KAsync::Job<void> processSyncQueue(); | 205 | KAsync::Job<void> processSyncQueue(); |