~thomas-voss/location-service/simplify-namespaces

« back to all changes in this revision

Viewing changes to src/location/service/session/implementation.cpp

  • Committer: Thomas Voß
  • Date: 2016-06-26 21:17:03 UTC
  • Revision ID: thomas.voss@canonical.com-20160626211703-aptpytiwrjdr1snn
Simplify namespaces.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#include <com/ubuntu/location/service/session/implementation.h>
2
 
#include <com/ubuntu/location/logging.h>
 
1
#include <location/service/session/implementation.h>
 
2
#include <location/logging.h>
3
3
 
4
4
#include <functional>
5
5
#include <memory>
6
6
 
7
 
namespace cu = com::ubuntu;
8
 
namespace cul = com::ubuntu::location;
9
 
namespace culs = com::ubuntu::location::service;
10
 
namespace culss = com::ubuntu::location::service::session;
11
 
 
12
7
namespace dbus = core::dbus;
13
8
 
14
 
struct culss::Implementation::Private
 
9
struct location::service::session::Implementation::Private
15
10
{
16
11
    Provider::Ptr provider;
17
12
    struct
26
21
    } connections;
27
22
};
28
23
 
29
 
culss::Implementation::Implementation(const cul::Provider::Ptr& provider)
 
24
location::service::session::Implementation::Implementation(const location::Provider::Ptr& provider)
30
25
        : Interface(),
31
26
          d(new Private
32
27
            {
85
80
{
86
81
}
87
82
 
88
 
culss::Implementation::~Implementation() noexcept
 
83
location::service::session::Implementation::~Implementation() noexcept
89
84
{
90
85
    stop_position_updates();
91
86
    stop_heading_updates();
92
87
    stop_velocity_updates();
93
88
}
94
89
 
95
 
void culss::Implementation::start_position_updates()
 
90
void location::service::session::Implementation::start_position_updates()
96
91
{
97
92
    VLOG(10) << __PRETTY_FUNCTION__;
98
93
    d->provider->state_controller()->start_position_updates();
99
94
}
100
95
 
101
 
void culss::Implementation::stop_position_updates() noexcept
 
96
void location::service::session::Implementation::stop_position_updates() noexcept
102
97
{
103
98
    VLOG(10) << __PRETTY_FUNCTION__;
104
99
    d->provider->state_controller()->stop_position_updates();
105
100
}
106
101
 
107
 
void culss::Implementation::start_velocity_updates()
 
102
void location::service::session::Implementation::start_velocity_updates()
108
103
{
109
104
    VLOG(10) << __PRETTY_FUNCTION__;
110
105
    d->provider->state_controller()->start_velocity_updates();
111
106
}
112
107
 
113
 
void culss::Implementation::stop_velocity_updates() noexcept
 
108
void location::service::session::Implementation::stop_velocity_updates() noexcept
114
109
{
115
110
    VLOG(10) << __PRETTY_FUNCTION__;
116
111
    d->provider->state_controller()->stop_velocity_updates();
117
112
}
118
113
 
119
 
void culss::Implementation::start_heading_updates()
 
114
void location::service::session::Implementation::start_heading_updates()
120
115
{
121
116
    VLOG(10) << __PRETTY_FUNCTION__;
122
117
    d->provider->state_controller()->start_heading_updates();
123
118
}
124
119
 
125
 
void culss::Implementation::stop_heading_updates() noexcept
 
120
void location::service::session::Implementation::stop_heading_updates() noexcept
126
121
{
127
122
    VLOG(10) << __PRETTY_FUNCTION__;
128
123
    d->provider->state_controller()->stop_heading_updates();