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

SearchView.h « Classes « Maps « iphone - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 19edef9b1e4d67419ac9abda10f23bab94531466 (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 "MWMNavigationDelegate.h"
#import "SearchBar.h"
#import <UIKit/UIKit.h>

#include "platform/country_defines.hpp"
#include "storage/index.hpp"

typedef NS_ENUM(NSUInteger, SearchViewState) {
  SearchViewStateHidden,
  SearchViewStateResults,
  SearchViewStateAlpha,
  SearchViewStateFullscreen,
};

@class MWMMapViewControlsManager;

@protocol SearchViewDelegate <NSObject>

@property (nonatomic, readonly) BOOL haveCurrentMap;

- (void)searchViewWillEnterState:(SearchViewState)state;
- (void)searchViewDidEnterState:(SearchViewState)state;

- (void)startMapDownload:(storage::TIndex const &)index type:(TMapOptions)type;
- (void)stopMapsDownload;
- (void)restartMapDownload:(storage::TIndex const &)index;

@end

@interface SearchView : UIView

@property (nonnull, nonatomic) SearchBar * searchBar;

- (void)setState:(SearchViewState)state animated:(BOOL)animated;
- (CGFloat)defaultSearchBarMinY;

@property (nonnull, weak, nonatomic) id <SearchViewDelegate, MWMNavigationDelegate> delegate;
@property (nonatomic, readonly) SearchViewState state;

@property (nonatomic, readonly) CGRect infoRect;

- (void)downloadProgress:(CGFloat)progress countryName:(nonnull NSString *)countryName;
- (void)downloadComplete;
- (void)downloadFailed;

@end