Interface
PhoshWWan
since: 0.0.1
Description [src]
interface Phosh.WWan : Phosh.WWanManager
Implementations of the PhoshWWan
interface handle modem
interaction such as getting mobile network information and signal strength.
Available since: 0.0.1
Prerequisite
In order to implement WWan, your type must inherit fromPhoshWWanManager
.
Instance methods
phosh_wwan_has_data
Gets whether there’s a data connection that could possibly be enabled. It doesn’t take into account whether the connection is enabled or not.
Interface structure
struct PhoshWWanInterface {
GTypeInterface parent_iface;
guint (* get_signal_quality) (
PhoshWWan* self
);
const char* (* get_access_tec) (
PhoshWWan* self
);
gboolean (* is_unlocked) (
PhoshWWan* self
);
gboolean (* has_sim) (
PhoshWWan* self
);
gboolean (* is_present) (
PhoshWWan* self
);
gboolean (* is_enabled) (
PhoshWWan* self
);
const char* (* get_operator) (
PhoshWWan* self
);
}
The list of virtual functions for the PhoshWWan
interface. Interface
are required to implement all virtual functions.
Interface members
parent_iface |
|
The parent interface. |
|
get_signal_quality |
|
Get the current signal quality. |
|
get_access_tec |
|
Get the current access technology (2G, 3G, …). |
|
is_unlocked |
|
Whether the SIM in the modem is locked. |
|
has_sim |
|
Whether there’s a sim in the modem. |
|
is_present |
|
Whether a modem is present at all. |
|
is_enabled |
|
Whether a modem is enabled. |
|
get_operator |
|
Get the current network operator name. |