### Interface

# Phosh EmergencyCalls

since: 0

#### Description [src]

    interface Phosh.EmergencyCalls : GObject.Object

Abstract interface type for the D-Bus interface org.gnome.Calls.EmergencyCalls.

Available since: 0

#### Prerequisite

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

#### Implementations

- PhoshEmergencyCallsProxy
- PhoshEmergencyCallsSkeleton

#### Functions

###### phosh_emergency_calls_interface_info

Gets a machine-readable description of the org.gnome.Calls.EmergencyCalls D-Bus interface.

since: 0

###### phosh_emergency_calls_override_properties

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

since: 0

#### Instance methods

###### phosh_emergency_calls_call_call_emergency_contact

Asynchronously invokes the CallEmergencyContact() 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_emergency_calls_call_call_emergency_contact_finish()` to get the result of the operation.

since: 0

###### phosh_emergency_calls_call_call_emergency_contact_finish

Finishes an operation started with phosh_emergency_calls_call_call_emergency_contact().

since: 0

###### phosh_emergency_calls_call_call_emergency_contact_sync

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

since: 0

###### phosh_emergency_calls_call_get_emergency_contacts

Asynchronously invokes the GetEmergencyContacts() 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_emergency_calls_call_get_emergency_contacts_finish()` to get the result of the operation.

since: 0

###### phosh_emergency_calls_call_get_emergency_contacts_finish

Finishes an operation started with phosh_emergency_calls_call_get_emergency_contacts().

since: 0

###### phosh_emergency_calls_call_get_emergency_contacts_sync

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

since: 0

###### phosh_emergency_calls_complete_call_emergency_contact

Helper function used in service implementations to finish handling invocations of the CallEmergencyContact() 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.

since: 0

###### phosh_emergency_calls_complete_get_emergency_contacts

Helper function used in service implementations to finish handling invocations of the GetEmergencyContacts() 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.

since: 0

###### phosh_emergency_calls_emit_emergency_numbers_changed

Emits the “EmergencyNumbersChanged” D-Bus signal.

since: 0

#### Signals

###### Phosh.EmergencyCalls::emergency-numbers-changed

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

since: 0

###### Phosh.EmergencyCalls::handle-call-emergency-contact

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

since: 0

###### Phosh.EmergencyCalls::handle-get-emergency-contacts

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

since: 0

#### Interface structure

    struct PhoshEmergencyCallsIface {
      GTypeInterface parent_iface;
      gboolean (* handle_call_emergency_contact) (
        PhoshEmergencyCalls* object,
        GDBusMethodInvocation* invocation,
        const gchar* arg_id
      );
      gboolean (* handle_get_emergency_contacts) (
        PhoshEmergencyCalls* object,
        GDBusMethodInvocation* invocation
      );
      void (* emergency_numbers_changed) (
        PhoshEmergencyCalls* object
      );

    }

Virtual table for the D-Bus interface org.gnome.Calls.EmergencyCalls.

###### Interface members

`parent_iface`

    GTypeInterface

| The parent interface.

`handle_call_emergency_contact`

    gboolean (* handle_call_emergency_contact) (
        PhoshEmergencyCalls* object,
        GDBusMethodInvocation* invocation,
        const gchar* arg_id
      )

| Handler for the `PhoshEmergencyCalls::handle-call-emergency-contact` signal.

`handle_get_emergency_contacts`

    gboolean (* handle_get_emergency_contacts) (
        PhoshEmergencyCalls* object,
        GDBusMethodInvocation* invocation
      )

| Handler for the `PhoshEmergencyCalls::handle-get-emergency-contacts` signal.

`emergency_numbers_changed`

    void (* emergency_numbers_changed) (
        PhoshEmergencyCalls* object
      )

| Handler for the `PhoshEmergencyCalls::emergency-numbers-changed` signal.

#### Virtual methods

###### Phosh.EmergencyCalls.emergency_numbers_changed

Handler for the `PhoshEmergencyCalls::emergency-numbers-changed` signal.

since: 0

###### Phosh.EmergencyCalls.handle_call_emergency_contact

Handler for the `PhoshEmergencyCalls::handle-call-emergency-contact` signal.

since: 0

###### Phosh.EmergencyCalls.handle_get_emergency_contacts

Handler for the `PhoshEmergencyCalls::handle-get-emergency-contacts` signal.

since: 0