diff options
Diffstat (limited to 'iphone/Maps/Classes/SearchView.h')
-rw-r--r-- | iphone/Maps/Classes/SearchView.h | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/iphone/Maps/Classes/SearchView.h b/iphone/Maps/Classes/SearchView.h index 7911bd5431..19edef9b1e 100644 --- a/iphone/Maps/Classes/SearchView.h +++ b/iphone/Maps/Classes/SearchView.h @@ -1,6 +1,10 @@ -#import <UIKit/UIKit.h> +#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, @@ -13,21 +17,31 @@ typedef NS_ENUM(NSUInteger, SearchViewState) { @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 (nonatomic) SearchBar * searchBar; +@property (nonnull, nonatomic) SearchBar * searchBar; - (void)setState:(SearchViewState)state animated:(BOOL)animated; - (CGFloat)defaultSearchBarMinY; -@property (weak, nonatomic) id <SearchViewDelegate> delegate; +@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 |