~thomas-voss/location-service/fix-1347887

« back to all changes in this revision

Viewing changes to include/location_service/com/ubuntu/location/service/session/implementation.h

This MP consolidates multiple related changes together, with the goal of:

(1.) Make the service instance accessible via a cli. Useful for testing scenarios.
(2.) To cut down time-to-first-fix (ttff) by:
  (2.1) Leveraging SUPL and other supplementary data downloaded over ordinary data connections.
  (2.2) Enabling network-based positioning providers to acquire fast position estimates.

In more detail:

* Added tests for daemon and cli.
* Unified daemon and cli header and implementation files.
* Add a command-line interface to the service.
* Split up provider selection policy to rely on an interface ProviderEnumerator to ease in testing.
* Trimmed down on types.
* Removed connectivity API draft to prepare for simpler approach.
* Refactored includes.
* Added a configuration option to handle cell and wifi ID reporting.
* Add a mock for a connectivity API exposed to providers and reporters.
* Add units for connectivity api.
* Refactor cell class into namespace radio. Fixes: 1226204, 1248973, 1281817

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
#ifndef LOCATION_SERVICE_COM_UBUNTU_LOCATION_SERVICE_SESSION_IMPLEMENTATION_H_
19
19
#define LOCATION_SERVICE_COM_UBUNTU_LOCATION_SERVICE_SESSION_IMPLEMENTATION_H_
20
20
 
21
 
#include "com/ubuntu/location/service/session/skeleton.h"
 
21
#include <com/ubuntu/location/service/session/skeleton.h>
22
22
 
23
 
#include "com/ubuntu/location/provider.h"
 
23
#include <com/ubuntu/location/provider.h>
24
24
 
25
25
#include <memory>
26
26
 
34
34
{
35
35
namespace session
36
36
{
37
 
class Implementation : public Skeleton
 
37
class Implementation : public Interface
38
38
{
39
39
  public:
40
 
    Implementation(
41
 
        const core::dbus::Bus::Ptr& bus,
42
 
        const core::dbus::types::ObjectPath& session_path,
43
 
        const Provider::Ptr& provider);
 
40
    Implementation(const Provider::Ptr& provider);
44
41
    Implementation(const Implementation&) = delete;
45
42
    virtual ~Implementation() noexcept;
46
43
    Implementation& operator=(const Implementation&) = delete;