diff options
Diffstat (limited to 'iphone/Maps/Classes/MWMPlacePageProtocol.h')
-rw-r--r-- | iphone/Maps/Classes/MWMPlacePageProtocol.h | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/iphone/Maps/Classes/MWMPlacePageProtocol.h b/iphone/Maps/Classes/MWMPlacePageProtocol.h new file mode 100644 index 0000000000..af0e6a4c35 --- /dev/null +++ b/iphone/Maps/Classes/MWMPlacePageProtocol.h @@ -0,0 +1,58 @@ +#import "MWMMapViewControlsManager.h" + +#include "Framework.h" + +@class MWMPlacePageEntity, MWMViewController; + +@protocol MWMActionBarProtocol <NSObject> + +- (void)routeFrom; +- (void)routeTo; + +- (void)share; + +- (void)addBookmark; +- (void)removeBookmark; + +- (void)call; +- (void)book:(BOOL)isDecription; + +- (void)apiBack; + +@end + +@protocol MWMPlacePageButtonsProtocol <NSObject> + +- (void)editPlace; +- (void)addPlace; +- (void)addBusiness; +- (void)book:(BOOL)isDescription; +- (void)editBookmark; + +@end + +struct FeatureID; + +@protocol MWMFeatureHolder <NSObject> + +- (FeatureID const &)featureId; + +@end + +@protocol MWMPlacePageProtocol <MWMActionBarProtocol, MWMPlacePageButtonsProtocol, MWMFeatureHolder> + +@property(weak, nonatomic, readonly) MWMViewController * ownerViewController; +@property(nonatomic) CGFloat topBound; +@property(nonatomic) CGFloat leftBound; + +- (instancetype)initWithViewController:(MWMViewController *)viewController; +- (void)showPlacePage:(place_page::Info const &)info; +- (void)mwm_refreshUI; +- (void)dismissPlacePage; +- (void)hidePlacePage; +- (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)orientation; +- (void)viewWillTransitionToSize:(CGSize)size + withTransitionCoordinator:(id<UIViewControllerTransitionCoordinator>)coordinator; +- (void)addSubviews:(NSArray *)views withNavigationController:(UINavigationController *)controller; + +@end |