18 #ifndef LOCATION_SERVICE_COM_UBUNTU_LOCATION_CONNECTIVITY_RADIO_CELL_H_ 19 #define LOCATION_SERVICE_COM_UBUNTU_LOCATION_CONNECTIVITY_RADIO_CELL_H_ 23 #include <core/signal.h> 34 namespace connectivity
40 typedef std::shared_ptr<RadioCell> Ptr;
63 template<
int min,
int max,
int invalid = min-1>
65 template<
int min,
int max,
int invalid = min-1>
67 template<
int min,
int max,
int invalid = min-1>
69 template<
int min,
int max,
int invalid = min-1>
71 template<
int min,
int max,
int invalid = min-1>
73 template<
int min,
int max,
int invalid = min-1>
75 template<
int min,
int max,
int invalid = min-1>
77 template<
int min,
int max,
int invalid = min-1>
79 template<
int min,
int max,
int invalid = min-1>
81 template<
int min,
int max,
int invalid = min-1>
89 typedef MobileCountryCode
93 std::numeric_limits<int>::max()
96 typedef MobileNetworkCode
100 std::numeric_limits<int>::max()
103 typedef LocationAreaCode
107 std::numeric_limits<int>::max()
114 std::numeric_limits<int>::max()
118 typedef ArbitraryStrengthUnit
136 typedef MobileCountryCode
140 std::numeric_limits<int>::max()
143 typedef MobileNetworkCode
147 std::numeric_limits<int>::max()
150 typedef LocationAreaCode
154 std::numeric_limits<int>::max()
161 std::numeric_limits<int>::max()
164 typedef ArbitraryStrengthUnit
182 typedef MobileCountryCode
186 std::numeric_limits<int>::max()
189 typedef MobileNetworkCode
193 std::numeric_limits<int>::max()
196 typedef TrackingAreaCode
200 std::numeric_limits<int>::max()
207 std::numeric_limits<int>::max()
214 std::numeric_limits<int>::max()
217 typedef ArbitraryStrengthUnit
239 virtual const core::Signal<>&
changed()
const = 0;
245 virtual const Gsm&
gsm()
const = 0;
248 virtual const Umts&
umts()
const = 0;
251 virtual const Lte&
lte()
const = 0;
282 #endif // LOCATION_SERVICE_COM_UBUNTU_LOCATION_CONNECTIVITY_RADIO_CELL_H_
ArbitraryStrengthUnit< 0, 31, 99 > SignalStrength
bool operator==(const RadioCell::Gsm &lhs, const RadioCell::Gsm &rhs)
Returns true iff lhs equals rhs.
ArbitraryStrengthUnit< 0, 31, 99 > SignalStrength
Models a UMTS radio cell.
ArbitraryStrengthUnit< 0, 31, 99 > SignalStrength
RadioCell & operator=(const RadioCell &rhs)=delete
virtual Type type() const =0
Returns the type of the radio cell.
MobileNetworkCode< 0, 999, std::numeric_limits< int >::max() > MNC
LocationAreaCode< 0, 65535, std::numeric_limits< int >::max() > LAC
MobileCountryCode< 0, 999, std::numeric_limits< int >::max() > MCC
MobileNetworkCode< 0, 999, std::numeric_limits< int >::max() > MNC
A helper class to handle bounded integer values, with an optional domain for tagging domain-specific ...
MobileNetworkCode< 0, 999, std::numeric_limits< int >::max() > MNC
LocationAreaCode< 0, 65535, std::numeric_limits< int >::max() > LAC
MobileCountryCode< 0, 999, std::numeric_limits< int >::max() > MCC
Type
Enumerates the known technologies.
CellId< 0, 268435455, std::numeric_limits< int >::max() > ID
Models a radio cell that one of the modems in the system is connected to.
std::ostream & operator<<(std::ostream &out, State state)
Pretty prints the given state to the given output stream.
PhysicalId< 0, 503, std::numeric_limits< int >::max() > PID
virtual ~RadioCell()=default
TrackingAreaCode< 0, 65535, std::numeric_limits< int >::max() > TAC
Models an LTE radio cell.
CellId< 0, 268435455, std::numeric_limits< int >::max() > ID
CellId< 0, 65535, std::numeric_limits< int >::max() > ID
virtual const core::Signal & changed() const =0
Emitted when the cell details change.
MobileCountryCode< 0, 999, std::numeric_limits< int >::max() > MCC