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

promo_delegate.hpp « map - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e81ec6c7127193b798d041472fac172cfb6985a8 (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
#pragma once

#include "partners_api/promo_api.hpp"

#include "geometry/point2d.hpp"

#include <string>

class DataSource;

namespace search
{
class CityFinder;
}

class PromoDelegate : public promo::Api::Delegate
{
public:
  PromoDelegate(DataSource const & dataSource, search::CityFinder & cityFinder);

  std::string GetCityId(m2::PointD const & point) override;

private:
  DataSource const & m_dataSource;
  search::CityFinder & m_cityFinder;
};