blob: 98673ce5fe4d4e21da44a1d6c6f03e0cea3f55e7 (
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
|
#import <UIKit/UIKit.h>
#import "MapsObservers.h"
#import "MapCell.h"
#import "UIKitCategories.h"
#import "ViewController.h"
#include "storage/storage_defines.hpp"
#include "platform/preferred_languages.hpp"
typedef NS_ENUM(NSUInteger, DownloaderAction)
{
DownloaderActionDownloadAll,
DownloaderActionDownloadMap,
DownloaderActionDownloadCarRouting,
DownloaderActionDeleteAll,
DownloaderActionDeleteMap,
DownloaderActionDeleteCarRouting,
DownloaderActionCancelDownloading,
DownloaderActionZoomToCountry
};
using namespace storage;
@interface DownloaderParentVC : ViewController <MapCellDelegate, UIActionSheetDelegate, UIAlertViewDelegate, UITableViewDataSource, UITableViewDelegate>
- (BOOL)canDownloadSelectedMap;
- (UIActionSheet *)actionSheetToCancelDownloadingSelectedMap;
- (UIActionSheet *)actionSheetToPerformActionOnSelectedMap;
@property (nonatomic) UITableView * tableView;
// CountryTree methods accept int. It should be enough to store all countries.
@property (nonatomic) int selectedPosition;
@property (nonatomic) MapOptions selectedInActionSheetOptions;
@property (nonatomic) NSMutableDictionary * actionSheetActions;
// virtual
- (NSString *)parentTitle;
- (NSString *)selectedMapName;
- (uint64_t)selectedMapSizeWithOptions:(MapOptions)options;
- (TStatus)selectedMapStatus;
- (MapOptions)selectedMapOptions;
- (void)performAction:(DownloaderAction)action withSizeCheck:(BOOL)check;
@end
|