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 () |
gboolean | phosh_wwan_is_enabled () |
void | phosh_wwan_set_enabled () |
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); gboolean (*is_enabled) (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 |
||
whether a modem is enabled |
||
Get the current network operator name |
“access-tec”
property “access-tec” char *
Network access technology.
Owner: PhoshWWan
Flags: Read
Default value: NULL
“enabled”
property“enabled” gboolean
Whether there modem is enabled.
Owner: PhoshWWan
Flags: Read
Default value: FALSE
“operator”
property “operator” char *
The network operator name.
Owner: PhoshWWan
Flags: Read
Default value: NULL
“present”
property“present” gboolean
Whether there is a modem present.
Owner: PhoshWWan
Flags: Read
Default value: FALSE
“signal-quality”
property “signal-quality” int
Signal quality in percent.
Owner: PhoshWWan
Flags: Read
Allowed values: [0,100]
Default value: 0
“sim”
property“sim” gboolean
Modem has a sim card inserted.
Owner: PhoshWWan
Flags: Read
Default value: FALSE
“unlocked”
property“unlocked” gboolean
Modem is unlocked.
Owner: PhoshWWan
Flags: Read
Default value: FALSE