### Interface

# Phosh WWan

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 from`PhoshWWanManager`.

#### Implementations

- PhoshWWanMM
- PhoshWWanOfono

#### Instance methods

###### phosh_wwan_get_access_tec

No description available.

###### phosh_wwan_get_operator

No description available.

###### phosh_wwan_get_signal_quality

No description available.

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

###### phosh_wwan_has_sim

No description available.

###### phosh_wwan_is_enabled

No description available.

###### phosh_wwan_is_present

No description available.

###### phosh_wwan_is_unlocked

No description available.

###### phosh_wwan_set_data_enabled

Connect to or disconnect from mobile data.

###### phosh_wwan_set_enabled

No description available.

#### Properties

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

The access-tec of the current modem.

###### Phosh.WWan:enabled

Whether a modem is enabled.

###### Phosh.WWan:operator

The name of the operator of the current modem.

###### Phosh.WWan:present

Whether a modem is prsent.

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

The signal quality of the current modem.

###### Phosh.WWan:sim

Whether the current modem has a sim card inserted.

###### Phosh.WWan:unlocked

Whether the current modem is unlocked.

#### 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` |
    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, …).

###### Phosh.WWan.get_operator

Get the current network operator name.

###### Phosh.WWan.get_signal_quality

Get the current signal quality.

###### Phosh.WWan.has_sim

Whether there’s a sim in the modem.

###### Phosh.WWan.is_enabled

Whether a modem is enabled.

###### Phosh.WWan.is_present

Whether a modem is present at all.

###### Phosh.WWan.is_unlocked

Whether the SIM in the modem is locked.