19#ifndef LOCATION_SERVICE_COM_LOMIRI_LOCATION_SERVICE_PROVIDERS_REMOTE_INTERFACE_H_
20#define LOCATION_SERVICE_COM_LOMIRI_LOCATION_SERVICE_PROVIDERS_REMOTE_INTERFACE_H_
22#include <core/dbus/macros.h>
23#include <core/dbus/object.h>
24#include <core/dbus/property.h>
25#include <core/dbus/signal.h>
27#include <core/dbus/traits/service.h>
48 static const std::string&
name()
50 static const std::string s{
"com.lomiri.remote.Service.Provider"};
92 DBUS_CPP_READABLE_PROPERTY_DEF(ArePositionUpdatesRunning,
remote::Interface,
bool)
94 DBUS_CPP_READABLE_PROPERTY_DEF(AreVelocityUpdatesRunning,
remote::Interface,
bool)
105 object->get_property<Properties::HasPosition>(),
106 object->get_property<Properties::HasVelocity>(),
107 object->get_property<Properties::HasHeading>(),
108 object->get_property<Properties::RequiresSatellites>(),
109 object->get_property<Properties::RequiresCellNetwork>(),
110 object->get_property<Properties::RequiresDataNetwork>(),
111 object->get_property<Properties::RequiresMonetarySpending>(),
112 object->get_property<Properties::ArePositionUpdatesRunning>(),
113 object->get_property<Properties::AreHeadingUpdatesRunning>(),
114 object->get_property<Properties::AreVelocityUpdatesRunning>()
118 object->get_signal<Signals::PositionChanged>(),
119 object->get_signal<Signals::HeadingChanged>(),
120 object->get_signal<Signals::VelocityChanged>()
130 std::shared_ptr<core::dbus::Property<Properties::HasPosition>>
has_position;
131 std::shared_ptr<core::dbus::Property<Properties::HasVelocity>>
has_velocity;
132 std::shared_ptr<core::dbus::Property<Properties::HasHeading>>
has_heading;
144 std::shared_ptr<core::dbus::Signal<
145 Signals::PositionChanged,
146 Signals::PositionChanged::ArgumentType
149 std::shared_ptr<core::dbus::Signal<
150 Signals::HeadingChanged,
151 Signals::HeadingChanged::ArgumentType
154 std::shared_ptr<core::dbus::Signal<
155 Signals::VelocityChanged,
156 Signals::VelocityChanged::ArgumentType
165 Stub(
const core::dbus::Object::Ptr&
object)
169 object->get_property<Properties::HasPosition>(),
170 object->get_property<Properties::HasVelocity>(),
171 object->get_property<Properties::HasHeading>(),
172 object->get_property<Properties::RequiresSatellites>(),
173 object->get_property<Properties::RequiresCellNetwork>(),
174 object->get_property<Properties::RequiresDataNetwork>(),
175 object->get_property<Properties::RequiresMonetarySpending>(),
176 object->get_property<Properties::ArePositionUpdatesRunning>(),
177 object->get_property<Properties::AreHeadingUpdatesRunning>(),
178 object->get_property<Properties::AreVelocityUpdatesRunning>()
182 object->get_signal<Signals::PositionChanged>(),
183 object->get_signal<Signals::HeadingChanged>(),
184 object->get_signal<Signals::VelocityChanged>()
194 std::shared_ptr<core::dbus::Property<Properties::HasPosition>>
has_position;
195 std::shared_ptr<core::dbus::Property<Properties::HasVelocity>>
has_velocity;
196 std::shared_ptr<core::dbus::Property<Properties::HasHeading>>
has_heading;
208 std::shared_ptr<core::dbus::Signal<
209 Signals::PositionChanged,
210 Signals::PositionChanged::ArgumentType
213 std::shared_ptr<core::dbus::Signal<
214 Signals::HeadingChanged,
215 Signals::HeadingChanged::ArgumentType
218 std::shared_ptr<core::dbus::Signal<
219 Signals::VelocityChanged,
220 Signals::VelocityChanged::ArgumentType
units::Quantity< units::PlaneAngle > Heading
units::Quantity< units::Velocity > Velocity
Velocity is measured in m/s.
The Position struct models a position in the wgs84 coordinate system.
core::dbus::Object::Ptr object
std::shared_ptr< core::dbus::Property< Properties::HasVelocity > > has_velocity
std::shared_ptr< core::dbus::Signal< Signals::PositionChanged, Signals::PositionChanged::ArgumentType > > position_changed
std::shared_ptr< core::dbus::Property< Properties::RequiresCellNetwork > > requires_cell_network
std::shared_ptr< core::dbus::Property< Properties::ArePositionUpdatesRunning > > are_position_updates_running
std::shared_ptr< core::dbus::Signal< Signals::HeadingChanged, Signals::HeadingChanged::ArgumentType > > heading_changed
std::shared_ptr< core::dbus::Property< Properties::RequiresMonetarySpending > > requires_monetary_spending
std::shared_ptr< core::dbus::Property< Properties::AreVelocityUpdatesRunning > > are_velocity_updates_running
struct com::lomiri::location::providers::remote::Interface::Skeleton::@2 signals
std::shared_ptr< core::dbus::Property< Properties::RequiresDataNetwork > > requires_data_network
struct com::lomiri::location::providers::remote::Interface::Skeleton::@1 properties
std::shared_ptr< core::dbus::Signal< Signals::VelocityChanged, Signals::VelocityChanged::ArgumentType > > velocity_changed
std::shared_ptr< core::dbus::Property< Properties::AreHeadingUpdatesRunning > > are_heading_updates_running
std::shared_ptr< core::dbus::Property< Properties::HasPosition > > has_position
std::shared_ptr< core::dbus::Property< Properties::RequiresSatellites > > requires_satellites
std::shared_ptr< core::dbus::Property< Properties::HasHeading > > has_heading
Skeleton(const core::dbus::Object::Ptr &object)
std::shared_ptr< core::dbus::Property< Properties::RequiresDataNetwork > > requires_data_network
std::shared_ptr< core::dbus::Property< Properties::HasVelocity > > has_velocity
std::shared_ptr< core::dbus::Property< Properties::RequiresMonetarySpending > > requires_monetary_spending
std::shared_ptr< core::dbus::Signal< Signals::HeadingChanged, Signals::HeadingChanged::ArgumentType > > heading_changed
std::shared_ptr< core::dbus::Property< Properties::HasHeading > > has_heading
core::dbus::Object::Ptr object
std::shared_ptr< core::dbus::Property< Properties::HasPosition > > has_position
std::shared_ptr< core::dbus::Signal< Signals::PositionChanged, Signals::PositionChanged::ArgumentType > > position_changed
std::shared_ptr< core::dbus::Property< Properties::RequiresSatellites > > requires_satellites
struct com::lomiri::location::providers::remote::Interface::Stub::@3 properties
std::shared_ptr< core::dbus::Property< Properties::AreHeadingUpdatesRunning > > are_heading_updates_running
Stub(const core::dbus::Object::Ptr &object)
std::shared_ptr< core::dbus::Property< Properties::ArePositionUpdatesRunning > > are_position_updates_running
std::shared_ptr< core::dbus::Property< Properties::RequiresCellNetwork > > requires_cell_network
struct com::lomiri::location::providers::remote::Interface::Stub::@4 signals
std::shared_ptr< core::dbus::Property< Properties::AreVelocityUpdatesRunning > > are_velocity_updates_running
std::shared_ptr< core::dbus::Signal< Signals::VelocityChanged, Signals::VelocityChanged::ArgumentType > > velocity_changed
static const std::string & name()