Interface
PhoshWWan
since: 0
Prerequisite
In order to implement WWan, your type must inherit fromGObject
.
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
);
}
A PhoshWWanInterface
handles modem interaction such as getting
network information and signal strength.
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. |