Repo created

This commit is contained in:
Fr4nz D13trich 2025-11-22 13:58:55 +01:00
parent 4af19165ec
commit 68073add76
12458 changed files with 12350765 additions and 2 deletions

View file

@ -0,0 +1,33 @@
#pragma once
#include "platform/location.hpp"
namespace location
{
class LocationObserver
{
public:
virtual void OnLocationError(TLocationError errorCode) = 0;
virtual void OnLocationUpdated(GpsInfo const & info) = 0;
protected:
virtual ~LocationObserver() = default;
};
class LocationService
{
protected:
LocationObserver & m_observer;
public:
LocationService(LocationObserver & observer) : m_observer(observer) {}
virtual ~LocationService() = default;
virtual void Start() = 0;
virtual void Stop() = 0;
};
} // namespace location
std::unique_ptr<location::LocationService> CreateDesktopLocationService(location::LocationObserver & observer);