diff options
Diffstat (limited to 'iphone/Maps/Classes/SearchVC.h')
-rw-r--r-- | iphone/Maps/Classes/SearchVC.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/iphone/Maps/Classes/SearchVC.h b/iphone/Maps/Classes/SearchVC.h new file mode 100644 index 0000000000..ccabe67566 --- /dev/null +++ b/iphone/Maps/Classes/SearchVC.h @@ -0,0 +1,22 @@ +#import <UIKit/UIKit.h> + +#include "../../map/framework.hpp" + +#include "../../std/vector.hpp" +#include "../../std/function.hpp" +#include "../../std/string.hpp" + +namespace search { class Result; } + +typedef function<void (string const &, SearchCallbackT)> SearchF; +typedef function<void (m2::RectD)> ShowRectF; + +@interface SearchVC : UIViewController + <UISearchBarDelegate, UITableViewDelegate, UITableViewDataSource> +{ + vector<search::Result> m_results; +} + +- (id)initWithSearchFunc:(SearchF)s andShowRectFunc:(ShowRectF)r; + +@end |