platform_current_geo_location.h 580 B

1234567891011121314151617181920212223
  1. /*
  2. This file is part of Telegram Desktop,
  3. the official desktop application for the Telegram messaging service.
  4. For license and copyright information please follow this link:
  5. https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
  6. */
  7. #pragma once
  8. namespace Core {
  9. struct GeoLocation;
  10. struct GeoAddress;
  11. } // namespace Core
  12. namespace Platform {
  13. void ResolveCurrentExactLocation(Fn<void(Core::GeoLocation)> callback);
  14. void ResolveLocationAddress(
  15. const Core::GeoLocation &location,
  16. const QString &language,
  17. Fn<void(Core::GeoAddress)> callback);
  18. } // namespace Platform