1
#include "com/ubuntu/location/service/session/interface.h"
3
#include <org/freedesktop/dbus/codec.h>
4
#include <org/freedesktop/dbus/service.h>
5
#include <org/freedesktop/dbus/traits/service.h>
6
#include <org/freedesktop/dbus/types/object_path.h>
8
namespace cul = com::ubuntu::location;
9
namespace culs = com::ubuntu::location::service;
10
namespace culss = com::ubuntu::location::service::session;
12
namespace dbus = org::freedesktop::dbus;
14
culss::Interface::~Interface() noexcept
18
cul::ChannelConnection culss::Interface::install_position_updates_handler(std::function<void(const cul::Update<cul::Position>&)> handler)
20
return position_updates_channel.connect(handler);
23
cul::ChannelConnection culss::Interface::install_velocity_updates_handler(std::function<void(const cul::Update<cul::Velocity>&)> handler)
25
return velocity_updates_channel.connect(handler);
28
cul::ChannelConnection culss::Interface::install_heading_updates_handler(std::function<void(const cul::Update<cul::Heading>&)> handler)
30
return heading_updates_channel.connect(handler);
33
cul::Channel<cul::Update<cul::Position>>& culss::Interface::access_position_updates_channel()
35
return position_updates_channel;
38
cul::Channel<cul::Update<cul::Heading>>& culss::Interface::access_heading_updates_channel()
40
return heading_updates_channel;
43
cul::Channel<cul::Update<cul::Velocity>>& culss::Interface::access_velocity_updates_channel()
45
return velocity_updates_channel;