Welcome to mirror list, hosted at ThFree Co, Russian Federation.

DownloaderParentVC.h « Maps « iphone - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1a3c5dc970e18b30e1360312430d74d3e0685563 (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

#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) TMapOptions selectedInActionSheetOptions;
@property (nonatomic) NSMutableDictionary * actionSheetActions;

// virtual
- (NSString *)parentTitle;
- (NSString *)selectedMapName;
- (uint64_t)selectedMapSizeWithOptions:(TMapOptions)options;
- (TStatus)selectedMapStatus;
- (TMapOptions)selectedMapOptions;
- (void)performAction:(DownloaderAction)action withSizeCheck:(BOOL)check;

@end