New cpp folder structure

Signed-off-by: Alexander Borsuk <me@alex.bio>
This commit is contained in:
Alexander Borsuk
2025-07-17 22:35:52 +03:00
committed by Konstantin Pastbin
parent c9cbb64f12
commit 76ffc99abd
2390 changed files with 345 additions and 339 deletions

View File

@@ -0,0 +1,32 @@
#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);