tdesktop/Telegram/SourceFiles/platform/platform_current_geo_location.h

24 lines
580 B
C
Raw Normal View History

2024-07-04 08:18:30 +00:00
/*
This file is part of Telegram Desktop,
the official desktop application for the Telegram messaging service.
For license and copyright information please follow this link:
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
*/
#pragma once
namespace Core {
struct GeoLocation;
2024-07-07 17:01:26 +00:00
struct GeoAddress;
2024-07-04 08:18:30 +00:00
} // namespace Core
namespace Platform {
void ResolveCurrentExactLocation(Fn<void(Core::GeoLocation)> callback);
2024-07-07 17:01:26 +00:00
void ResolveLocationAddress(
const Core::GeoLocation &location,
2024-07-11 14:31:33 +00:00
const QString &language,
2024-07-07 17:01:26 +00:00
Fn<void(Core::GeoAddress)> callback);
2024-07-04 08:18:30 +00:00
} // namespace Platform