### Interface

# Phosh OfonoDBusManager

#### Description [src]

    interface Phosh.OfonoDBusManager : GObject.Object

Abstract interface type for the D-Bus interface org.ofono.Manager.

#### Prerequisite

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

#### Implementations

- PhoshOfonoDBusManagerProxy
- PhoshOfonoDBusManagerSkeleton

#### Functions

###### phosh_ofono_dbus_manager_interface_info

Gets a machine-readable description of the org.ofono.Manager D-Bus interface.

###### phosh_ofono_dbus_manager_override_properties

Overrides all `GObject` properties in the `PhoshOfonoDBusManager` interface for a concrete class. The properties are overridden in the order they are defined.

#### Instance methods

###### phosh_ofono_dbus_manager_call_get_modems

Asynchronously invokes the GetModems() D-Bus method on `proxy`. When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). You can then call `phosh_ofono_dbus_manager_call_get_modems_finish()` to get the result of the operation.

###### phosh_ofono_dbus_manager_call_get_modems_finish

Finishes an operation started with phosh_ofono_dbus_manager_call_get_modems().

###### phosh_ofono_dbus_manager_call_get_modems_sync

Synchronously invokes the GetModems() D-Bus method on `proxy`. The calling thread is blocked until a reply is received.

###### phosh_ofono_dbus_manager_complete_get_modems

Helper function used in service implementations to finish handling invocations of the GetModems() D-Bus method. If you instead want to finish handling an invocation by returning an error, use `g_dbus_method_invocation_return_error()` or similar.

###### phosh_ofono_dbus_manager_emit_modem_added

Emits the “ModemAdded” D-Bus signal.

###### phosh_ofono_dbus_manager_emit_modem_removed

Emits the “ModemRemoved” D-Bus signal.

#### Signals

###### Phosh.OfonoDBusManager::handle-get-modems

Signal emitted when a remote caller is invoking the GetModems() D-Bus method.

###### Phosh.OfonoDBusManager::modem-added

On the client-side, this signal is emitted whenever the D-Bus signal “ModemAdded” is received.

###### Phosh.OfonoDBusManager::modem-removed

On the client-side, this signal is emitted whenever the D-Bus signal “ModemRemoved” is received.

#### Interface structure

    struct PhoshOfonoDBusManagerIface {
      GTypeInterface parent_iface;
      gboolean (* handle_get_modems) (
        PhoshOfonoDBusManager* object,
        GDBusMethodInvocation* invocation
      );
      void (* modem_added) (
        PhoshOfonoDBusManager* object,
        const gchar* arg_unnamed_arg0,
        GVariant* arg_unnamed_arg1
      );
      void (* modem_removed) (
        PhoshOfonoDBusManager* object,
        const gchar* arg_unnamed_arg0
      );

    }

Virtual table for the D-Bus interface org.ofono.Manager.

###### Interface members

`parent_iface` |
    GTypeInterface
| The parent interface.
`handle_get_modems` |
    gboolean (* handle_get_modems) (
        PhoshOfonoDBusManager* object,
        GDBusMethodInvocation* invocation
      )
| Handler for the `PhoshOfonoDBusManager::handle-get-modems` signal.
`modem_added` |
    void (* modem_added) (
        PhoshOfonoDBusManager* object,
        const gchar* arg_unnamed_arg0,
        GVariant* arg_unnamed_arg1
      )
| Handler for the `PhoshOfonoDBusManager::modem-added` signal.
`modem_removed` |
    void (* modem_removed) (
        PhoshOfonoDBusManager* object,
        const gchar* arg_unnamed_arg0
      )
| Handler for the `PhoshOfonoDBusManager::modem-removed` signal.

#### Virtual methods

###### Phosh.OfonoDBusManager.handle_get_modems

Handler for the `PhoshOfonoDBusManager::handle-get-modems` signal.

###### Phosh.OfonoDBusManager.modem_added

Handler for the `PhoshOfonoDBusManager::modem-added` signal.

###### Phosh.OfonoDBusManager.modem_removed

Handler for the `PhoshOfonoDBusManager::modem-removed` signal.