CLOUD: Refactor Request

Added ErrorResponse and ErrorCallback. Each Request now has an
ErrorCallback, which should be called instead of usual callback in case
of failure.
This commit is contained in:
Alexander Tkachev 2016-05-31 01:51:32 +06:00
parent 001b417f33
commit eb63b50b7f
29 changed files with 652 additions and 507 deletions

View file

@ -110,9 +110,9 @@ Storage *Manager::getCurrentStorage() {
return nullptr;
}
void Manager::syncSaves(Storage::BoolCallback callback) {
void Manager::syncSaves(Storage::BoolCallback callback, Networking::ErrorCallback errorCallback) {
Storage *storage = getCurrentStorage();
if (storage) storage->syncSaves(callback);
if (storage) storage->syncSaves(callback, errorCallback);
}
} // End of namespace Cloud