blob: b6339b1eaf71badca8f3a354dfd6b8bc521fab90 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#pragma once
#include "map/framework.hpp"
#include "map/tips_api.hpp"
class TipsApiDelegate : public TipsApi::Delegate
{
public:
explicit TipsApiDelegate(Framework const & framework);
std::optional<m2::PointD> GetCurrentPosition() const override;
bool IsCountryLoaded(m2::PointD const & pt) const override;
bool HaveTransit(m2::PointD const & pt) const override;
double GetLastBackgroundTime() const override;
m2::PointD const & GetViewportCenter() const override;
storage::CountryId GetCountryId(m2::PointD const & pt) const override;
isolines::Quality GetIsolinesQuality(storage::CountryId const & countryId) const override;
private:
Framework const & m_framework;
};
|