blob: 6f6fd169436f0a3eb19e2edad2578948a1f59d18 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
#import "DownloadIndicatorProtocol.h"
#import "MWMNavigationController.h"
#include "indexer/map_style.hpp"
#include "storage/index.hpp"
@class MapViewController;
@class LocationManager;
typedef NS_ENUM(NSUInteger, MWMRoutingPlaneMode)
{
MWMRoutingPlaneModeNone,
MWMRoutingPlaneModePlacePage,
MWMRoutingPlaneModeSearchSource,
MWMRoutingPlaneModeSearchDestination
};
@interface MapsAppDelegate : UIResponder<UIApplicationDelegate, UIAlertViewDelegate,
DownloadIndicatorProtocol>
{
NSInteger m_activeDownloadsCounter;
UIBackgroundTaskIdentifier m_backgroundTask;
UIBackgroundTaskIdentifier m_editorUploadBackgroundTask;
UIAlertView * m_loadingAlertView;
}
@property (nonatomic) UIWindow * window;
@property (nonatomic) MWMRoutingPlaneMode routingPlaneMode;
@property (nonatomic, readonly) MapViewController * mapViewController;
@property (nonatomic, readonly) LocationManager * locationManager;
@property (nonatomic, readonly) BOOL isDaemonMode;
+ (MapsAppDelegate *)theApp;
- (void)enableStandby;
- (void)disableStandby;
+ (void)customizeAppearance;
+ (void)customizeAppearanceForNavigationBar:(UINavigationBar *)navigationBar;
- (void)disableDownloadIndicator;
- (void)enableDownloadIndicator;
- (void)showMap;
- (void)startMapStyleChecker;
- (void)stopMapStyleChecker;
- (void)showAlertIfRequired;
+ (void)setAutoNightModeOff:(BOOL)off;
+ (BOOL)isAutoNightMode;
+ (void)resetToDefaultMapStyle;
+ (void)changeMapStyleIfNedeed;
- (void)setMapStyle:(MapStyle)mapStyle;
@end
|