### Interface

# Phosh WWan

since: 0

#### Description

    interface Phosh.WWan : GObject.Object

No description available.

Available since: 0

#### Prerequisite

In order to implement WWan, your type must inherit from`GObject`.

#### Implementations

- PhoshWWanMM
- PhoshWWanOfono

#### Instance methods

###### phosh_wwan_get_access_tec

No description available.

since: 0

###### phosh_wwan_get_operator

No description available.

since: 0

###### phosh_wwan_get_signal_quality

No description available.

since: 0

###### phosh_wwan_has_sim

No description available.

since: 0

###### phosh_wwan_is_enabled

No description available.

since: 0

###### phosh_wwan_is_present

No description available.

since: 0

###### phosh_wwan_is_unlocked

No description available.

since: 0

###### phosh_wwan_set_enabled

No description available.

since: 0

#### Properties

###### Phosh.WWan:access-tec

No description available.

since: 0

###### Phosh.WWan:enabled

No description available.

since: 0

###### Phosh.WWan:operator

No description available.

since: 0

###### Phosh.WWan:present

No description available.

since: 0

###### Phosh.WWan:signal-quality

No description available.

since: 0

###### Phosh.WWan:sim

No description available.

since: 0

###### Phosh.WWan:unlocked

No description available.

since: 0

#### 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`

    GTypeInterface

| The parent interface.

`get_signal_quality`

    guint (* get_signal_quality) (
        PhoshWWan* self
      )

| Get the current signal quality.

`get_access_tec`

    const char* (* get_access_tec) (
        PhoshWWan* self
      )

| Get the current access technology (2G, 3G, …)

`is_unlocked`

    gboolean (* is_unlocked) (
        PhoshWWan* self
      )

| Whether the SIM in the modem is locked.

`has_sim`

    gboolean (* has_sim) (
        PhoshWWan* self
      )

| Whether there’s a sim in the modem.

`is_present`

    gboolean (* is_present) (
        PhoshWWan* self
      )

| Whether a modem is present at all.

`is_enabled`

    gboolean (* is_enabled) (
        PhoshWWan* self
      )

| Whether a modem is enabled.

`get_operator`

    const char* (* get_operator) (
        PhoshWWan* self
      )

| Get the current network operator name.

#### Virtual methods

###### Phosh.WWan.get_access_tec

Get the current access technology (2G, 3G, …)

since: 0

###### Phosh.WWan.get_operator

Get the current network operator name.

since: 0

###### Phosh.WWan.get_signal_quality

Get the current signal quality.

since: 0

###### Phosh.WWan.has_sim

Whether there’s a sim in the modem.

since: 0

###### Phosh.WWan.is_enabled

Whether a modem is enabled.

since: 0

###### Phosh.WWan.is_present

Whether a modem is present at all.

since: 0

###### Phosh.WWan.is_unlocked

Whether the SIM in the modem is locked.

since: 0