18 #ifndef LOCATION_SERVICE_COM_UBUNTU_LOCATION_CONNECTIVITY_WIRELESS_NETWORK_H_
19 #define LOCATION_SERVICE_COM_UBUNTU_LOCATION_CONNECTIVITY_WIRELESS_NETWORK_H_
23 #include <core/property.h>
34 namespace connectivity
38 typedef std::shared_ptr<WirelessNetwork>
Ptr;
62 typedef BoundedInteger
89 virtual const core::Property<std::chrono::system_clock::time_point>&
last_seen()
const = 0;
92 virtual const core::Property<std::string>&
bssid()
const = 0;
95 virtual const core::Property<std::string>&
ssid()
const = 0;
98 virtual const core::Property<Mode>&
mode()
const = 0;
101 virtual const core::Property<Frequency>&
frequency()
const = 0;
A helper class to handle bounded integer values, with an optional domain for tagging domain-specific ...
std::ostream & operator<<(std::ostream &out, State state)
Pretty prints the given state to the given output stream.
virtual const core::Property< SignalStrength > & signal_strength() const =0
Returns the signal quality of the network/AP in percent.
virtual const core::Property< Frequency > & frequency() const =0
Returns the frequency that the network/AP operates upon.
BoundedInteger< Tag::Frequency, 2412, 5825 > Frequency
virtual const core::Property< std::chrono::system_clock::time_point > & last_seen() const =0
Timestamp when the network became visible.
std::shared_ptr< WirelessNetwork > Ptr
virtual const core::Property< std::string > & ssid() const =0
Returns the SSID of the network.
virtual const core::Property< Mode > & mode() const =0
Returns the mode of the network.
BoundedInteger< Tag::SignalStrength, 0, 100 > SignalStrength
virtual const core::Property< std::string > & bssid() const =0
Returns the BSSID of the network.
Mode
Enumerates all known operational modes of networks/aps.