[ios] Added show node support.

This commit is contained in:
Ilya Grechuhin 2016-03-09 10:11:58 +03:00 committed by Sergey Yershov
parent 0b31cdfa13
commit 508ac2458f
6 changed files with 13 additions and 7 deletions

View file

@ -497,8 +497,13 @@ using namespace storage;
- (void)showNode:(storage::TCountryId const &)countryId
{
[MapsAppDelegate showNode:countryId];
[Statistics logEvent:kStatDownloaderMapAction
withParameters:@{
kStatAction : kStatExplore,
kStatFrom : kStatDownloader,
}];
[self.navigationController popToRootViewControllerAnimated:YES];
[MWMStorage showNode:countryId];
}
#pragma mark - Managing the Status Bar

View file

@ -32,7 +32,6 @@ typedef NS_ENUM(NSUInteger, MWMRoutingPlaneMode)
@property (nonatomic, readonly) LocationManager * m_locationManager;
+ (MapsAppDelegate *)theApp;
+ (void)showNode:(storage::TCountryId const &)countryId;
- (void)enableStandby;
- (void)disableStandby;

View file

@ -117,11 +117,6 @@ using namespace osm_auth_ios;
return (MapsAppDelegate *)[UIApplication sharedApplication].delegate;
}
+ (void)showNode:(storage::TCountryId const &)countryId
{
// TODO (igrechuhin) Add implementation
}
#pragma mark - Notifications
- (void)registerNotifications:(UIApplication *)application launchOptions:(NSDictionary *)launchOptions

View file

@ -9,5 +9,6 @@
+ (void)updateNode:(storage::TCountryId const &)countryId alertController:(MWMAlertViewController *)alertController;
+ (void)deleteNode:(storage::TCountryId const &)countryId alertController:(MWMAlertViewController *)alertController;
+ (void)cancelDownloadNode:(storage::TCountryId const &)countryId;
+ (void)showNode:(storage::TCountryId const &)countryId;
@end

View file

@ -51,6 +51,11 @@
GetFramework().Storage().CancelDownloadNode(countryId);
}
+ (void)showNode:(storage::TCountryId const &)countryId
{
GetFramework().ShowNode(countryId);
}
+ (void)countryId:(storage::TCountryId const &)countryId alertController:(MWMAlertViewController *)alertController performAction:(TMWMVoidBlock)action
{
switch (Platform::ConnectionStatus())

View file

@ -69,6 +69,7 @@ static NSString * const kStatError = @"Error";
static NSString * const kStatExpand = @"Expand";
static NSString * const kStatExpandCategory = @"Expand category";
static NSString * const kStatExpandLargeCountry = @"Expand large country";
static NSString * const kStatExplore = @"Explore";
static NSString * const kStatExport = @"Export";
static NSString * const kStatFacebook = @"Facebook";
static NSString * const kStatFrom = @"from";