[iOS] Export (kml, ge0, geo) Logging

This commit is contained in:
Kirill Zhdanovich 2013-04-29 15:42:25 +03:00 committed by Alex Zolotarev
parent 39e6fe2342
commit bad678cd5f
2 changed files with 9 additions and 0 deletions

View file

@ -2,6 +2,7 @@
#import "BalloonView.h"
#import "SelectSetVC.h"
#import "SelectColorVC.h"
#import "Statistics.h"
#define TEXTFIELD_TAG 999
@ -295,11 +296,13 @@
- (void)mailComposeController:(MFMailComposeViewController*)controller didFinishWithResult:(MFMailComposeResult)result error:(NSError*)error
{
[[Statistics instance] logEvent:@"ge0(zero) MAIL Export"];
[self dismissModalViewControllerAnimated:YES];
}
-(void)messageComposeViewController:(MFMessageComposeViewController *)controller didFinishWithResult:(MessageComposeResult)result
{
[[Statistics instance] logEvent:@"ge0(zero) MESSAGE Export"];
[self dismissModalViewControllerAnimated:YES];
}

View file

@ -3,6 +3,7 @@
#import "SettingsManager.h"
#import "Preferences.h"
#import "LocationManager.h"
#import "Statistics.h"
#include <sys/xattr.h>
@ -175,6 +176,10 @@ void InitLocalizedStrings()
{
[self showParsedBookmarkOnMap: request];
m_didOpenedWithUrl = YES;
if ([scheme isEqualToString:@"geo"])
[[Statistics instance] logEvent:@"geo Import"];
if ([scheme isEqualToString:@"ge0"])
[[Statistics instance] logEvent:@"ge0(zero) Import"];
return YES;
}
}
@ -188,6 +193,7 @@ void InitLocalizedStrings()
[[NSNotificationCenter defaultCenter] postNotificationName:@"KML file added" object:nil];
[self showLoadFileAlertIsSuccessful:YES];
m_didOpenedWithUrl = YES;
[[Statistics instance] logEvent:@"KML Import"];
return YES;
}
NSLog(@"Scheme %@ is not supported", scheme);