diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-02-10 08:51:25 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-02-10 08:55:40 +0100 |
commit | 660ee77c9875ad71d4189e8643f679f574687528 (patch) | |
tree | fefb5374c8f99242dfbe1abd37de4e93ccb1dfb3 /common/clientapi.cpp | |
parent | 4ee8a44bf4dda625b4d2f58f127869557c1af959 (diff) | |
download | sink-660ee77c9875ad71d4189e8643f679f574687528.tar.gz sink-660ee77c9875ad71d4189e8643f679f574687528.zip |
Renamed Resources to ResourceControl
Diffstat (limited to 'common/clientapi.cpp')
-rw-r--r-- | common/clientapi.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/common/clientapi.cpp b/common/clientapi.cpp index f67606e..cbbfdd8 100644 --- a/common/clientapi.cpp +++ b/common/clientapi.cpp | |||
@@ -155,7 +155,7 @@ KAsync::Job<void> Store::remove(const DomainType &domainObject) | |||
155 | }); | 155 | }); |
156 | } | 156 | } |
157 | 157 | ||
158 | KAsync::Job<void> Resources::shutdown(const QByteArray &identifier) | 158 | KAsync::Job<void> ResourceControl::shutdown(const QByteArray &identifier) |
159 | { | 159 | { |
160 | Trace() << "shutdown " << identifier; | 160 | Trace() << "shutdown " << identifier; |
161 | auto time = QSharedPointer<QTime>::create(); | 161 | auto time = QSharedPointer<QTime>::create(); |
@@ -178,7 +178,7 @@ KAsync::Job<void> Resources::shutdown(const QByteArray &identifier) | |||
178 | .template then<void>([](){}); | 178 | .template then<void>([](){}); |
179 | } | 179 | } |
180 | 180 | ||
181 | KAsync::Job<void> Resources::start(const QByteArray &identifier) | 181 | KAsync::Job<void> ResourceControl::start(const QByteArray &identifier) |
182 | { | 182 | { |
183 | Trace() << "start " << identifier; | 183 | Trace() << "start " << identifier; |
184 | auto time = QSharedPointer<QTime>::create(); | 184 | auto time = QSharedPointer<QTime>::create(); |
@@ -221,7 +221,7 @@ KAsync::Job<void> Store::synchronize(const Sink::Query &query) | |||
221 | .template then<void>([](){}); | 221 | .template then<void>([](){}); |
222 | } | 222 | } |
223 | 223 | ||
224 | KAsync::Job<void> Resources::flushMessageQueue(const QByteArrayList &resourceIdentifier) | 224 | KAsync::Job<void> ResourceControl::flushMessageQueue(const QByteArrayList &resourceIdentifier) |
225 | { | 225 | { |
226 | Trace() << "flushMessageQueue" << resourceIdentifier; | 226 | Trace() << "flushMessageQueue" << resourceIdentifier; |
227 | return KAsync::iterate(resourceIdentifier) | 227 | return KAsync::iterate(resourceIdentifier) |
@@ -237,7 +237,7 @@ KAsync::Job<void> Resources::flushMessageQueue(const QByteArrayList &resourceIde | |||
237 | .template then<void>([](){}); | 237 | .template then<void>([](){}); |
238 | } | 238 | } |
239 | 239 | ||
240 | KAsync::Job<void> Resources::flushReplayQueue(const QByteArrayList &resourceIdentifier) | 240 | KAsync::Job<void> ResourceControl::flushReplayQueue(const QByteArrayList &resourceIdentifier) |
241 | { | 241 | { |
242 | return flushMessageQueue(resourceIdentifier); | 242 | return flushMessageQueue(resourceIdentifier); |
243 | } | 243 | } |
@@ -304,7 +304,7 @@ KAsync::Job<QList<typename DomainType::Ptr> > Store::fetch(const Sink::Query &qu | |||
304 | } | 304 | } |
305 | 305 | ||
306 | template <class DomainType> | 306 | template <class DomainType> |
307 | KAsync::Job<void> Resources::inspect(const Inspection &inspectionCommand) | 307 | KAsync::Job<void> ResourceControl::inspect(const Inspection &inspectionCommand) |
308 | { | 308 | { |
309 | auto resource = inspectionCommand.resourceIdentifier; | 309 | auto resource = inspectionCommand.resourceIdentifier; |
310 | 310 | ||
@@ -375,7 +375,7 @@ void Notifier::registerHandler(std::function<void(const Notification &)> handler | |||
375 | template KAsync::Job<void> Store::create<T>(const T &domainObject); \ | 375 | template KAsync::Job<void> Store::create<T>(const T &domainObject); \ |
376 | template KAsync::Job<void> Store::modify<T>(const T &domainObject); \ | 376 | template KAsync::Job<void> Store::modify<T>(const T &domainObject); \ |
377 | template QSharedPointer<QAbstractItemModel> Store::loadModel<T>(Query query); \ | 377 | template QSharedPointer<QAbstractItemModel> Store::loadModel<T>(Query query); \ |
378 | template KAsync::Job<void> Resources::inspect<T>(const Inspection &); \ | 378 | template KAsync::Job<void> ResourceControl::inspect<T>(const Inspection &); \ |
379 | template KAsync::Job<T> Store::fetchOne<T>(const Query &); \ | 379 | template KAsync::Job<T> Store::fetchOne<T>(const Query &); \ |
380 | template KAsync::Job<QList<T::Ptr> > Store::fetchAll<T>(const Query &); \ | 380 | template KAsync::Job<QList<T::Ptr> > Store::fetchAll<T>(const Query &); \ |
381 | template KAsync::Job<QList<T::Ptr> > Store::fetch<T>(const Query &, int); \ | 381 | template KAsync::Job<QList<T::Ptr> > Store::fetch<T>(const Query &, int); \ |