[new downloader][ios] Fixed build.

This commit is contained in:
Ilya Grechuhin 2016-02-05 14:10:29 +03:00 committed by Sergey Yershov
parent 210178c9f3
commit 8ab5510ca0
4 changed files with 6 additions and 5 deletions

View file

@ -209,7 +209,7 @@ extern NSString * const kSearchStateKey = @"SearchStateKey";
[self updateTopController];
NodeAttrs attrs;
GetFramework().Storage().GetNodeAttrs(countryId, attrs);
if (IsDownloadFailed(attrs.m_status))
if (attrs.m_status == NodeStatus::Error)
[self.downloadController setDownloadFailed];
if (self.state == MWMSearchManagerStateTableSearch || self.state == MWMSearchManagerStateMapSearch)
{
@ -220,7 +220,7 @@ extern NSString * const kSearchStateKey = @"SearchStateKey";
}
}
- (void)processCountry:(storage::TCountryId const &)countryId progress:(storage::LocalAndRemoteSizeT const &)progress
- (void)processCountry:(storage::TCountryId const &)countryId progress:(storage::TLocalAndRemoteSize const &)progress
{
using namespace storage;
CGFloat const normProgress = (CGFloat)progress.first / progress.second;

View file

@ -158,7 +158,7 @@ void loopWrappers(TObservers * observers, TLoopBlock block)
[observer processCountryEvent:countryId];
});
},
[observers](storage::TCountryId const & countryId, storage::LocalAndRemoteSizeT const & progress)
[observers](storage::TCountryId const & countryId, storage::TLocalAndRemoteSize const & progress)
{
loopWrappers(observers, ^(TStorageObserver observer)
{

View file

@ -38,6 +38,7 @@
@optional
- (void)processCountry:(storage::TCountryId const &)countryId progress:(storage::LocalAndRemoteSizeT const &)progress;
- (void)processCountry:(storage::TCountryId const &)countryId progress:(storage::TLocalAndRemoteSize const &)progress;
@end

View file

@ -89,7 +89,7 @@ static int gStorageSubscriptionId = kNotSubscribed;
});
[Alohalytics logEvent:kDownloadedSecondMapEvent];
}
}, [](storage::TCountryId const &, storage::LocalAndRemoteSizeT const &){});
}, [](storage::TCountryId const &, storage::TLocalAndRemoteSize const &){});
}
}
}