Top | ![]() |
![]() |
![]() |
![]() |
guint | phosh_wwan_get_signal_quality () |
const char * | phosh_wwan_get_access_tec () |
gboolean | phosh_wwan_is_unlocked () |
gboolean | phosh_wwan_has_sim () |
gboolean | phosh_wwan_is_present () |
const char * | phosh_wwan_get_operator () |
A PhoshWWanInterface handles modem interaction such as getting network information and signal strength.
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); const char* (*get_operator) (PhoshWWan *self); };
Provides an interface for interacting with a modem
GTypeInterface |
The parent interface |
|
Get the current signal quality |
||
Get the current access technology (2G, 3G, ...) |
||
whether the SIM in the modem is locked |
||
Whether there's a sim in the modem |
||
whether a modem is present at all |
||
Get the current network operator name |
“access-tec”
property“access-tec” gchar *
Network access technology.
Flags: Read
Default value: NULL
“operator”
property“operator” gchar *
The network operator name.
Flags: Read
Default value: NULL
“present”
property“present” gboolean
Whether there is a modem present.
Flags: Read
Default value: FALSE
“signal-quality”
property“signal-quality” gint
Signal quality in percent.
Flags: Read
Allowed values: [0,100]
Default value: 0