~sil2100/location-service/gps-arm64

« back to all changes in this revision

Viewing changes to src/location_service/com/ubuntu/location/service/default_configuration.cpp

  • Committer: Thomas Voß
  • Date: 2013-05-28 14:20:45 UTC
  • Revision ID: thomas.voss@canonical.com-20130528142045-kq5umqdmm4o53vwk
Initial push.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include "com/ubuntu/location/service/default_configuration.h"
 
2
#include "com/ubuntu/location/service/default_permission_manager.h"
 
3
 
 
4
#include "com/ubuntu/location/default_provider_selection_policy.h"
 
5
#include "com/ubuntu/location/default_provider_set.h"
 
6
 
 
7
namespace cul = com::ubuntu::location;
 
8
namespace culs = com::ubuntu::location::service;
 
9
 
 
10
culs::DefaultConfiguration::DefaultConfiguration()
 
11
{
 
12
}
 
13
 
 
14
culs::DefaultConfiguration::~DefaultConfiguration() noexcept
 
15
{
 
16
}
 
17
 
 
18
cul::Engine::Ptr culs::DefaultConfiguration::the_engine(
 
19
    const std::set<cul::Provider::Ptr>& provider_set,
 
20
    const cul::ProviderSelectionPolicy::Ptr& provider_selection_policy)
 
21
{
 
22
    return Engine::Ptr {new Engine{provider_set, provider_selection_policy}};
 
23
}
 
24
 
 
25
cul::ProviderSelectionPolicy::Ptr culs::DefaultConfiguration::the_provider_selection_policy()
 
26
{
 
27
    return ProviderSelectionPolicy::Ptr(new DefaultProviderSelectionPolicy());
 
28
}
 
29
 
 
30
std::set<cul::Provider::Ptr> culs::DefaultConfiguration::the_provider_set(
 
31
    const cul::Provider::Ptr& seed)
 
32
{
 
33
    return default_provider_set(seed);
 
34
}
 
35
 
 
36
culs::PermissionManager::Ptr culs::DefaultConfiguration::the_permission_manager()
 
37
{
 
38
    return DefaultPermissionManager::Ptr(new DefaultPermissionManager());
 
39
}
 
40